$tmp_language = @$_GET['lang'] ? urldecode($_GET['lang']) : $default_language; $tmp_force = @$_GET['force'] ? true : false; $api_version = @$_GET['apiversion'] ? urldecode($_GET['apiversion']) : $api_version; $output = ''; // init the required plus functions $eqdkp_root_path = ''; require_once 'classes/plus_url_fetcher.class.php'; require_once 'classes/core.functions.php'; $puf = new urlFetcher(); // load the armory class if ($api_version < '2') { include_once 'classes/bnet_armory_old.class.php'; } else { include_once 'classes/bnet_armory.class.php'; } $armory = new bnet_armory($tmp_loc, $tmp_language); if ($api_version > '1') { $armory->setSettings(array('apiKey' => $api_key)); } $testdata = $armory->character($tmp_charname, $tmp_servername, $tmp_force); $get_method = $puf->get_method() ? $puf->get_method() : 'Cached'; $output .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>battle.net Armory Class Tester ' . $armory->getVersion() . ' - CHARACTER</title> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css" type="text/css" media="all" /> <style type="text/css"> .ui-grid { width: 900px; padding: .4em; background-image: none; } .ui-grid .ui-grid-content { width: 100%; border-collapse: collapse; } .ui-grid table tbody td, .ui-grid .ui-grid-header, .ui-grid table thead a { padding: .4em; }
require_once 'classes/core.functions.php'; $puf = new urlFetcher(); $tmp_guild = @$_GET['guild'] ? urldecode($_GET['guild']) : $default_guild; $tmp_servername = @$_GET['realm'] ? urldecode(stripslashes($_GET['realm'])) : $default_realm; $tmp_loc = @$_GET['loc'] ? urldecode($_GET['loc']) : $default_loc; $tmp_language = @$_GET['lang'] ? urldecode($_GET['lang']) : $default_language; $tmp_force = @$_GET['force'] ? true : false; $api_version = @$_GET['apiversion'] ? urldecode($_GET['apiversion']) : $api_version; //$min_level = (@$_GET['level']) ? urldecode($_GET['level']) : 20; //$cclass = (@$_GET['class']) ? urldecode($_GET['class']) : ''; if ($api_version < '2') { include_once 'classes/bnet_armory_old.class.php'; } else { include_once 'classes/bnet_armory.class.php'; } $armory = new bnet_armory($tmp_loc, $tmp_language); if ($api_version > '1') { $armory->setSettings(array('apiKey' => $api_key)); } $dataarry = $armory->guild($tmp_guild, $tmp_servername, $tmp_force); $get_method = $puf->get_method() ? $puf->get_method() : 'Cached'; if ($_GET['array'] == 'true') { d($dataarry); die; } if ($_POST['charimg'] == 'true') { die('<img src="' . $armory->characterIcon($chars['character']['thumbnail']) . '" alt="charicon" />'); } $output .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head>
$tmp_loc = @$_GET['loc'] ? urldecode($_GET['loc']) : $default_loc; $tmp_language = @$_GET['lang'] ? urldecode($_GET['lang']) : $default_language; $api_version = @$_GET['apiversion'] ? urldecode($_GET['apiversion']) : $api_version; $output = ''; // init the required plus functions $eqdkp_root_path = ''; require_once 'classes/plus_url_fetcher.class.php'; require_once 'classes/core.functions.php'; $puf = new urlFetcher(); // load the armory class if ($api_version < '2') { include_once 'classes/bnet_armory_old.class.php'; } else { include_once 'classes/bnet_armory.class.php'; } $armory = new bnet_armory($tmp_loc, $tmp_language, $api_key); $servernames = explode(",", $tmp_servername); $testdata = $armory->realm($servernames, $tmp_force); $get_method = $puf->get_method() ? $puf->get_method() : 'Cached'; $output .= "<b>battle.net Armory Class Tester - REALM</b> ( bnetArmory [" . $armory->getVersion() . "]), connection method: <span style='color:red;'>" . $get_method . "</span><br/><br/>"; $output .= 'GET Parameters: realm [Antonidas], loc [eu], lang [de_DE], force [false]<br/><br/>'; if ($_GET['array'] == 'true') { d($testdata); die; } $output .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>battle.net Armory Class Tester ' . $armory->getVersion() . ' - REALM</title> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css" type="text/css" media="all" />
$tmp_language = @$_GET['lang'] ? urldecode($_GET['lang']) : $default_language; $tmp_force = @$_GET['force'] ? true : false; $api_version = @$_GET['apiversion'] ? urldecode($_GET['apiversion']) : $api_version; $output = ''; // init the required plus functions $eqdkp_root_path = ''; require_once 'classes/plus_url_fetcher.class.php'; require_once 'classes/core.functions.php'; $puf = new urlFetcher(); // load the armory class if ($api_version < '2') { include_once 'classes/bnet_armory_old.class.php'; } else { include_once 'classes/bnet_armory.class.php'; } $armory = new bnet_armory($tmp_loc, $tmp_language, $api_key); $testdata = $armory->pvpteam($tmp_servername, $tmp_teamname, $tmp_teamsize, $tmp_force); $get_method = $puf->get_method() ? $puf->get_method() : 'Cached'; $output .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>battle.net Armory Class Tester ' . $armory->getVersion() . ' - CHARACTER</title> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css" type="text/css" media="all" /> <style type="text/css"> .ui-grid { width: 900px; padding: .4em; background-image: none; } .ui-grid .ui-grid-content { width: 100%; border-collapse: collapse; } .ui-grid table tbody td, .ui-grid .ui-grid-header, .ui-grid table thead a { padding: .4em; } .ui-grid table tbody td { text-align: center; font-weight: normal; } .ui-grid table tbody td.left { text-align: left; font-weight: normal; } .ui-grid .ui-grid-header, .ui-grid .ui-grid-footer { padding: .8em .4em; text-align: center; }
$tmp_force = @$_GET['force'] ? true : false; $tmp_loc = @$_GET['loc'] ? urldecode($_GET['loc']) : $default_loc; $api_version = @$_GET['apiversion'] ? urldecode($_GET['apiversion']) : $api_version; $output = ''; // init the required plus functions $eqdkp_root_path = ''; require_once 'classes/plus_url_fetcher.class.php'; require_once 'classes/core.functions.php'; $puf = new urlFetcher(); // load the armory class if ($api_version < '2') { include_once 'classes/bnet_armory_old.class.php'; } else { include_once 'classes/bnet_armory.class.php'; } $armory = new bnet_armory($tmp_loc, $tmp_language); if ($api_version > '1') { $armory->setSettings(array('apiKey' => $api_key)); } //item($itemid, $force=false){ $testdata = $armory->item($tmp_itemid, $tmp_force); $get_method = $puf->get_method() ? $puf->get_method() : 'Cached'; $output .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>battle.net Armory Class Tester ' . $armory->getVersion() . ' - CHARACTER</title> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css" type="text/css" media="all" /> <style type="text/css"> .ui-grid { width: 900px; padding: .4em; background-image: none; } .ui-grid .ui-grid-content { width: 100%; border-collapse: collapse; }