Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <?php
  2. // Check see if they have done all prev steps
  3.  
  4. $config = "../config.php";
  5.  
  6. if(!file_exists($config)) {
  7. echo "Please make sure you have done all previous steps.";
  8. }
  9.  
  10. include ("../config.php");
  11.  
  12. // Creating admin account
  13.  
  14. $username = $_POST['username'];
  15. $password1 = $_POST['password1'];
  16. $password2 = $_POST['password2'];
  17. $email = $_POST['email'];
  18.  
  19. if ($username == "" | $password1 == "" | $email == "") {
  20. echo("Looks like a feild was left blank, please go back and check.");
  21. } elseif ($password1 != $password2) {
  22. echo ("The passwords you entered do not match, please go back and check.");
  23. } else {
  24.  
  25. $date = date('Y-m-d');
  26. mysql_query("INSERT INTO ".$prefix."users (username, password, email, date) VALUES ('$username', '$password1','$email','$date')");
  27. }
  28. echo "
  29. <html>
  30. <head>
  31. <title>GuBook Installation Panel - Beta 1.0</title>
  32. <link rel=\"stylesheet\" href=\"./style.css\">
  33. </head>
  34.  
  35. <body>
  36. You have successfully installed GuBook! Thanks for using us.
  37. </body>
  38. </html>
  39. ";
  40.  
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement