Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file = 'data/ip.txt';
- // Open the file to get existing content
- print file_get_contents($file);
- if(isset($_GET["local"])) $current = htmlspecialchars($_GET['local']);
- if(isset($_GET["local"])) $current .= "\n";
- if(isset($_GET["global"])) $current .= htmlspecialchars($_GET['global']);
- if(isset($_GET["global"])) $current .= "\n";
- if(isset($_GET["global"])) file_put_contents($file, $current);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement