68 lines
2.2 KiB
PHP
68 lines
2.2 KiB
PHP
|
<?
|
|||
|
if(!defined('GAME'))
|
|||
|
{
|
|||
|
die();
|
|||
|
}
|
|||
|
if($p['deletInfo']==1)
|
|||
|
{
|
|||
|
$tm = (int)$_POST['time'];
|
|||
|
if($tm!=1 && $tm!=7 && $tm!=14 && $tm!=30 && $tm!=60)
|
|||
|
{
|
|||
|
$uer = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
}else{
|
|||
|
$uu = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['logingo']).'" LIMIT 1'));
|
|||
|
if(isset($uu['id']))
|
|||
|
{
|
|||
|
if($uu['info_delete']!=1 && $uu['info_delete']<time())
|
|||
|
{
|
|||
|
$srok = array(
|
|||
|
1=>'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
7=>'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
14=>'<27><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
30=>'<27><><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
60=>'<27><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
|
|||
|
);
|
|||
|
$srok = $srok[$tm];
|
|||
|
if($tm==1)
|
|||
|
{
|
|||
|
$tm = '`info_delete` = "1"';
|
|||
|
}elseif($tm==7)
|
|||
|
{
|
|||
|
$tm = '`info_delete` = "'.(time()+7*86400).'"';
|
|||
|
}elseif($tm==14)
|
|||
|
{
|
|||
|
$tm = '`info_delete` = "'.(time()+14*86400).'"';
|
|||
|
}elseif($tm==30)
|
|||
|
{
|
|||
|
$tm = '`info_delete` = "'.(time()+30*86400).'"';
|
|||
|
}elseif($tm==60)
|
|||
|
{
|
|||
|
$tm = '`info_delete` = "'.(time()+60*86400).'"';
|
|||
|
}
|
|||
|
$upd = mysql_query('UPDATE `users` SET '.$tm.' WHERE `id` = "'.$uu['id'].'" LIMIT 1');
|
|||
|
if($upd)
|
|||
|
{
|
|||
|
$sx = '';
|
|||
|
if($u->info['sex']==1)
|
|||
|
{
|
|||
|
$sx = '<27>';
|
|||
|
}
|
|||
|
$rtxt = '[img[items/cui.gif]] '.$rang.' "'.$u->info['cast_login'].'" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'.$sx.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> "'.$uu['login'].'" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$srok;
|
|||
|
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES ('".$u->info['city']."','".$u->info['room']."','','','".$rtxt."','".time()."','6','0','1')");
|
|||
|
$rtxt = $rang.' "'.$u->info['login'].'" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'.$sx.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b>", <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$srok.'.';
|
|||
|
mysql_query("INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('".$uu['id']."','".$_SERVER['REMOTE_ADDR']."','".$u->info['city']."','".time()."','".$rtxt."','".$u->info['login']."',0)");
|
|||
|
$uer = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "'.$uu['login'].'".<br>';
|
|||
|
}else{
|
|||
|
$uer = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$uer = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$uer = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
}
|
|||
|
}
|
|||
|
}else{
|
|||
|
$uer = '<27> <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
}
|
|||
|
?>
|