Forum Moderators: coopster
<?php
if (!isset($_GET['url']))
die('Invalid URL');
$newurl = trim(substr($_SERVER['QUERY_STRING'], 4));
if (strlen($newurl) < 1 || !preg_match('/^(ftp|http|news|https):\/\//i', $newurl))
die('Invalid URL');
$htmlurl = htmlentities($newurl);
?>
<html>
<head>
<meta http-equiv="refresh" content="0;url=<?php echo $htmlurl; ?>">
<style type="text/css"><!--
BODY {
background: #FFFFFF;
color: #000000;
}
.url {
text-decoration: underline;
color: #991111;
background: transparent;
}
.info {
text-align: center;
background: #bbbbFF;
color: #000000;
padding: 5pt 5pt 5pt 5pt;
border: 1px solid #000000;
}
--></style>
</head>
<body>
<table border="0" width="100%" height="100%">
<tr>
<td align="center" valign="middle">
<table class="info" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><b>Redirecting you to the following url</b><br /><span class="url"><?php echo $htmlurl; ?></span></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>