0)) exit;
mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='".$data['login']."'");
?>
Mafiaplace - Mihran
';
print "
Admin - Donate
\n";
if(isset($_POST['to'])) {
if(preg_match('/^[0-9]+$/',$_POST['amount'])) {
if($member = mysql_fetch_object(mysql_query("SELECT `login` FROM `[users]` WHERE `login`='{$_POST['to']}'"))) {
mysql_query("UPDATE `[users]` SET `bank`=`bank`+{$_POST['amount']} WHERE `login`='{$member->login}'");
mysql_query("INSERT INTO `[logs]`(`time`,`IP`,`login`,`person`,`code`,`area`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','** DemoCrazia **','{$member->login}',{$_POST['amount']},'donate')");
print "
Er is \${$_POST['amount']},- aan {$member->login} gedoneerd
\n";
}
}
}
print <<
ENDHTML;
}
else if($_GET['p'] == "del") {
echo '
';
$dbres = mysql_query("SELECT `login`,`level` FROM `[users]` WHERE `login`='{$_GET['x']}'");
if($x = mysql_fetch_object($dbres)) {
if($x->level == 1000)
print "
Delete user
\n
Je kan een admin niet verwijderen
\n";
else if(isset($_POST['delete'])) {
mysql_query("DELETE FROM `[users]` WHERE `login`='{$x->login}'");
mysql_query("DELETE FROM `[temp]` WHERE `login`='{$x->login}'");
mysql_query("DELETE FROM `[logs]` WHERE `login`='{$x->login}' AND `area`='hqIP'");
if($clan = mysql_fetch_object(mysql_query("SELECT `name` FROM `[clans]` WHERE `owner`='{$x->login}'"))) {
mysql_query("DELETE FROM `[clans]` WHERE `name`='{$clan->name}'");
mysql_query("UPDATE `[users]` SET `clan`='',`clanlevel`=0 WHERE `clan`='{$clan->name}'");
}
print "
';
$dbres = mysql_query("SELECT `id`,`login`,`pass`,`level`,`IP`,`email`,`type`,`clan`,`clanlevel`,`activated`,`blocklist` FROM `[users]` WHERE `login`='{$_GET['x']}'");
if($x = mysql_fetch_object($dbres)) {
if(isset($_POST['reset'])) {
mysql_query("DELETE FROM `[users]` WHERE `login`='{$x->login}'");
mysql_query("DELETE FROM `[temp]` WHERE `login`='{$x->login}'");
mysql_query("DELETE FROM `[logs]` WHERE `login`='{$x->login}' AND `area`='hqIP'");
mysql_query("INSERT INTO `[users]`(`id`,`signup`,`login`,`pass`,`level`,`IP`,`email`,`type`,`clan`,`clanlevel`,`blocklist`,`activated`) values('{$x->id}',NOW(),'{$x->login}','{$x->pass}','{$x->level}','{$x->IP}','{$x->email}','{$x->type}','{$x->clan}','{$x->clanlevel}','{$x->blocklist}',1)");
print "