mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-28 06:57:22 +08:00
fix shoutbox not login warning
This commit is contained in:
+3
-3
@@ -100,14 +100,14 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$limit = ($CURUSER['sbnum'] ? $CURUSER['sbnum'] : 70);
|
$limit = ($CURUSER['sbnum'] ?? 70);
|
||||||
if ($where == "helpbox" && $showhelpbox_main == 'yes') {
|
if ($where == "helpbox" && $showhelpbox_main == 'yes') {
|
||||||
//request helpbox, not require login
|
//request helpbox, not require login
|
||||||
$sql = "SELECT * FROM shoutbox WHERE type='hb' ORDER BY date DESC LIMIT ".$limit;
|
$sql = "SELECT * FROM shoutbox WHERE type='hb' ORDER BY date DESC LIMIT ".$limit;
|
||||||
} elseif ($where == "shoutbox" && $CURUSER && ($CURUSER['hidehb'] == 'yes' || $showhelpbox_main != 'yes')) {
|
} elseif ($where == "shoutbox" && isset($CURUSER) && ($CURUSER['hidehb'] == 'yes' || $showhelpbox_main != 'yes')) {
|
||||||
//request shoutbox, exclude helpbox content, require login
|
//request shoutbox, exclude helpbox content, require login
|
||||||
$sql = "SELECT * FROM shoutbox WHERE type='sb' ORDER BY date DESC LIMIT ".$limit;
|
$sql = "SELECT * FROM shoutbox WHERE type='sb' ORDER BY date DESC LIMIT ".$limit;
|
||||||
} elseif ($CURUSER) {
|
} elseif (isset($CURUSER)) {
|
||||||
$sql = "SELECT * FROM shoutbox ORDER BY date DESC LIMIT ".$limit;
|
$sql = "SELECT * FROM shoutbox ORDER BY date DESC LIMIT ".$limit;
|
||||||
} else {
|
} else {
|
||||||
die("<h1>".$lang_shoutbox['std_access_denied']."</h1>"."<p>".$lang_shoutbox['std_access_denied_note']."</p></body></html>");
|
die("<h1>".$lang_shoutbox['std_access_denied']."</h1>"."<p>".$lang_shoutbox['std_access_denied_note']."</p></body></html>");
|
||||||
|
|||||||
Reference in New Issue
Block a user