From cf8f795550a32bdc0e241efd0b588986d0399897 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Wed, 30 Sep 2020 17:13:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BA=D1=80=D1=83=D1=87?= =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=B5=D0=BC=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE?= =?UTF-8?q?=D0=BD.=20=D0=A5=D0=BE=D1=80=D0=BE=D0=BD=D0=B8=D0=BC=20=D0=B8?= =?UTF-8?q?=D0=B4=D0=B8=D0=BE=D1=82=D1=81=D0=BA=D0=B8=D0=B5=20=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=B1=D0=BA=D0=B8.=20=D0=94=D0=B5=D0=BB=D0=B0=D0=B5?= =?UTF-8?q?=D0=BC=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5,=20=D0=B1=D0=BE=D0=BB?= =?UTF-8?q?=D0=B5=D0=B5=20=D0=B8=D0=B4=D0=B8=D0=BE=D1=82=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=D0=B5.=20=D0=9F=D1=80=D0=BE=D0=BA=D0=BB=D0=B8=D0=BD=D0=B0?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B0=20=D0=B8?= =?UTF-8?q?=D0=B7=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=BA=D0=BE=D0=B4=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- canalization_mod.php | 2 +- ch.php | 29 +++++++---------------------- 2 files changed, 8 insertions(+), 23 deletions(-) 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))) {