define vars

This commit is contained in:
lopar 2019-06-22 17:13:47 +03:00
parent 5896f950ca
commit 9ba2587813

View File

@ -64,6 +64,7 @@ if (!empty($login) AND $action == 'edit_status') {
if (!empty($_POST['new_status'])) {
$st = strip_tags(str_replace("&lt;", "<", str_replace("&gt;", ">", $_POST['new_status'])), "<B><I><U>");
db::c()->query('UPDATE `users` SET `status` = "?s" WHERE `id` = ?i', $st, $sok['id']);
$sok['status'] = $st;
}
if ((!empty($_POST['vin']) OR !empty($_POST['tus'])) AND $klan['glava'] == $_SESSION['uid']) {
if ($_POST['vin'] == 'on') $polno[$sok['id']][0] = 1;
@ -74,7 +75,6 @@ if (!empty($login) AND $action == 'edit_status') {
db::c()->query('UPDATE `clans` SET `vozm` = "?s" WHERE `id` = ?i', serialize($polno), $klan['id']);
}
$sok['status'] = $st;
} else $status = 'Главу клана редактировать запрещено!';
}