$check = "1"; } } if (!@$check == "1") { exit(Security::encrypt("badlauncher<\$>_{$masterversion}", $key1)); } } if ($assetsfolder) { $z = "/"; } else { $z = ".zip"; } if (!file_exists("clients/assets" . $z) || !file_exists("clients/" . $client . "/bin/") || !file_exists("clients/" . $client . "/mods/") || !file_exists("clients/" . $client . "/coremods/") || !file_exists("clients/" . $client . "/config.zip")) { die(Security::encrypt("client<\$> {$client}", $key1)); } $md5user = strtoint(xorencode(str_replace('-', '', uuidConvert($realUser)), $protectionKey)); $md5zip = @md5_file("clients/" . $client . "/config.zip"); $md5ass = @md5_file("clients/assets.zip"); $sizezip = @filesize("clients/" . $client . "/config.zip"); $sizeass = @filesize("clients/assets.zip"); $echo1 = "{$masterversion}<:>{$md5user}<:>" . $md5zip . "<>" . $sizezip . "<:>" . $md5ass . "<>" . $sizeass . "<br>" . $realUser . '<:>' . strtoint(xorencode($sessid, $protectionKey)) . '<br>' . $acesstoken . '<br>'; if ($assetsfolder) { echo Security::encrypt($echo1 . str_replace("\\", "/", checkfiles('clients/' . $client . '/bin/') . checkfiles('clients/' . $client . '/mods/') . checkfiles('clients/' . $client . '/coremods/') . checkfiles('clients/assets')) . '<::>assets/indexes<:b:>assets/objects<:b:>assets/virtual<:b:>' . $client . '/bin<:b:>' . $client . '/mods<:b:>' . $client . '/coremods<:b:>', $key1); } else { echo Security::encrypt($echo1 . str_replace("\\", "/", checkfiles('clients/' . $client . '/bin/') . checkfiles('clients/' . $client . '/mods/') . checkfiles('clients/' . $client . '/coremods/')) . '<::>' . $client . '/bin<:b:>' . $client . '/mods<:b:>' . $client . '/coremods<:b:>', $key1); } } else { if ($action == 'getpersonal') { $stmt = $db->prepare("SELECT user,realmoney FROM usersession WHERE user= :login"); $stmt->bindValue(':login', $login); $stmt->execute();
<?php define('INCLUDE_CHECK', true); include_once "connect.php"; include_once "uuid.php"; @($user = json_decode($HTTP_RAW_POST_DATA)); try { $stmt = $db->prepare("SELECT user FROM usersession WHERE user= :user"); $stmt->bindValue(':user', $user[0]); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_ASSOC); $realUser = $row['user']; if ($realUser == null) { exit; } echo '[{"id":"' . str_replace('-', '', @uuidConvert($realUser)) . '","name":"' . $realUser . '"}]'; } catch (PDOException $pe) { die($logger->WriteLine($log_date . $pe)); //вывод ошибок MySQL в m.log }