| 311 |
baseURL: document.location.protocol + '//' + document.location.hostname + (document.location.port=='' ? '' : (':' + document.location.port)) + '/bbs/', |
baseURL: document.location.protocol + '//' + document.location.hostname + (document.location.port=='' ? '' : (':' + document.location.port)) + '/bbs/', |
| 312 |
}); |
}); |
| 313 |
|
|
| 314 |
$(document).ready(function() { |
window.addEventListener("load", () => { |
| 315 |
$("#ex_dir").on("change", function(e) { |
var s = document.getElementById("ex_dir"); |
| 316 |
set_ex_dir($("#ex_dir").find(":selected").val()); |
if (s) |
| 317 |
}); |
{ |
| 318 |
|
s.addEventListener("change", (e) => { |
| 319 |
|
set_ex_dir(s.value); |
| 320 |
|
}); |
| 321 |
|
} |
| 322 |
|
|
| 323 |
$("#move_article").on("submit", (e) => { |
var f = document.getElementById("move_article"); |
| 324 |
e.preventDefault(); |
if (f) |
| 325 |
if ($("#move_article").find("#sid").find(":selected").val() > 0) |
{ |
| 326 |
{ |
f.addEventListener("submit", (e) => { |
| 327 |
move_article($("#move_article").find("#sid").find(":selected").val()); |
e.preventDefault(); |
| 328 |
} |
if (f.sid.value > 0) |
| 329 |
}); |
{ |
| 330 |
|
move_article(f.sid.value); |
| 331 |
|
} |
| 332 |
|
}); |
| 333 |
|
} |
| 334 |
|
}); |
| 335 |
|
|
| 336 |
|
$(document).ready(function() { |
| 337 |
$("img[class=auto_adjust]").on("load", function() { |
$("img[class=auto_adjust]").on("load", function() { |
| 338 |
if ($(this).width() > {$BBS_img_max_width}) |
if ($(this).width() > {$BBS_img_max_width}) |
| 339 |
{ |
{ |
| 351 |
}); |
}); |
| 352 |
}); |
}); |
| 353 |
</script> |
</script> |
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous"> |
|
|
</script> |
|
| 354 |
</head> |
</head> |
| 355 |
<body> |
<body> |
| 356 |
<a name="top"></a> |
<a name="top"></a> |
| 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> |
| 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> |