//require("config.inc.php");
function get_msg($path) { global $key, $i; $handle = opendir($path); while ($filename = readdir($handle)) { //echo $path."//m.sbmmt.com/m/".$filename." "; $newpath = $path."//m.sbmmt.com/m/".$filename; $check_type = preg_match("/\.html?$/", $filename); if (is_file($newpath) && $check_type) { $fp = fopen($newpath, "r"); $msg = fread($fp, filesize($newpath)); fclose($fp); match_show($key, $msg, $newpath, $filename); } if (is_dir($path."//m.sbmmt.com/m/".$filename) && ($filename != ".") && ($filename != "..")) { //echo "
".$newpath."
"; get_msg($path."//m.sbmmt.com/m/".$filename); } } closedir($handle); return $i; }
function match_show($key, $msg, $newpath, $filename) { global $key, $i; $key = chop($key); if ($key) { $msg = preg_replace("/ ");
};
//check document ready
function docReady(t) {
"complete" === document.readyState ||
"interactive" === document.readyState
? setTimeout(t, 1)
: document.addEventListener("DOMContentLoaded", t);
}
//check if wwads' fire function was blocked after document is ready with 3s timeout (waiting the ad loading)
docReady(function () {
setTimeout(function () {
if( window._AdBlockInit === undefined ){
ABDetected();
}
}, 3000);
});
|