Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $agent = $_SERVER ['HTTP_USER_AGENT'];
- $java = 'Java/';
- $valid = strpos($agent, $java);
- if (is_numeric($valid)) {
- $key = $_GET ['key'];
- if ($key == 59103032130) {
- $link = mysql_connect('mysql.ak4322.info', '1ak4322', 'rmy02jfa');
- if (!$link) {
- die('Could not connect: ' . mysql_error());
- }
- if (!mysql_select_db('user_account_system', $link)) {
- echo 'Could not select database';
- exit;
- }
- $username = $_GET ['username'];
- $password = $_GET ['password'];
- $sql = "SELECT signature_data FROM bar WHERE username = '$username'";
- $result = mysql_query($sql, $link);
- if (!$result) {
- echo "DB Error, could not query the database\n";
- echo 'MySQL Error: ' . mysql_error();
- exit;
- }
- $row = mysql_fetch_assoc($result);
- if ($password == $row ['password']) {
- $kills = $row ['kills'] + $_GET ['kills'];
- $time = $row ['time'] + $_GET ['time'];
- $xp = $row ['xp'] + $_GET ['xp'];
- $loot = $row ['loot'] + $_GET ['loot'];
- $sql = "UPDATE signature_data SET kills='$kills', time='$time', xp='$xp', loot='$loot' WHERE username = '$username'";
- $result = mysql_query($sql, $link);
- if (!$result) {
- echo "Failed to upload stats\n";
- echo 'MySQL Error: ' . mysql_error();
- exit;
- }
- }
- mysql_close($link);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement