diff --git a/canalization_mod.php b/canalization_mod.php index 05a0362..9919160 100644 --- a/canalization_mod.php +++ b/canalization_mod.php @@ -1,4 +1,4 @@ -room == 403) { $s = db::c()->query('SELECT * FROM podzem2 WHERE name= "?s"', $mir['name'])->fetch_assoc(); diff --git a/ch.php b/ch.php index b03e10c..c7aafc9 100644 --- a/ch.php +++ b/ch.php @@ -112,11 +112,8 @@ if (isset($_GET['online']) && $_GET['online'] != null) { $ch4 = '_passive'; $ch5 = '_passive'; } + Template::header(sprintf('%s (%s)', $rooms[$user->room], mysql_num_rows($data))); ?> - - - - - <?= $rooms[$user->room], ' (', mysql_num_rows($data) ?>) - - - - -
-
-
- -
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], "= @$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))) {