if (_isEnoughMythCoins($PriceForRemoveDeserter, $connection)) {
            _SpendMythCoins($PriceForRemoveDeserter, 8, $CharName, $GUID, $RealmName, $RealmID, "test tip, will be used next time", $connection);
            mysql_close($connection) or die(mysql_error());
            $REALSON = _GDiv($L[17]);
            _removeDeserterDebuffFromCharacter($GUID, $RealmID, $DBUser, $DBPassword);
        } else {
            mysql_close($connection) or die(mysql_error());
            $REALSON = _getNotEnoughtFireSTR();
        }
        unset($_SESSION['TCA']);
    } else {
        Header('Location: _userside.php');
    }
}
// die("EXEPTION");
if (_doesRealmExists($RealmID, $DBUser, $DBPassword, isset($SA))) {
    if (_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID, isset($SA))) {
        if (_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) {
            if (!_doesCharacterHasDeserterDebuff($GUID, $RealmID, $DBUser, $DBPassword)) {
                echo _getAlreadyEffectSTR($L[144]);
            } else {
                _FORM_TO_CHAR_ACTIONS($SA ? $SA : _FORM_CHAR_ARRAY($AccountDBHost, $AccountDB, $DBUser, $DBPassword, $RealmID, $GUID), $L[90], $REALSON, $PriceForRemoveDeserter, null, null, null, null, null);
            }
        } else {
            echo _RDiv($L[60]);
        }
    } else {
        echo _RDiv($L[9]);
    }
} else {
    echo _RDiv($L[9]);
示例#2
0
<?php

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);
    } else {
        if (isset($_SESSION['TCA'])) {
            if (isset($_POST['itemID'])) {
                $ItemID = (int) $_POST['itemID'];
                $_SESSION['TCA']['SItem'] = $ItemID;
            }
            $SA = $_SESSION['TCA'];
            $RealmID = $_SESSION['TCA']['RealmID'];
            $GUID = $_SESSION['TCA']['CharGUID'];
        } else {
            Header('Location: _userside.php');
        }
    }
}
// die("EXEPTION");
if (_doesRealmExists($RealmID, $DBUser, $DBPassword)) {
    if (_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID)) {
        if (_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) {
            _FORM_ITEM_SHOP($SA ? $SA : _FORM_CHAR_ARRAY($AccountDBHost, $AccountDB, $DBUser, $DBPassword, $RealmID, $GUID), $RealmID, $DBUser, $DBPassword, $GUID, isset($ItemID) ? $ItemID : null, $MinPriceForItem, $MultiplicatorForItemPrice, $MinPriceForDisplayInTable, $ItemDiscountMode, $DiscountAmmount, $REALSON);
        } else {
            echo _RDiv($L[60]);
        }
    } else {
        echo _RDiv($L[9]);
    }
} else {
    echo _RDiv($L[9]);
}
include_once '_template/_footer.php';
ob_end_flush();
function _FORM_ITEM_SHOP($SA, $RealmID, $DBUser, $DBPassword, $GUID, $ItemID, $MinPrice, $PriceX, $DisplayPrice, $ITEM_DISCOUNT_MODE, $DISCOUNT_CONF, $REALSON = "")