_parseXml(self::URL); foreach ($contents as $content) { $texts[] = $content['code']; } if (empty($texts)) { trigger_error('ha.ckers.org FAILED - XML not available', E_WARNING); return array(); } if ($cache) { Cache::write('security_lib_texts', $texts); } } return $texts; } /** * parse xml * 2010-02-07 ms */ public function _parseXml($file) { $xml = Xml::build($file); $res = Xml::toArray($xml); if (!empty($res['xss']['attack'])) { return (array)$res['xss']['attack']; } return array(); } }