| 99 |
font-size: 16px; |
font-size: 16px; |
| 100 |
text-decoration: line-through; |
text-decoration: line-through; |
| 101 |
} |
} |
| 102 |
|
IMG.auto_adjust |
| 103 |
|
{ |
| 104 |
|
display: none; |
| 105 |
|
} |
| 106 |
</style> |
</style> |
|
<script type="text/javascript" src="../js/img_adjust.js"></script> |
|
| 107 |
<script src="../js/polyfill.min.js"></script> |
<script src="../js/polyfill.min.js"></script> |
| 108 |
<script src="../js/axios.min.js"></script> |
<script src="../js/axios.min.js"></script> |
| 109 |
|
<script src="../js/jquery.min.js"></script> |
| 110 |
<script type="text/javascript"> |
<script type="text/javascript"> |
| 111 |
function ch_page(page) |
function ch_page(page) |
| 112 |
{ |
{ |
| 325 |
{ |
{ |
| 326 |
f.addEventListener("submit", (e) => { |
f.addEventListener("submit", (e) => { |
| 327 |
e.preventDefault(); |
e.preventDefault(); |
| 328 |
move_article(f.sid.value); |
if (f.sid.value > 0) |
| 329 |
|
{ |
| 330 |
|
move_article(f.sid.value); |
| 331 |
|
} |
| 332 |
}); |
}); |
| 333 |
} |
} |
| 334 |
}); |
}); |
| 335 |
|
|
| 336 |
</script> |
$(document).ready(function() { |
| 337 |
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous"> |
$("img[class=auto_adjust]").on("load", function() { |
| 338 |
|
if ($(this).width() > {$BBS_img_max_width}) |
| 339 |
|
{ |
| 340 |
|
$(this).width({$BBS_img_max_width}); |
| 341 |
|
} |
| 342 |
|
$(this).show(); |
| 343 |
|
}) |
| 344 |
|
.on("mousewheel", function(e) { |
| 345 |
|
var zoom = parseFloat($(this).css("zoom")); |
| 346 |
|
zoom *= (1 + e.originalEvent.wheelDelta / 1000); |
| 347 |
|
if (zoom > 0) |
| 348 |
|
{ |
| 349 |
|
$(this).css("zoom", zoom); |
| 350 |
|
} |
| 351 |
|
}); |
| 352 |
|
}); |
| 353 |
</script> |
</script> |
| 354 |
</head> |
</head> |
| 355 |
<body> |
<body> |
| 414 |
<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> |
| 415 |
HTML; |
HTML; |
| 416 |
} |
} |
| 417 |
if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST)) |
if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) && |
| 418 |
|
(!$result_set["data"]["lock"])) |
| 419 |
{ |
{ |
| 420 |
$article_ctrl_bar .= <<<HTML |
$article_ctrl_bar .= <<<HTML |
| 421 |
<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> |
| 433 |
} |
} |
| 434 |
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)) |
| 435 |
{ |
{ |
| 436 |
$set_ontop_display = ($article["ontop"] ? "none" : "inline"); |
$set_ontop_display = ($result_set["data"]["ontop"] ? "none" : "inline"); |
| 437 |
$unset_ontop_display = ($article["ontop"] ? "inline" : "none"); |
$unset_ontop_display = ($result_set["data"]["ontop"] ? "inline" : "none"); |
| 438 |
|
|
| 439 |
$article_ctrl_bar .= <<<HTML |
$article_ctrl_bar .= <<<HTML |
| 440 |
<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> |
| 441 |
<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> |
| 442 |
HTML; |
HTML; |
| 443 |
} |
} |
| 444 |
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) && |
| 445 |
($_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"])) |
| 446 |
{ |
{ |
| 447 |
$set_lock_display = ($article["lock"] ? "none" : "inline"); |
$set_lock_display = ($result_set["data"]["lock"] ? "none" : "inline"); |
| 448 |
$unset_lock_display = ($article["lock"] ? "inline" : "none"); |
$unset_lock_display = ($result_set["data"]["lock"] ? "inline" : "none"); |
| 449 |
|
|
| 450 |
$article_ctrl_bar .= <<<HTML |
$article_ctrl_bar .= <<<HTML |
| 451 |
<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> |
| 476 |
$nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); |
$nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); |
| 477 |
$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 />"); |
| 478 |
$title_class = ($article["visible"] ? "title_normal" : "title_deleted"); |
$title_class = ($article["visible"] ? "title_normal" : "title_deleted"); |
| 479 |
$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); |
| 480 |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
| 481 |
|
|
| 482 |
$transship_info = ""; |
$transship_info = ""; |
| 493 |
foreach ($article["attachments"] as $attachment) |
foreach ($article["attachments"] as $attachment) |
| 494 |
{ |
{ |
| 495 |
$filename = $attachment["filename"]; |
$filename = $attachment["filename"]; |
|
$ext = strtolower(substr($filename, (strrpos($filename, ".") ? strrpos($filename, ".") + 1 : 0))); |
|
| 496 |
|
|
| 497 |
$atta_list .= <<<HTML |
$atta_list .= <<<HTML |
| 498 |
<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"]}字节) |
| 516 |
|
|
| 517 |
if ($attachment["check"]) |
if ($attachment["check"]) |
| 518 |
{ |
{ |
| 519 |
|
$ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); |
| 520 |
switch ($ext) |
switch ($ext) |
| 521 |
{ |
{ |
| 522 |
case "bmp": |
case "bmp": |
| 528 |
case "tiff": |
case "tiff": |
| 529 |
$atta_list .= <<<HTML |
$atta_list .= <<<HTML |
| 530 |
<br /> |
<br /> |
| 531 |
<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']}"> |
| 532 |
HTML; |
HTML; |
| 533 |
break; |
break; |
| 534 |
} |
} |
| 556 |
作者: <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> |
| 557 |
</td> |
</td> |
| 558 |
<td width="75%" class="body"> |
<td width="75%" class="body"> |
| 559 |
<span style="color:#606060;">标题:</span> |
<span style="color: #606060">标题:</span> |
| 560 |
<img src="images/expression/{$article['icon']}.gif"> |
<img src="images/expression/{$article['icon']}.gif"> |
| 561 |
<span id="title_{$article['aid']}" class="{$title_class}"> |
<span id="title_{$article['aid']}" class="{$title_class}"> |
| 562 |
{$title_f} |
{$title_f} |
| 568 |
</tr> |
</tr> |
| 569 |
<tr> |
<tr> |
| 570 |
<td align="center"> |
<td align="center"> |
| 571 |
昵称: <span style="color: #909090;">{$nickname}</span> |
昵称: <span style="color: #909090">{$nickname}</span> |
| 572 |
</td> |
</td> |
| 573 |
<td class="body"> |
<td class="body"> |
| 574 |
<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> |
| 575 |
</td> |
</td> |
| 576 |
<td> |
<td> |
| 577 |
</td> |
</td> |
| 581 |
经验值: <span style="color:red;">{$article["exp"]}</span> |
经验值: <span style="color:red;">{$article["exp"]}</span> |
| 582 |
</td> |
</td> |
| 583 |
<td class="body"> |
<td class="body"> |
| 584 |
<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> |
| 585 |
</td> |
</td> |
| 586 |
<td> |
<td> |
| 587 |
</td> |
</td> |
| 588 |
</tr> |
</tr> |
| 589 |
<tr> |
<tr> |
| 590 |
<td align="center"> |
<td align="center"> |
| 591 |
等级: <span style="color: #909090;">{$level}</span> |
等级: <span style="color: #909090">{$level}</span> |
| 592 |
</td> |
</td> |
| 593 |
<td class="body"> |
<td class="body"> |
| 594 |
<span style="color:#606060;">长度:</span> <span style="color: #909090; ">{$article["length"]}字</span> |
<span style="color: #606060">长度:</span> <span style="color: #909090">{$article["length"]}字</span> |
| 595 |
</td> |
</td> |
| 596 |
<td> |
<td> |
| 597 |
</td> |
</td> |
| 599 |
<tr height="2"> |
<tr height="2"> |
| 600 |
<td> |
<td> |
| 601 |
</td> |
</td> |
| 602 |
<td style="background-color: #909090;"> |
<td style="background-color: #909090"> |
| 603 |
</td> |
</td> |
| 604 |
<td> |
<td> |
| 605 |
</td> |
</td> |
| 617 |
<tr> |
<tr> |
| 618 |
<td> |
<td> |
| 619 |
</td> |
</td> |
| 620 |
<td style="color:#000000; "> |
<td style="color: #000000"> |
| 621 |
========== * * * * * ========== |
========== * * * * * ========== |
| 622 |
<br /> |
<br /> |
| 623 |
{$atta_list} |
{$atta_list} |
| 724 |
</body> |
</body> |
| 725 |
</html> |
</html> |
| 726 |
HTML; |
HTML; |
|
?> |
|