Created
February 9, 2015 18:27
-
-
Save iGlitch/6f58203f1f7cca9103f1 to your computer and use it in GitHub Desktop.
Source Viewer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/* source view==PHP4 Only!== */ | |
/* ->source.php?target.php */ | |
if(phpversion()>"4.1.0") $QUERY_STRING = $_SERVER['QUERY_STRING']; | |
if($QUERY_STRING){ | |
if (file_exists($QUERY_STRING) && ereg("^[^\./]*(\.php3?|\.inc)$",$QUERY_STRING)) { | |
show_source($QUERY_STRING); | |
} else { | |
$now = gmdate("d(D) h:i a",time()+60*60*9); | |
$host = gethostbyaddr(getenv("REMOTE_ADDR")); | |
echo "<H1>ERROR: $host : $now</H1>"; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment