Ejemplo n.º 1
0
*/
define("USE_CURL", TRUE);
/*
      end my localisaiation for xml....
*/
function arraydisplay($array)
{
    echo '<pre>';
    print_r($array);
}
$pages = array('92' => array('0' => 'General'), '96' => array('0' => 'Quests', '1' => 'Classic', '2' => 'The Burning Crusade', '3' => 'Wrath of the Lich King'), '97' => array('0' => 'Exploration', '1' => 'Eastern Kingdoms', '2' => 'Kalimdor', '3' => 'Outland', '4' => 'Northrend'), '95' => array('0' => 'Player vs. Player', '1' => 'Arena', '2' => 'Alterac Valley', '3' => 'Arathi Basin', '4' => 'Eye of the Storm', '5' => 'Warsong Gulch', '6' => 'Strand of the Ancients', '7' => 'Wintergrasp', '8' => 'Isle of Conquest'), '168' => array('0' => 'Dungeons &amp; Raids', '1' => 'Classic', '2' => 'The Burning Crusade', '3' => 'Lich King Dungeon', '4' => 'Lich King Heroic', '5' => 'Lich King 10-Player Raid', '6' => 'Lich King 25-Player Raid', '7' => 'Secrets of Ulduar 10-Player Raid', '8' => 'Secrets of Ulduar 25-Player Raid', '9' => 'Call of the Crusade 10-Player Raid', '10' => 'Call of the Crusade 25-Player Raid', '11' => 'Call of the Crusade 10-Player Raid', '12' => 'Call of the Crusade 25-Player Raid', '13' => 'Fall of the Lich King 10-Player Raid', '14' => 'Fall of the Lich King 25-Player Raid'), '169' => array('0' => 'Professions', '1' => 'Cooking', '2' => 'Fishing', '3' => 'First Aid'), '201' => array('0' => 'Reputation', '1' => 'Classic', '2' => 'The Burning Crusade', '3' => 'Wrath of the Lich King'), '155' => array('0' => 'World Events', '1' => 'Lunar Festival', '2' => 'Love is in the Air', '3' => 'Noblegarden', '4' => 'Children\'s Week', '5' => 'Midsummer', '6' => 'Brewfest', '7' => 'Hallow\'s End', '8' => 'Pilgrim\'s Bounty', '9' => 'Winter Veil', '10' => 'Argent Tournament'), '81' => array('0' => 'Feats of Strength'));
require_once ROSTER_LIB . 'simple.class.php';
require_once ROSTER_LIB . 'armory.class.php';
$armory = new RosterArmory();
foreach ($pages as $cat => $title) {
    $r = $armory->fetchArmorya($type = '12', $character = 'Ulminia', $guild = false, $realm = 'Zangarmarsh', $item_id = $cat, $fetch_type = 'array');
    //getArmoryDataXML($url);
    $g = 0;
    foreach ($r as $category) {
        // echo '<hr><br>~~-  '.$title[0].'~~~<br>';
        foreach ($category->achievement as $achievement) {
            $achv_points = '';
            $achv_icon = '';
            $achv_title = '';
            $achv_disc = '';
            $achv_date = '';
            $achv_title = '';
            $achv_id = '';
            $achv_reward_title = '';
            $achv_criteria = '';
            $achv_progress = '';