Topic: 1.1
???????????!
??? ????? ??? ? ?????? 1.1 ????????? ??????????? ???????? ???????? ??? ???? ????? ???????:
else if (isset($_POST['update_status']))
{
if ($cur_user['status'] < PUN_ADMIN)
message($lang_common['No permission']);
confirm_referer('profile.php');
$db->query('UPDATE '.$db->prefix.'users SET status='.$_POST['status'].' WHERE id='.$id) or error('Unable to update status', __FILE__, __LINE__, $db->error());
redirect('profile.php?id='.$id, $lang_profile['Update status redirect']);
}