| 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 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> |
| 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($article["content"], ENT_HTML401, 'UTF-8'), true, true, 80); |
$content_f = LML($article["content"], 80); |
| 499 |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
| 500 |
|
|
| 501 |
$transship_info = ""; |
$transship_info = ""; |
| 547 |
case "tiff": |
case "tiff": |
| 548 |
$atta_list .= <<<HTML |
$atta_list .= <<<HTML |
| 549 |
<br /> |
<br /> |
| 550 |
<img onload="return img_adjust(this, {$BBS_img_max_width})" 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 |
} |
} |