| 1 |
<? |
<?php |
| 2 |
// Prevent load standalone |
// Prevent load standalone |
| 3 |
if (!isset($result_set)) |
if (!isset($result_set)) |
| 4 |
{ |
{ |
| 15 |
?> |
?> |
| 16 |
<Topic> |
<Topic> |
| 17 |
<Subject> |
<Subject> |
| 18 |
<SectionId><? echo $result_set["data"]["sid"]; ?></SectionId> |
<SectionId><?= $result_set["data"]["sid"]; ?></SectionId> |
| 19 |
<SectionTitle><? echo $result_set["data"]["section_title"]; ?></SectionTitle> |
<SectionTitle><?= $result_set["data"]["section_title"]; ?></SectionTitle> |
| 20 |
<TopicId><? echo $result_set["data"]["id"]; ?></TopicId> |
<TopicId><?= $result_set["data"]["id"]; ?></TopicId> |
| 21 |
<TopicTitle><? echo htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?></TopicTitle> |
<TopicTitle><?= htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?></TopicTitle> |
| 22 |
</Subject> |
</Subject> |
| 23 |
<Articles> |
<Articles> |
| 24 |
<? |
<?php |
| 25 |
foreach ($result_set["data"]["articles"] as $article) |
foreach ($result_set["data"]["articles"] as $article) |
| 26 |
{ |
{ |
| 27 |
?> |
?> |
| 28 |
<Article> |
<Article> |
| 29 |
<PostUserId><? echo $article["uid"]; ?></PostUserId> |
<PostUserId><?= $article["uid"]; ?></PostUserId> |
| 30 |
<PostUserName><? echo htmlspecialchars($article["username"], ENT_HTML401, 'UTF-8'); ?></PostUserName> |
<PostUserName><?= htmlspecialchars($article["username"], ENT_HTML401, 'UTF-8'); ?></PostUserName> |
| 31 |
<PostUserNickName><? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></PostUserNickName> |
<PostUserNickName><?= htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></PostUserNickName> |
| 32 |
<rank><? echo user_level($article["exp"]); ?></rank> |
<rank><?= user_level($article["exp"]); ?></rank> |
| 33 |
<credit><? echo $article["exp"]; ?></credit> |
<credit><?= $article["exp"]; ?></credit> |
| 34 |
<photo><? echo $article["photo_path"]; ?></photo> |
<photo><?= $article["photo_path"]; ?></photo> |
| 35 |
<ArticleId><? echo $article["aid"]; ?></ArticleId> |
<ArticleId><?= $article["aid"]; ?></ArticleId> |
| 36 |
<ArticleTitle><? echo htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'); ?></ArticleTitle> |
<ArticleTitle><?= htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'); ?><?php if ($article["transship"]) { ?> [转载]<?php } ?></ArticleTitle> |
| 37 |
<ExpressionIcon><? echo $article["icon"]; ?></ExpressionIcon> |
<ExpressionIcon><?= $article["icon"]; ?></ExpressionIcon> |
| 38 |
<PostDateTime><? echo $article["sub_dt"]->format("Y-m-d H:i:s (\U\T\C P)"); ?></PostDateTime> |
<PostDateTime><?= $article["sub_dt"]->format("Y-m-d H:i:s (\U\T\C P)"); ?></PostDateTime> |
| 39 |
<PostIP><? echo $article["sub_ip"]; ?></PostIP> |
<PostIP><?= $article["sub_ip"]; ?></PostIP> |
| 40 |
<Content><![CDATA[<? echo LML($article["content"], true, false, 1024); ?>]]></Content> |
<Content><![CDATA[<?= LML($article["content"], true, false, 1024); ?>]]></Content> |
| 41 |
<Length><? echo $article["length"]; ?></Length> |
<Length><?= $article["length"]; ?></Length> |
| 42 |
</Article> |
</Article> |
| 43 |
<? |
<?php |
| 44 |
} |
} |
| 45 |
?> |
?> |
| 46 |
</Articles> |
</Articles> |