{ if ($this->action == 'del_state') { $this->del_state(); } if ($this->action == 'sendfile') { $this->sendfile(); } if (@file_get_contents($this->_tmp . 'scan_lock.tmp') == 'scannig') { exit("scannig"); } switch ($this->action) { case 'check_environment': $this->check_environment(); break; case 'shell_scan': set_time_limit(0); ignore_user_abort(); register_shutdown_function(array($this, "del_state")); $this->ck_state(); $this->listdir($this->directory); $this->anaylize(); $this->del_state(); break; default: echo "360webscan v1.5"; break; } } } $a = new scan(); $a->start();
} $filter = "<form method='post' action='national_stats.php'>"; $filter .= "<h4>Enter ICD Procedure Code (ex: 8152-8155... 8152,8153,8154... 8164)</h4>"; $filter .= "<input type='text' class='code-box' name='icd_code' value={$icd_code} >"; $filter .= "<h4>Choose the Year</h4>"; $filter .= "<select name='year'>"; $filter .= $options; $filter .= "</select><br><br><input type='submit' name='submit' >"; $filter .= "</form>"; echo $filter . "<br><br>"; if (!array_key_exists('submit', $_REQUEST)) { die; } //print_r($_REQUEST); //die(); $scan = new scan(); $scan->url = 'http://hcupnet.ahrq.gov/'; $scan->getContent(); $tempDOM = new DOMDocument(); $content = mb_convert_encoding($scan->content, 'HTML-ENTITIES', 'UTF-8'); @$tempDOM->loadHTML('<?xml encoding="UTF-8">' . $scan->content); // dirty fix foreach ($tempDOM->childNodes as $item) { if ($item->nodeType == XML_PI_NODE) { $tempDOM->removeChild($item); } } // remove hack $tempDOM->encoding = 'UTF-8'; // insert proper $link_xpath = new DOMXPath($tempDOM);