| 418 |
<a class="s4" id="unset_ontop_{$article['aid']}" style="display: {$unset_ontop_display}" href="" onclick="return article_op('ontop', {$article['aid']}, 0)" title="取消置顶">取消置顶</a> |
<a class="s4" id="unset_ontop_{$article['aid']}" style="display: {$unset_ontop_display}" href="" onclick="return article_op('ontop', {$article['aid']}, 0)" title="取消置顶">取消置顶</a> |
| 419 |
HTML; |
HTML; |
| 420 |
} |
} |
| 421 |
if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) && |
if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) && |
| 422 |
($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"])) |
($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_MAN_S) || $_SESSION["BBS_uid"] == $article["uid"])) |
| 423 |
{ |
{ |
| 424 |
$set_lock_display = ($article["lock"] ? "none" : "inline"); |
$set_lock_display = ($article["lock"] ? "none" : "inline"); |
| 453 |
$nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); |
$nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); |
| 454 |
$title_f = split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />"); |
$title_f = split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />"); |
| 455 |
$title_class = ($article["visible"] ? "title_normal" : "title_deleted"); |
$title_class = ($article["visible"] ? "title_normal" : "title_deleted"); |
| 456 |
$content_f = LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true, true, 80); |
$content_f = LML(htmlspecialchars($article["content"], ENT_HTML401, 'UTF-8'), true, true, 80); |
| 457 |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
| 458 |
|
|
| 459 |
$transship_info = ""; |
$transship_info = ""; |
| 470 |
foreach ($article["attachments"] as $attachment) |
foreach ($article["attachments"] as $attachment) |
| 471 |
{ |
{ |
| 472 |
$filename = $attachment["filename"]; |
$filename = $attachment["filename"]; |
|
$ext = strtolower(substr($filename, (strrpos($filename, ".") ? strrpos($filename, ".") + 1 : 0))); |
|
| 473 |
|
|
| 474 |
$atta_list .= <<<HTML |
$atta_list .= <<<HTML |
| 475 |
<span id="attachment_{$attachment['aid']}"><img src="images/closed.gif"><a class="s2" href="dl_file.php?aid={$attachment['aid']}" target="_target">{$filename}</a> ({$attachment["size"]}字节) |
<span id="attachment_{$attachment['aid']}"><img src="images/closed.gif"><a class="s2" href="dl_file.php?aid={$attachment['aid']}" target="_target">{$filename}</a> ({$attachment["size"]}字节) |
| 493 |
|
|
| 494 |
if ($attachment["check"]) |
if ($attachment["check"]) |
| 495 |
{ |
{ |
| 496 |
|
$ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); |
| 497 |
switch ($ext) |
switch ($ext) |
| 498 |
{ |
{ |
| 499 |
case "bmp": |
case "bmp": |
| 533 |
作者: <a class="s2" href="view_user.php?uid={$article['uid']}" onclick='return {$user_viewable}' target=_blank title="查看用户资料">{$username}</a> |
作者: <a class="s2" href="view_user.php?uid={$article['uid']}" onclick='return {$user_viewable}' target=_blank title="查看用户资料">{$username}</a> |
| 534 |
</td> |
</td> |
| 535 |
<td width="75%" class="body"> |
<td width="75%" class="body"> |
| 536 |
<span style="color:#606060;">标题:</span> |
<span style="color: #606060">标题:</span> |
| 537 |
<img src="images/expression/{$article['icon']}.gif"> |
<img src="images/expression/{$article['icon']}.gif"> |
| 538 |
<span id="title_{$article['aid']}" class="{$title_class}"> |
<span id="title_{$article['aid']}" class="{$title_class}"> |
| 539 |
{$title_f} |
{$title_f} |
| 545 |
</tr> |
</tr> |
| 546 |
<tr> |
<tr> |
| 547 |
<td align="center"> |
<td align="center"> |
| 548 |
昵称: <span style="color: #909090;">{$nickname}</span> |
昵称: <span style="color: #909090">{$nickname}</span> |
| 549 |
</td> |
</td> |
| 550 |
<td class="body"> |
<td class="body"> |
| 551 |
<span style="color:#606060;">来自:</span> <span style="color: #909090; ">{$article["sub_ip"]}</span> |
<span style="color: #606060">来自:</span> <span style="color: #909090">{$article["sub_ip"]}</span> |
| 552 |
</td> |
</td> |
| 553 |
<td> |
<td> |
| 554 |
</td> |
</td> |
| 558 |
经验值: <span style="color:red;">{$article["exp"]}</span> |
经验值: <span style="color:red;">{$article["exp"]}</span> |
| 559 |
</td> |
</td> |
| 560 |
<td class="body"> |
<td class="body"> |
| 561 |
<span style="color:#606060;">发贴时间:</span> <span style="color: #909090; ">{$article["sub_dt"]->format("Y年m月d日 H:i:s (\U\T\C P)")}</span> |
<span style="color: #606060">发贴时间:</span> <span style="color: #909090">{$article["sub_dt"]->format("Y年m月d日 H:i:s (\U\T\C P)")}</span> |
| 562 |
</td> |
</td> |
| 563 |
<td> |
<td> |
| 564 |
</td> |
</td> |
| 565 |
</tr> |
</tr> |
| 566 |
<tr> |
<tr> |
| 567 |
<td align="center"> |
<td align="center"> |
| 568 |
等级: <span style="color: #909090;">{$level}</span> |
等级: <span style="color: #909090">{$level}</span> |
| 569 |
</td> |
</td> |
| 570 |
<td class="body"> |
<td class="body"> |
| 571 |
<span style="color:#606060;">长度:</span> <span style="color: #909090; ">{$article["length"]}字</span> |
<span style="color: #606060">长度:</span> <span style="color: #909090">{$article["length"]}字</span> |
| 572 |
</td> |
</td> |
| 573 |
<td> |
<td> |
| 574 |
</td> |
</td> |
| 576 |
<tr height="2"> |
<tr height="2"> |
| 577 |
<td> |
<td> |
| 578 |
</td> |
</td> |
| 579 |
<td style="background-color: #909090;"> |
<td style="background-color: #909090"> |
| 580 |
</td> |
</td> |
| 581 |
<td> |
<td> |
| 582 |
</td> |
</td> |
| 594 |
<tr> |
<tr> |
| 595 |
<td> |
<td> |
| 596 |
</td> |
</td> |
| 597 |
<td style="color:#000000; "> |
<td style="color: #000000"> |
| 598 |
========== * * * * * ========== |
========== * * * * * ========== |
| 599 |
<br /> |
<br /> |
| 600 |
{$atta_list} |
{$atta_list} |
| 701 |
</body> |
</body> |
| 702 |
</html> |
</html> |
| 703 |
HTML; |
HTML; |
|
?> |
|