mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-01 01:54:22 +00:00
update
This commit is contained in:
@@ -42,11 +42,10 @@ class funct {
|
||||
case addBan:
|
||||
if($get['time']){$end = time()+$get['time']; }else{$end = '';}
|
||||
|
||||
if(preg_match("/^[0-9]+$/",$get['uid'])){
|
||||
//if(eregi("^[0-9]*+$",$get['uid'])){
|
||||
if(is_numeric($get['uid'])){
|
||||
$get['uid'] = $get['uid'];
|
||||
}else{
|
||||
$get['uid'] = $database->getUserField($get['uid'],'id',1);
|
||||
$get['uid'] = $database->getUserField(addslashes($get['uid']),'id',1);
|
||||
}
|
||||
|
||||
$admin->AddBan($get['uid'],$end,$get['reason']);
|
||||
|
||||
Reference in New Issue
Block a user