game/_incl_data/class/magic/del_nas.php
2022-06-07 00:30:34 +03:00

14 lines
308 B
PHP

<?
if(!defined('GAME'))
{
die();
}
if( $u->info['host_reg'] == 0 ) {
$u->error = 'Ó âàñ íåò Íàñòàâíèêà';
}elseif( $itm['id'] > 0 ) {
$u->deleteItem($itm['id']);
mysql_query('UPDATE `users` SET `host_reg` = 0 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->error = 'Âû îòêàçàëèñü îò íàñòàâíèêà';
}
?>