function _flushStatisticTable($connection, $GMLevel) { global $L; echo "<fieldset>"; if (_isGMAllowed($connection)) { $query = mysql_query("SELECT * FROM `account_transfer` WHERE `gmAccount` = " . _getAccountID() . " ORDER BY `id` DESC LIMIT 9;", $connection) or die(mysql_error()); echo _BDiv($L[27] . "\n <button class = 'btn btn-success'>" . $L[13] . "</button>\n <button class = 'btn btn-danger'>" . $L[14] . "</button>\n <button class = 'btn btn-warning'>" . $L[15] . "</button>\n " . $L[28]) . "\n <br/>\n <table class = 'table table-condensed'>\n <tr class = 'menuBar'>\n <td>'OUR' & 'OLD' Name: </td>\n <td>'OUR' & 'OLD' Realm: </td>\n <td>Realmlist: </td>\n <td>Account: </td>\n <td>Password: </td>\n <td>Admin Options: </td>\n </tr>"; while ($row = mysql_fetch_array($query)) { if ($row["cStatus"] == 0) { echo "\n <tr>\n <td>" . $row["cNameNEW"] . " / " . $row["cNameOLD"] . "</td>\n <td>" . _getRealmNameFromID($connection, $row["cRealm"]) . " / " . $row["oRealm"] . "</td>\n <td><a href = '" . $row["oServer"] . "'>" . $row["oRealmlist"] . "</a></td>\n <td>" . $row["oAccount"] . "</td>\n <td>" . base64_decode($row["oPassword"]) . "</td>\n <td width = 240px class = 'text-center'>\n <button class = 'btn btn-success' name = 'Approve' id = '" . $row["id"] . "' onclick = \"DoApprove('" . $row["id"] . "', '" . $row["cRealm"] . "', '" . $row["GUID"] . "');\">" . $L[13] . "</button>\n <button class = 'btn btn-danger' name = 'Deny' id = '" . $row["id"] . "' onclick = \"DoDeny('" . $row["id"] . "', '" . $row["cRealm"] . "', '" . $row["GUID"] . "');\">" . $L[14] . "</button>\n <button class = 'btn btn-warning' name = 'Resend' id = '" . $row["id"] . "' onclick = \"DoResend('" . $row["id"] . "', '" . $row["cRealm"] . "', '" . $row["GUID"] . "\");'>" . $L[15] . "</button>\n </td>\n </tr>"; } } } else { $query = mysql_query("SELECT * FROM `account_transfer` WHERE `cAccount` = " . _getAccountID() . " ORDER BY `id` DESC LIMIT 9;", $connection) or die(mysql_error()); echo _BDiv($L[25] . " <a href = 'v335.699.rar'>3.3.5a</a><br/>" . $L[26]) . "\n <div>\n <form action = '" . $_SERVER["SCRIPT_NAME"] . "' method = 'post' enctype = 'multipart/form-data'>\n <input type = 'submit' class = 'btn btn-info' name = 'load' value = '" . $L[10] . "'/>\n </form>\n </div>\n <table class = 'table table-condensed'>\n <tr class = 'menuBar'>\n <td># </td>\n <td>Character Name: </td>\n <td>Realm: </td>\n <td> </td>\n </tr>"; while ($row = mysql_fetch_array($query)) { echo "\n <tr class = 'tip " . _returnTABLEStatusSTR($row["cStatus"]) . "' title ='" . _returnStatusSTR($row["cStatus"], $row["Reason"]) . "'>\n <td class = 'text-center'>" . $row["id"] . "</td>\n <td class = 'text-center'>" . $row["cNameNEW"] . "</td>\n <td class = 'text-center'>" . _getRealmNameFromID($connection, $row["cRealm"]) . "</td>\n <td class = 'text-center'>"; if ($row["cStatus"] == 0) { echo "<button style = 'float: right;' class = 'btn btn-warning' name = 'cancel' id = '" . $row["id"] . "' onclick = \"DoCancel('" . $row["id"] . "', '" . $row["cRealm"] . "', '" . $row["GUID"] . "');\">" . $L[12] . "</button>"; } echo " </td>\n </tr>"; } } echo "</table>\n </fieldset>"; mysql_close($connection) or die(mysql_error()); }
include_once '../_core/_config.php'; include_once '../_core/_functions.php'; include_once '../_core/_dbfunctions.php'; ob_start(); session_start(); if (!isset($_POST['ID']) || !isset($_POST['R']) || !isset($_POST['GUID'])) { die($L[9]); } $ID = (int) $_POST['ID']; $RealmID = (int) $_POST['R']; $GUID = (int) $_POST['GUID']; if (!_doesRealmExists($RealmID, $DBUser, $DBPassword) || !_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID)) { die($L[9]); } if (!_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) { die($L[60]); } $connection = _MySQLConnect($AccountDBHost, $DBUser, $DBPassword, $AccountDB); if (!_isGMAllowed($connection)) { mysql_close($connection) or die(mysql_error()); die($L[224]); } if (!_getMigrationStatus($connection, $ID) == 0) { mysql_close($connection) or die(mysql_error()); die($L[225]); } _updateMigrationStatus($connection, $ID, 3); mysql_close($connection) or die(mysql_error()); _CancelORDenyCharacterTransfer($DBUser, $DBPassword, $RealmID, $GUID, $STORAGE); ob_end_flush(); die($L[227] . " " . $ID . " " . $L[229]);
<?php include_once '_template/_header.php'; if (!_getUsername()) { Header('Location: index.php'); } if (isset($_GET['CL'])) { unset($_SESSION['R']); } $connection = _MySQLConnect($AccountDBHost, $DBUser, $DBPassword, $AccountDB); if (_isGMAllowed($connection) && isset($_POST['HowMuch']) && isset($_POST['HowMuchReason'])) { _modifyFirePoints($_POST['HowMuch'], _isset($_POST['HowMuchReason']) ? $_POST['HowMuchReason'] : _getUsername(), $connection, $_SESSION['R']['ID']); } _AH_FORM($connection, _isGMAllowed($connection)); mysql_close($connection) or die(mysql_error()); include_once '_template/_footer.php'; ob_end_flush(); function _AH_FORM($connection, $ADMIN_MODE = false) { global $L; $RealmID = isset($_GET['R']) ? (int) $_GET['R'] : null; $PostQuery = isset($_POST['U']) ? trim($_POST['U']) : null; if (isset($PostQuery)) { $PostQuery = !empty($PostQuery) ? $PostQuery : null; } $Done = null; $H = $ADMIN_MODE ? $L[221] : $L[95]; $Q_STR = "SELECT DATE(`whenItDone`),`action`,`text`,`realmName`,`charName`,`myth_coins_spend`,`myth_coins_balance`,`IP`\n FROM `account_billing_history` "; _getRealmArray($connection); echo "\n <div class = 'text-center'>\n <h2>" . $H . "</h2>"; if ($ADMIN_MODE) {