| 23 |
|
|
| 24 |
$navigator_bar = <<<HTML |
$navigator_bar = <<<HTML |
| 25 |
<a class="s2" href="main.php?sid={$result_set['data']['sid']}">{$BBS_name}</a>>><a class="s2" href="list.php?sid={$result_set['data']['sid']}">{$result_set["data"]["section_title"]}</a>>><a class="s2" href="list.php?sid={$result_set['data']['sid']}&ex={$result_set['data']['ex']}">{$section_scope}</a> |
<a class="s2" href="main.php?sid={$result_set['data']['sid']}">{$BBS_name}</a>>><a class="s2" href="list.php?sid={$result_set['data']['sid']}">{$result_set["data"]["section_title"]}</a>>><a class="s2" href="list.php?sid={$result_set['data']['sid']}&ex={$result_set['data']['ex']}">{$section_scope}</a> |
| 26 |
|
HTML; |
| 27 |
|
|
| 28 |
|
if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) && |
| 29 |
|
(!$result_set["data"]["lock"])) |
| 30 |
|
{ |
| 31 |
|
$navigator_bar .= <<<HTML |
| 32 |
<a class="s2" href="article_post.php?reply_id={$result_set['data']['id']}"e=0" title="直接回复该文章">[快速回复]</a> |
<a class="s2" href="article_post.php?reply_id={$result_set['data']['id']}"e=0" title="直接回复该文章">[快速回复]</a> |
| 33 |
HTML; |
HTML; |
| 34 |
|
} |
| 35 |
|
|
| 36 |
if ($previous_id > 0) |
if ($previous_id > 0) |
| 37 |
{ |
{ |
| 38 |
$navigator_bar .= <<<HTML |
$navigator_bar .= <<<HTML |
| 107 |
font-size: 16px; |
font-size: 16px; |
| 108 |
text-decoration: line-through; |
text-decoration: line-through; |
| 109 |
} |
} |
| 110 |
|
IMG.auto_adjust |
| 111 |
|
{ |
| 112 |
|
display: none; |
| 113 |
|
} |
| 114 |
</style> |
</style> |
|
<script type="text/javascript" src="../js/img_adjust.js"></script> |
|
| 115 |
<script src="../js/polyfill.min.js"></script> |
<script src="../js/polyfill.min.js"></script> |
| 116 |
<script src="../js/axios.min.js"></script> |
<script src="../js/axios.min.js"></script> |
| 117 |
|
<script src="../js/jquery.min.js"></script> |
| 118 |
<script type="text/javascript"> |
<script type="text/javascript"> |
| 119 |
function ch_page(page) |
function ch_page(page) |
| 120 |
{ |
{ |
| 187 |
["ontop", "article_service_ontop.php"], |
["ontop", "article_service_ontop.php"], |
| 188 |
["lock", "article_service_lock.php"], |
["lock", "article_service_lock.php"], |
| 189 |
["transship", "article_service_transship.php"], |
["transship", "article_service_transship.php"], |
| 190 |
|
["favorite", "article_service_favor.php"], |
| 191 |
]); |
]); |
| 192 |
|
|
| 193 |
var opNeedRefresh = new Set([ |
var opNeedRefresh = new Set([ |
| 334 |
{ |
{ |
| 335 |
f.addEventListener("submit", (e) => { |
f.addEventListener("submit", (e) => { |
| 336 |
e.preventDefault(); |
e.preventDefault(); |
| 337 |
move_article(f.sid.value); |
if (f.sid.value > 0) |
| 338 |
|
{ |
| 339 |
|
move_article(f.sid.value); |
| 340 |
|
} |
| 341 |
}); |
}); |
| 342 |
} |
} |
| 343 |
}); |
}); |
| 344 |
|
|
| 345 |
</script> |
$(document).ready(function() { |
| 346 |
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous"> |
$("img[class=auto_adjust]").on("load", function() { |
| 347 |
|
if ($(this).width() > {$BBS_img_max_width}) |
| 348 |
|
{ |
| 349 |
|
$(this).width({$BBS_img_max_width}); |
| 350 |
|
} |
| 351 |
|
$(this).show(); |
| 352 |
|
}) |
| 353 |
|
.on("mousewheel", function(e) { |
| 354 |
|
var zoom = parseFloat($(this).css("zoom")); |
| 355 |
|
zoom *= (1 + e.originalEvent.wheelDelta / 1000); |
| 356 |
|
if (zoom > 0) |
| 357 |
|
{ |
| 358 |
|
$(this).css("zoom", zoom); |
| 359 |
|
} |
| 360 |
|
}); |
| 361 |
|
}); |
| 362 |
</script> |
</script> |
| 363 |
</head> |
</head> |
| 364 |
<body> |
<body> |
| 423 |
<span id="set_delete_{$article['aid']}"><img src="images/del.gif" width="16" height="16"><a class="s4" href="" onclick="return article_op('delete', {$article['aid']}, 1, true);" title="删除该文章">删除</a></span> |
<span id="set_delete_{$article['aid']}"><img src="images/del.gif" width="16" height="16"><a class="s4" href="" onclick="return article_op('delete', {$article['aid']}, 1, true);" title="删除该文章">删除</a></span> |
| 424 |
HTML; |
HTML; |
| 425 |
} |
} |
| 426 |
if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST)) |
if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) && |
| 427 |
|
(!$result_set["data"]["lock"])) |
| 428 |
{ |
{ |
| 429 |
$article_ctrl_bar .= <<<HTML |
$article_ctrl_bar .= <<<HTML |
| 430 |
<img src="images/edit.gif" width="16" height="16"><a class="s4" href="article_post.php?reply_id={$article['aid']}" title="引用回复该文章">回复</a> |
<img src="images/edit.gif" width="16" height="16"><a class="s4" href="article_post.php?reply_id={$article['aid']}" title="引用回复该文章">回复</a> |
| 442 |
} |
} |
| 443 |
if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S)) |
if ($article["tid"] == 0 && $_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST | S_MAN_S)) |
| 444 |
{ |
{ |
| 445 |
$set_ontop_display = ($article["ontop"] ? "none" : "inline"); |
$set_ontop_display = ($result_set["data"]["ontop"] ? "none" : "inline"); |
| 446 |
$unset_ontop_display = ($article["ontop"] ? "inline" : "none"); |
$unset_ontop_display = ($result_set["data"]["ontop"] ? "inline" : "none"); |
| 447 |
|
|
| 448 |
$article_ctrl_bar .= <<<HTML |
$article_ctrl_bar .= <<<HTML |
| 449 |
<a class="s4" id="set_ontop_{$article['aid']}" style="display: {$set_ontop_display}" href="" onclick="return article_op('ontop', {$article['aid']}, 1, true)" title="置顶">置顶</a> |
<a class="s4" id="set_ontop_{$article['aid']}" style="display: {$set_ontop_display}" href="" onclick="return article_op('ontop', {$article['aid']}, 1, true)" title="置顶">置顶</a> |
| 450 |
<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> |
| 451 |
HTML; |
HTML; |
| 452 |
} |
} |
| 453 |
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) && |
| 454 |
($_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"])) |
| 455 |
{ |
{ |
| 456 |
$set_lock_display = ($article["lock"] ? "none" : "inline"); |
$set_lock_display = ($result_set["data"]["lock"] ? "none" : "inline"); |
| 457 |
$unset_lock_display = ($article["lock"] ? "inline" : "none"); |
$unset_lock_display = ($result_set["data"]["lock"] ? "inline" : "none"); |
| 458 |
|
|
| 459 |
$article_ctrl_bar .= <<<HTML |
$article_ctrl_bar .= <<<HTML |
| 460 |
<a class="s4" id="set_lock_{$article['aid']}" style="display: {$set_lock_display}" href="" onclick="return article_op('lock', {$article['aid']}, 1);" title="禁止回复">静默</a> |
<a class="s4" id="set_lock_{$article['aid']}" style="display: {$set_lock_display}" href="" onclick="return article_op('lock', {$article['aid']}, 1);" title="禁止回复">静默</a> |
| 470 |
<a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a> |
<a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a> |
| 471 |
HTML; |
HTML; |
| 472 |
} |
} |
| 473 |
|
if ($article["tid"] == 0) |
| 474 |
|
{ |
| 475 |
|
$set_favorite_display = ($result_set["data"]["topic_favorite"] ? "none" : "inline"); |
| 476 |
|
$unset_favorite_display = ($result_set["data"]["topic_favorite"] ? "inline" : "none"); |
| 477 |
|
|
| 478 |
|
$article_ctrl_bar .= <<<HTML |
| 479 |
|
<a class="s4" id="set_favorite_{$article['aid']}" style="display: {$set_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 1);" title="收藏主题">收藏</a> |
| 480 |
|
<a class="s4" id="unset_favorite_{$article['aid']}" style="display: {$unset_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 0);" title="取消收藏主题">取消收藏</a> |
| 481 |
|
HTML; |
| 482 |
|
} |
| 483 |
} |
} |
| 484 |
else |
else |
| 485 |
{ |
{ |
| 495 |
$nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); |
$nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); |
| 496 |
$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 />"); |
| 497 |
$title_class = ($article["visible"] ? "title_normal" : "title_deleted"); |
$title_class = ($article["visible"] ? "title_normal" : "title_deleted"); |
| 498 |
$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); |
| 499 |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
| 500 |
|
|
| 501 |
$transship_info = ""; |
$transship_info = ""; |
| 512 |
foreach ($article["attachments"] as $attachment) |
foreach ($article["attachments"] as $attachment) |
| 513 |
{ |
{ |
| 514 |
$filename = $attachment["filename"]; |
$filename = $attachment["filename"]; |
|
$ext = strtolower(substr($filename, (strrpos($filename, ".") ? strrpos($filename, ".") + 1 : 0))); |
|
| 515 |
|
|
| 516 |
$atta_list .= <<<HTML |
$atta_list .= <<<HTML |
| 517 |
<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"]}字节) |
| 535 |
|
|
| 536 |
if ($attachment["check"]) |
if ($attachment["check"]) |
| 537 |
{ |
{ |
| 538 |
|
$ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); |
| 539 |
switch ($ext) |
switch ($ext) |
| 540 |
{ |
{ |
| 541 |
case "bmp": |
case "bmp": |
| 547 |
case "tiff": |
case "tiff": |
| 548 |
$atta_list .= <<<HTML |
$atta_list .= <<<HTML |
| 549 |
<br /> |
<br /> |
| 550 |
<img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid={$attachment['aid']}"> |
<img class="auto_adjust" src="dl_file.php?aid={$attachment['aid']}"> |
| 551 |
HTML; |
HTML; |
| 552 |
break; |
break; |
| 553 |
} |
} |
| 575 |
作者: <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> |
| 576 |
</td> |
</td> |
| 577 |
<td width="75%" class="body"> |
<td width="75%" class="body"> |
| 578 |
<span style="color:#606060;">标题:</span> |
<span style="color: #606060">标题:</span> |
| 579 |
<img src="images/expression/{$article['icon']}.gif"> |
<img src="images/expression/{$article['icon']}.gif"> |
| 580 |
<span id="title_{$article['aid']}" class="{$title_class}"> |
<span id="title_{$article['aid']}" class="{$title_class}"> |
| 581 |
{$title_f} |
{$title_f} |
| 587 |
</tr> |
</tr> |
| 588 |
<tr> |
<tr> |
| 589 |
<td align="center"> |
<td align="center"> |
| 590 |
昵称: <span style="color: #909090;">{$nickname}</span> |
昵称: <span style="color: #909090">{$nickname}</span> |
| 591 |
</td> |
</td> |
| 592 |
<td class="body"> |
<td class="body"> |
| 593 |
<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> |
| 594 |
</td> |
</td> |
| 595 |
<td> |
<td> |
| 596 |
</td> |
</td> |
| 600 |
经验值: <span style="color:red;">{$article["exp"]}</span> |
经验值: <span style="color:red;">{$article["exp"]}</span> |
| 601 |
</td> |
</td> |
| 602 |
<td class="body"> |
<td class="body"> |
| 603 |
<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> |
| 604 |
</td> |
</td> |
| 605 |
<td> |
<td> |
| 606 |
</td> |
</td> |
| 607 |
</tr> |
</tr> |
| 608 |
<tr> |
<tr> |
| 609 |
<td align="center"> |
<td align="center"> |
| 610 |
等级: <span style="color: #909090;">{$level}</span> |
等级: <span style="color: #909090">{$level}</span> |
| 611 |
</td> |
</td> |
| 612 |
<td class="body"> |
<td class="body"> |
| 613 |
<span style="color:#606060;">长度:</span> <span style="color: #909090; ">{$article["length"]}字</span> |
<span style="color: #606060">长度:</span> <span style="color: #909090">{$article["length"]}字</span> |
| 614 |
</td> |
</td> |
| 615 |
<td> |
<td> |
| 616 |
</td> |
</td> |
| 618 |
<tr height="2"> |
<tr height="2"> |
| 619 |
<td> |
<td> |
| 620 |
</td> |
</td> |
| 621 |
<td style="background-color: #909090;"> |
<td style="background-color: #909090"> |
| 622 |
</td> |
</td> |
| 623 |
<td> |
<td> |
| 624 |
</td> |
</td> |
| 636 |
<tr> |
<tr> |
| 637 |
<td> |
<td> |
| 638 |
</td> |
</td> |
| 639 |
<td style="color:#000000; "> |
<td style="color: #000000"> |
| 640 |
========== * * * * * ========== |
========== * * * * * ========== |
| 641 |
<br /> |
<br /> |
| 642 |
{$atta_list} |
{$atta_list} |
| 743 |
</body> |
</body> |
| 744 |
</html> |
</html> |
| 745 |
HTML; |
HTML; |
|
?> |
|