item: implemented xml-feed (guess, i do see the point now)

started comparing DBSiples escapes with own
This commit is contained in:
Sarjuuk
2014-03-23 13:58:43 +01:00
parent e8c512a5e8
commit 05f8be3c79
5 changed files with 190 additions and 8 deletions

View File

@@ -3,6 +3,18 @@
if (!defined('AOWOW_REVISION'))
die('invalid access');
class SimpleXML extends SimpleXMLElement
{
public function addCData($str)
{
$node = dom_import_simplexml($this);
$no = $node->ownerDocument;
$node->appendChild($no->createCDATASection($str));
return $this;
}
}
class SmartyAoWoW extends Smarty
{
private $jsGlobals = [];
@@ -2111,7 +2123,7 @@ class Util
$srcObj->addGlobalsToJscript(self::$pageTemplate, GLOBALINFO_SELF | GLOBALINFO_RELATED);
$srcData = $srcObj->getListviewData();
foreach ($srcObj->iterate() as $_)
foreach ($srcObj->iterate() as $curTpl)
{
if ($tabId < 0 && $curTpl['typeFlags'] & NPC_TYPEFLAG_HERBLOOT)
$tabId = 9;