예제 #1
0
 public function HTML($tmp)
 {
     try {
         if (bot::$count == 0) {
             bot::$count = 1;
             bot::$table = str_replace(".", "_", $this->domain);
             bot::$maindomain = $this->domain;
         }
         foreach ($tmp as $tag) {
             foreach ($this->dom->getElementsByTagName($tag) as $node) {
                 foreach ($node->attributes as $attrName => $attrNode) {
                     $this->node[trim($node->nodeName)][trim($attrName)][trim($attrNode->nodeValue)] = "";
                     if ($attrName == 'href' || $attrName == 'src') {
                         /*$this->VERIFYURL($attrNode->nodeValue);*/
                     }
                 }
             }
         }
     } catch (Exception $e) {
         echo $e->getMesage();
     }
 }