andripzf

Open File

Jun 22nd, 2014
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. if($_POST["buka"] == "Buka") {
  3. $file = $_POST["file"];
  4. if(file_exists($file)) {
  5. $filex = htmlentities(file_get_contents($file));
  6.  }
  7. if(!$filex) {
  8. $filex = "Error Cuk :P";
  9. }  
  10. }
  11. ?>
  12. <!-- SCRIPT KIDDIES -->
  13. <form method="POST">
  14. <textarea cols="50" rows="20"><? echo $filex; ?></textarea><br>
  15. <nobr>File : <input name="file" type="text" value="ids.txt" size="40"> <input type="submit" name="buka" value="Buka"></nobr>
  16. </form>
Advertisement
Add Comment
Please, Sign In to add comment