PHP Code:
$id = $_GET["id"];
if(isset($id)) $id = "?id=$id"; $cat = $_GET["cat"];
if(isset($cat)) $cat = "?cat=$cat"; $search = $_GET["search"];
if(isset($search)) $search = "?search=$search"; $page = file_get_contents("http://hot.wap4mob.com/$id$cat$search"); $look = array(); $look[0] = 'hot.wap4mob.com'; $look[1] = 'Hot.wap4mob.com'; $look[2] = 'Hot.wap4mob.Com'; $look[3] = 'Hot.Wap4Mob.Com'; $look[4] = 'wap4mob.com'; $look[5] = 'Wap4Mob.Com'; $look[6] = 'wap4mob'; $page = str_replace($look,$_SERVER['SERVER_NAME'],$page);
$look[0] = '/; $look[1] = '/<\/a>/'; $look[2] = '/<\/a>/'; $look[3] = '/<\/a>/'; $look[4] = '/<\/a>/'; $look[5] = '/<\/a>/'; $look[6] = '/<\/a>/'; $page = preg_replace($look,'',$page);
echo $page; ?>
No comments:
Post a Comment