Access Denied: You are not Admin!"); foreach ($_POST as $key => $value) { $_POST[$key] = $database->escape($value); } $access = (int) $_POST['access']; $dur = (int) $_POST['protect'] * 86400; $protection = (time() + $dur); mysqli_query($GLOBALS["link"], "UPDATE ".TB_PREFIX."users SET access = ".$access.", gold = ".(int) $_POST['gold'].", sit1 = '".(int) $_POST['sitter1']."', sit2 = '".(int) $_POST['sitter2']."', protect = '".$protection."', cp = ".(int) $_POST['cp'].", ap = '".(int) $_POST['off']."', dp = '".(int) $_POST['def']."', RR = '".(int) $_POST['res']."', apall = '".(int) $_POST['ooff']."', dpall = '".(int) $_POST['odef']."' WHERE id = ".$id."") or die(mysqli_error($database->dblink)); header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); ?>