Ejemplo n.º 1
0
#                  The policy of Nomsoftware states: Releasing our software
#                  or any other files are protected. You cannot re-release
#                  anywhere unless you were given permission.
#                  © Nomsoftware 'Nomsoft' 2011-2012. All rights reserved.
require '../ext_scripts_class_loader.php';
if ($_POST['action'] == 'unstuck') {
    $guid = (int) $_POST['guid'];
    $realm_id = server::getRealmId($_POST['char_db']);
    connect::connectToRealmDB($realm_id);
    character::unstuck($guid, $_POST['char_db']);
}
if ($_POST['action'] == 'revive') {
    $guid = (int) $_POST['guid'];
    $realm_id = server::getRealmId($_POST['char_db']);
    connect::connectToRealmDB($realm_id);
    character::revive($guid, $_POST['char_db']);
}
if ($_POST['action'] == 'getLocations') {
    $values = explode('*', $_POST['values']);
    $char = mysql_real_escape_string($values[0]);
    $realm_id = server::getRealmId($values[1]);
    connect::connectToRealmDB($realm_id);
    $result = mysql_query("SELECT race FROM characters WHERE guid='" . $char . "'");
    $row = mysql_fetch_assoc($result);
    $alliance = array(1, 3, 4, 7, 11);
    if (in_array($row['race'], $alliance)) {
        //Alliance
        $locations_name = array(1 => "Stormwind", 2 => "Ironforge", 3 => "Darnassus", 4 => "The Exodar", 5 => "Dalaran", 6 => "Shattrath");
        $locations_image = array("Stormwind" => "spell_arcane_teleportstormwind", "Ironforge" => "spell_arcane_teleportironforge", "Darnassus" => "spell_arcane_teleportdarnassus", "The Exodar" => "spell_arcane_teleportexodar", "Dalaran" => "spell_arcane_teleportdalaran", "Shattrath" => "spell_arcane_teleportshattrath");
    } else {
        //Horde