Хороним $_COOKIE['pass'], отказываемся от md5('pass'). Это не регистрация, а чёрная дыра!
This commit is contained in:
+1
-7
@@ -526,11 +526,6 @@ if (isset($_POST['msg']) && str_replace(' ', '', $_POST['msg']) != '') {
|
||||
$i++;
|
||||
}
|
||||
|
||||
$activ = 0;
|
||||
if ($u->info['activ'] > 0) {
|
||||
$activ = 1;
|
||||
}
|
||||
|
||||
$msg['nosee'] = 0;
|
||||
|
||||
if ($u->info['level'] < 1) {
|
||||
@@ -543,9 +538,8 @@ if (isset($_POST['msg']) && str_replace(' ', '', $_POST['msg']) != '') {
|
||||
}
|
||||
|
||||
mysql_query(
|
||||
'INSERT INTO `chat` (`nosee`,`active`,`invis`,`da`,`delete`,`molch`,`new`,`login`,`to`,`city`,`room`,`time`,`type`,`spam`,`text`,`toChat`,`color`,`typeTime`,`sound`,`global`) VALUES (
|
||||
'INSERT INTO `chat` (`nosee`,`invis`,`da`,`delete`,`molch`,`new`,`login`,`to`,`city`,`room`,`time`,`type`,`spam`,`text`,`toChat`,`color`,`typeTime`,`sound`,`global`) VALUES (
|
||||
"' . $msg['nosee'] . '",
|
||||
"' . $activ . '",
|
||||
"' . $u->info['invis'] . '",
|
||||
"' . $msg['da'] . '",
|
||||
"' . $msg['delete'] . '",
|
||||
|
||||
Reference in New Issue
Block a user