Ejemplo n.º 1
0
        die('<b>Error:</b> unable to load search engine class!');
    }
    $search = new SearchMgr($armory);
}
if (defined('load_itemprototype_class')) {
    if (!@(include 'classes/class.itemprototype.php')) {
        die('<b>Error:</b> unable to load ItemPrototype Class!');
    }
    // Do not create class instance here. It should be created in Characters or Items classes.
}
if (defined('load_item_class')) {
    if (!@(include 'classes/class.item.php')) {
        die('<b>Error:</b> unable to load Item Class!');
    }
    // Do not create class instance here. It should be created in Characters or Items classes.
}
// Start XML parser
if (!@(include 'classes/class.xmlhandler.php')) {
    die('<b>Error:</b> unable to load XML handler class!');
}
$xml = new XMLHandler($armory->GetLocale());
$xml->StartXML();
// Do not remove this
if (isset($_GET['_DISPLAYVERSION_'])) {
    $xml->XMLWriter()->startElement('ARMORY_REVISION');
    $xml->XMLWriter()->text(ARMORY_REVISION);
    $xml->XMLWriter()->endElement();
    //ARMORY_REVISION
    header('Content-type: text/xml');
    die($xml->StopXML());
}