move_uploaded_file($_FILES['file']['tmp_name'], "./storage/" . $_FILES['file']['name']); $file = "./storage/chardump.lua"; $fileopen = fopen($file, 'r'); $buffer = ''; $realson = ''; while (!feof($fileopen)) { $buffer2 = fgets($fileopen); $buffer .= $buffer2; } fclose($fileopen); unlink($file); $part = explode('"', $buffer); if (isset($part[1])) { $DUMP = $part[1]; $REALM_NAME = $_POST['RealmlistList']; $DECODED_DUMP = _DECRYPT($DUMP); $CHAR_REALM = GetRealmID($AccountDBHost, $DBUser, $DBPassword, $AccountDB, $REALM_NAME); $CHAR_ACCOUNT_ID = _GetCharacterAccountID(); $GM_ACCOUNT_ID = CanOrNoTransferServer($AccountDBHost, $DBUser, $DBPassword, $AccountDB, $CHAR_REALM, $GMLevel); $json = json_decode(stripslashes($DECODED_DUMP), true); $CHAR_NAME = mb_convert_case(mb_strtolower($json['uinf']['name'], 'UTF-8'), MB_CASE_TITLE, 'UTF-8'); $O_REALMLIST = $json['ginf']['realmlist']; $O_REALM = $json['ginf']['realm']; $RaceID = _GetRaceID(strtoupper($json['uinf']['race'])); $ClassID = _GetClassID(strtoupper($json['uinf']['class'])); $CharLevel = _MaxValue($json['uinf']['level'], $MaxCL); $connection = mysql_connect($AccountDBHost, $DBUser, $DBPassword); _SelectDB($AccountDB, $connection); $result = mysql_query("SELECT `address`,`port` FROM `realmlist` WHERE `id` = " . $CHAR_REALM . ";", $connection) or die(mysql_error()); $row = mysql_fetch_array($result); $SPT = $row['port'];
<meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" /> <?php include_once "t_config.php"; include_once "t_functions.php"; include_once "t_dbfunctions.php"; $file = "chardump.lua"; $fileopen = fopen($file, 'r') or die("<b><font color=\"red\">Unable to open file or your fire not right!</font></b>"); $buffer = ''; while (!feof($fileopen)) { $buffer2 = fgets($fileopen); $buffer .= $buffer2; } $part = explode('"', $buffer); $DUMP = _DECRYPT($part[1]); // $DUMP = LoadDump($AccountDBHost, $DBUser, $DBPassword, $AccountDB, /*DUMP_ID*/); $json = json_decode(stripslashes($DUMP), true); echo "<br> --- DEBUGER --- <br>\n\n\n\n"; // RemoteCommandWithSOAP($SOAPUser, $SOAPPassword, 7878, "127.0.0.1", _SOAPURISwitch(1), ".server info"); print_r($json);