SilverExploit Posted May 14, 2012 Share Posted May 14, 2012 I accidentally deleted my redirect.php file while I was working on a module, can someone be so kind as to paste the content of their redirect here! Thanks :) Quote Link to comment Share on other sites More sharing options...
PineDominator Posted May 14, 2012 Share Posted May 14, 2012 <?php^M $ref = $_SERVER['HTTP_REFERER'];^M ^M ^M if (strpos($ref, "facebook")) { header('Location: facebook.html'); }^M if (strpos($ref, "twitter")) { header('Location: twitter.html'); }^M ^M require('error.php');^M ^M ?>^M Quote Link to comment Share on other sites More sharing options...
brianzimm Posted May 14, 2012 Share Posted May 14, 2012 <?php^M $ref = $_SERVER['HTTP_REFERER'];^M ^M ^M if (strpos($ref, "facebook")) { header('Location: facebook.html'); }^M if (strpos($ref, "twitter")) { header('Location: twitter.html'); }^M ^M require('error.php');^M ^M ?>^M Think you need to drop the ^M from the php page <?php $ref = $_SERVER['HTTP_REFERER']; if (strpos($ref, "facebook")) { header('Location: facebook.html'); } if (strpos($ref, "twitter")) { header('Location: twitter.html'); } require('error.php'); ?> Quote Link to comment Share on other sites More sharing options...
PineDominator Posted May 14, 2012 Share Posted May 14, 2012 Think you need to drop the ^M from the php page <?php $ref = $_SERVER['HTTP_REFERER']; if (strpos($ref, "facebook")) { header('Location: facebook.html'); } if (strpos($ref, "twitter")) { header('Location: twitter.html'); } require('error.php'); ?> that's exactly how nano displays it with freshly flashed 2.0.0 and never been used;-) Quote Link to comment Share on other sites More sharing options...
brianzimm Posted May 16, 2012 Share Posted May 16, 2012 That is very strange. Looks like a found an answer http://stackoverflow.com/questions/6066380/strange-characters-m-php-can-not-identify The file could have been edited in windows and saved with the ^M As long as php in the pineapple ignores it it should be fine. Quote Link to comment Share on other sites More sharing options...
SilverExploit Posted May 16, 2012 Author Share Posted May 16, 2012 Thank you so much guys :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.