Código PHP:
<?php
define('Xukys', true);
require_once 'global.php';
if (isset($_GET['custom'])) {
$name = $gtfo->cleanWord($_GET['custom']);
}
$puntos = '3000000';
if (isset($_GET['pass'])) {
$pass = $_GET['pass'];
if ($pass == '147revvo') {
$user__id = $users->UserID($name);
dbquery("UPDATE users SET crystals = crystals + 3, credits = credits + $puntos WHERE username = '" . $name . "';");
$core->MUS("updatecredits", $users->UserID($name));
$text = "$puntos Créditos datos correctamente al usuario $name - ";
if ($users->UserRank($name) == 1 || $users->UserRank($name) == 2) {
dbquery("UPDATE users SET rank = '2' WHERE username ='" . $name . "'");
$text .= 'Rank 2 dado correctamente - ';
}
dbquery("UPDATE users SET vip = '1' WHERE username ='" . $name . "'");
$text .= "Vip dado correctamente ";
dbquery("INSERT INTO user_badges (user_id, badge_id) VALUES ('" . $user__id . "', 'VIP');");
$text .= "Placa VIP dada correctamente - ";
switch (rand(1, 5)) {
case 1:
$badge = 'AR1';
break;
case 2:
$badge = 'WH3';
break;
case 3:
$badge = 'YAK';
break;
case 4:
$badge = 'KO1';
break;
case 5:
$badge = 'HQ008';
break;
default:
break;
}
dbquery("INSERT INTO user_badges (user_id, badge_id) VALUES ('" . $user__id . "', '" . $badge . "');");
$text .= "Placa Promoción $badge dada correctamente \r\n";
echo 'ok';
$g = fopen(INCLUDES . 'paygol/paygol.txt', "a");
fputs($g, $text);
fclose($g);
} else {
exit;
}
}
?>