Advertisement
Guest User

Untitled

a guest
May 5th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. $file = 'data/ip.txt';
  3. // Open the file to get existing content
  4. print file_get_contents($file);
  5. if(isset($_GET["local"])) $current = htmlspecialchars($_GET['local']);
  6. if(isset($_GET["local"])) $current .= "\n";
  7. if(isset($_GET["global"])) $current .= htmlspecialchars($_GET['global']);
  8. if(isset($_GET["global"])) $current .= "\n";
  9. if(isset($_GET["global"])) file_put_contents($file, $current);
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement