Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Check see if they have done all prev steps
- $config = "../config.php";
- if(!file_exists($config)) {
- echo "Please make sure you have done all previous steps.";
- }
- include ("../config.php");
- // Creating admin account
- $username = $_POST['username'];
- $password1 = $_POST['password1'];
- $password2 = $_POST['password2'];
- $email = $_POST['email'];
- if ($username == "" | $password1 == "" | $email == "") {
- echo("Looks like a feild was left blank, please go back and check.");
- } elseif ($password1 != $password2) {
- echo ("The passwords you entered do not match, please go back and check.");
- } else {
- $date = date('Y-m-d');
- mysql_query("INSERT INTO ".$prefix."users (username, password, email, date) VALUES ('$username', '$password1','$email','$date')");
- }
- echo "
- <html>
- <head>
- <title>GuBook Installation Panel - Beta 1.0</title>
- <link rel=\"stylesheet\" href=\"./style.css\">
- </head>
- <body>
- You have successfully installed GuBook! Thanks for using us.
- </body>
- </html>
- ";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement