time() - 60) {
$math[3] = stripslashes($math[3]);
//echo "console.log($math[1]|$math[2]|$math[3]);";
- if ((@$math[2] == '{[]}' . $user['login'] . '{[]}') && (@$math[1] >= @$user['chattime'])) {
+ if (($math[2] == '{[]}' . $user['login'] . '{[]}') && ($math[1] >= $user['chattime'])) {
echo "top.frames['chat'].document.all(\"mes\").innerHTML += '
" . date("H:i", $math[1]) . " " . $math[3] . "
';";
echo "top.frames['chat'].document.all(\"mes_system\").innerHTML += '
" . date("H:i", $math[1]) . " " . $math[3] . "
';";
echo "top.show_new(\"wtab1\"); top.show_new(\"wtab5\");";
$ks++;
$lastpost = $math[1];
- } elseif (substr($math[2], 0, 4) == '{[]}' && (@$math[1] >= @$user['chattime'])) {
+ } elseif (substr($math[2], 0, 4) == '{[]}' && ($math[1] >= $user['chattime'])) {
//exit;
- } elseif ((@$math[2] == '!sys!!') && (@$math[1] >= @$user['chattime']) /*&& ($user->room==$math[4])*/ && $_GET['om'] != 1) {
+ } elseif (($math[2] == '!sys!!') && ($math[1] >= @$user['chattime']) && $_GET['om'] != 1) {
if ($_GET['sys'] == 1 || strpos($math[3], "
" . date("H:i", $math[1]) . " " . $math[3] . "
';";
echo "top.frames['chat'].document.all(\"mes_system\").innerHTML += '
" . date("H:i", $math[1]) . " " . $math[3] . "
';";
@@ -294,19 +279,19 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
$ks++;
$lastpost = $math[1];
}
- } elseif (@$math[2] == '!sys2all!!' && @$math[1] >= @$user['chattime']) {
+ } elseif ($math[2] == '!sys2all!!' && @$math[1] >= $user['chattime']) {
echo "top.frames['chat'].document.all(\"mes\").innerHTML += '
" . date("H:i", $math[1]) . " " . $math[3] . "
';";
echo "top.frames['chat'].document.all(\"mes_system\").innerHTML += '
" . date("H:i", $math[1]) . " " . $math[3] . "
';";
echo "top.show_new(\"wtab5\");";
$ks++;
$lastpost = $math[1];
- } elseif ((@$math[2] == '!cavesys!!') && (@$math[1] >= @$user['chattime']) && ($user['caveleader'] == $math[4])) {
+ } elseif (($math[2] == '!cavesys!!') && ($math[1] >= $user['chattime']) && ($user['caveleader'] == $math[4])) {
echo "top.frames['chat'].document.getElementById(\"mes\").innerHTML += '
" . date("H:i", $math[1]) . " " . $math[3] . "
';";
echo "top.frames['chat'].document.all(\"mes_system\").innerHTML += '
" . date("H:i", $math[1]) . " " . $math[3] . "
';";
echo "top.show_new(\"wtab5\");";
$ks++;
$lastpost = $math[1];
- } elseif (@$math[1] >= @$user['chattime']) {
+ } elseif ($math[1] >= @$user['chattime']) {
if (strpos($math[3], "private [klan-{$user['klan']}-") !== FALSE) {
$pos = strpos($math[3], "[klan-{$user['klan']}-") + strlen($user['klan']) + 7;
} elseif (((strpos($math[3], "private [help]") !== FALSE))) {