mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix protected forums problem (#136)
Co-authored-by: kongrui <me@rey.ink>
This commit is contained in:
+2
-4
@@ -751,7 +751,8 @@ if ($action == "viewtopic")
|
|||||||
print("</table></div>\n");
|
print("</table></div>\n");
|
||||||
|
|
||||||
print("<table class=\"main\" width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n");
|
print("<table class=\"main\" width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n");
|
||||||
|
|
||||||
|
$body = "<div id=\"pid".$postid."body\">";
|
||||||
//hidden content applied to second or higher floor post (for whose user class below Ad , not poster , not mods ,not reply's author)
|
//hidden content applied to second or higher floor post (for whose user class below Ad , not poster , not mods ,not reply's author)
|
||||||
if ($protected_enabled && $pn+$offset>1 && get_user_class()<UC_ADMINISTRATOR && $userid != $base_posterid && $posterid!=$userid && !$is_forummod){
|
if ($protected_enabled && $pn+$offset>1 && get_user_class()<UC_ADMINISTRATOR && $userid != $base_posterid && $posterid!=$userid && !$is_forummod){
|
||||||
//enable content protection
|
//enable content protection
|
||||||
@@ -760,9 +761,6 @@ if ($action == "viewtopic")
|
|||||||
//display normal content
|
//display normal content
|
||||||
$bodyContent = format_comment($arr["body"]);
|
$bodyContent = format_comment($arr["body"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$body = "<div id=\"pid".$postid."body\">";
|
|
||||||
$bodyContent = format_comment($arr["body"]);
|
|
||||||
if ($highlight){
|
if ($highlight){
|
||||||
$bodyContent = highlight($highlight,$body);
|
$bodyContent = highlight($highlight,$body);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user