Právě prohlížíš: readfile.php
Zpět do složkyStáhnout
  1. <?php
  2. header("Content-Type: text/plain; charset=utf-8");
  3. if(empty($_GET["file"])) {
  4. die("Nothing to print...");
  5. }
  6.  
  7.  
  8. $file = "cache/".str_replace("..", "", $_GET["file"]);
  9. if(empty($file)||!file_exists($file)) {
  10. die("Nothing to print...");
  11. }
  12. readfile($file);
  13. die();
  14. ?>
Parsed using GeSHi 1.0.8.11 at 0.043