This is the code php file:
<!DOCTYPE html>
<html>
<head>
<title>goURL, carried by UFQI</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<?php
if(array_key_exists("act", $_REQUEST) && $_REQUEST['act'] == 'go'){
$gurl = $_REQUEST['gurl'];
if(preg_match("/.*&url=([^&]*).*/", $gurl, $matcharr)){
print_r($matcharr);
header("Location: ".urldecode($matcharr[1]));
}
}
?>
<h2>Google Results Redirect Assistant</h2>
<hr/>
<br/>
<form name="gurl" action="?act=go" method="post" target="_blank">
goURL:<br/>
<textarea name="gurl" cols="100", rows="10" onclick="javascript:this.select();"></textarea>
<br/>
Copy and Paste Google Search Result Links Here and Click Submit.
<br/>
<br/><input type="submit" />
</form>
<br/>
<br/>
<a href="./index.php?act=source">本页php源码,请下载散发</a>
<?php
if(array_key_exists("act", $_REQUEST) && $_REQUEST['act'] == 'source'){
echo '<p> <a href="',$_SERVER['PHP_SELF'],'"> Back </a> </p>';
echo '<p> This is the code php file: </p>';
$page = highlight_file ($_SERVER[ 'SCRIPT_FILENAME'], TRUE);
$page = str_replace (
array ( '<code>', '</code>', '','</pre>','<font color ="'),
array ( '<pre style="padding:1em;border:2px solid black;overflow:scroll">', '</pre>', '',
'</span >','< span style = "color:' ), $page);
echo $page."</pre>";
echo '<p> <a href="',$_SERVER['PHP_SELF'],'"> Back </a> </p>';
#exit;
}
?>
<br/>
<hr/>
Created by [email protected], Mon Aug 6 14:22:08 CST 2012
</body>
</html>