Khalequzzaman

PHP Secure Code Viewer

Dec 4th, 2015
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?phpecho '<title>Source code viewer</title>';if (isset($_GET['url'])&amp;&amp; substr($_GET['url'], 0, 7) == 'http://') {$source = file_get_contents($_GET['url']);echo '<div>Source code</div><textarea style="width:1000px;height:500px">' . htmlspecialchars($source) . '</textarea><hr />';}echo '<form action="' .$_SERVER['PHP SELF'] . '" method="get"><div>Source URL:</div></form>';?>
Advertisement
Add Comment
Please, Sign In to add comment