Advertisement
Guest User

Browse HTTPS from a System 7 browser like netscape

a guest
Jan 15th, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 KB | None | 0 0
  1. //browse https websites in an old System 7 browser
  2. <html>
  3.     <body>
  4.         <br>
  5.         <br>
  6.         <center>
  7.                 <form method="post" action="">
  8.                 <input type="text" name="murl">
  9.                 <input type="submit" value="GO">
  10.                 </form>
  11.         </center>
  12.      </body>
  13. </html>
  14.  
  15. <?php
  16. $setVar = 0;
  17. function download_website()
  18. {
  19.         $url = ''.$_POST["murl"];
  20.         $outputfile = "dl.html";
  21.         shell_exec('rm -rf '.$outputfile.'');
  22.         $cmd = "wget \"$url\" -O $outputfile";
  23.         echo "<center>========= Your Website Loaded Here ==========</center>";
  24.         shell_exec($cmd);
  25.  
  26.         echo file_get_contents($outputfile);
  27.  
  28.         echo '<base href="'.$url.'" />' .file_get_contents($outputfile);
  29.         $url = '';
  30.         $outputfile  = '';
  31. }
  32.  
  33. if(isset($_POST['murl']))
  34. {
  35.         download_website( );
  36.         unset($_POST['murl']);
  37.         $_POST = array();
  38.  
  39. }
  40. else
  41. {
  42.  
  43. }
  44. ?>
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement