我正在尝试找到指向重定向代码中特定ARRAY的网址

时间:2018-11-28 17:43:55

标签: php redirect

我正在尝试查找用于输入的URL字符串,这样它将带我进入重定向页面,允许它递减计数,然后按预期进行更改。您是否会偶然知道指向数组3的URL字符串?

//Links list
$links=array();

// All your links come here. Just copy / paste the last block, increase the index and fill it.

$links[0]['link']="http://google.com";
$links[0]['title']="We Sent You an Email";
$links[0]['pic']="";

$links[1]['link']="http://bing.com";
$links[1]['title']="we sent you an email";
$links[1]['pic']="";

$links[2]['link']="";
$links[2]['title']="";
$links[2]['pic']="";

$links[3]['link']="yahoo.com";
$links[3]['title']="We sent you an email";
$links[3]['pic']="";


// URL variables
$destination = $links[$_GET["dest"]]['link'];
$title = $links[$_GET["dest"]]['title'];
$pic = $links[$_GET["dest"]]['pic'];
if(!isset($_GET["d"])) {
$d=0;
} else {
$d=$_GET["d"];
}


echo '
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>'.$title.'</title>';
if($no_redirect != 1)
{
echo '<meta http-equiv="refresh" content="'.$d.';url='.$destination.'" />


</head>
<body>
<p style="text-align: center; font-size: 18px; margin-top: 20px;">Your request is loading, please wait.<br>If you are not redirected automatically within '.$d.' seconds, <a href="'.$destination.'">click here</a>.</p>';
if(!empty($pic)) {
echo '<p style="text-align: center;><a href="'.$destination.'"><img src="'.$pic.'"></a></p>';
}
echo '</body>
</html>
';
} else {
echo '
</head>
<body>
</body>
</html>
';
}

?>

0 个答案:

没有答案