define vars
This commit is contained in:
parent
5896f950ca
commit
9ba2587813
2
clan.php
2
clan.php
@ -64,6 +64,7 @@ if (!empty($login) AND $action == 'edit_status') {
|
||||
if (!empty($_POST['new_status'])) {
|
||||
$st = strip_tags(str_replace("<", "<", str_replace(">", ">", $_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 = 'Главу клана редактировать запрещено!';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user