Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user = $_GET['user'];
- $pass = $_GET['pass'];
- $uid = $_GET['uid'];
- if(!isset($uid)){
- echo "Hello, welcome to INVIDE.<br>The invite project.<br>";
- echo "<form action=register.php method=get>";
- echo "Username: <input type=textbox name=user><br>";
- echo "Password: <input type=password name=pass><br>";
- echo "InviteID: <input type=textbox name=uid><br>";
- echo "<input type=submit value=Submit><br>";
- echo "</form>";
- } else {
- $file = fopen("serials.php", "r");
- $data = fread($file, filesize("serials.php"));
- $pieces = explode("\n", $data);
- if(in_array($uid, $pieces)){
- echo "Welcome to INVID!<br?";
- echo "You entered the correct code, and are now registered on INVIDE.<br>";
- echo "You have two invites:<br>";
- $ran1 = rand(0,999)."-".rand(0,999)."-".rand(0,999);
- $ran2 = rand(0,999)."-".rand(0,999)."-".rand(0,999);
- echo $ran1."<br>";
- echo $ran2;
- $serials = fopen("serials.php", "a");
- //fwrite($serials, $data);
- fwrite($serials, $ran1."\n");
- fwrite($serials, $ran2."\n");
- fclose($serials);
- }
- fclose($file);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement