SHARE
TWEET

Untitled

a guest Mar 16th, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <form action="index.php" method="post" name="login">
  4. <script type="text/javascript">
  5. function delayer(){
  6.     window.location = "/projects/index.php"
  7. }
  8. </script>
  9.  
  10. </head>
  11. <?php
  12. $user = $_POST['Username'];
  13. $password = $_POST['Password'];
  14. $filename = "data.php";
  15. if (file_exists('data.php')) {
  16.     echo "Profile, more coming soon! This is basically a system where it makes a database for you.";
  17.     $db = sqlite_open('data.php');
  18.     if ($user == "");
  19.     {
  20.         header('Refresh: 4; url=index.php');
  21.         unlink($filename);
  22.         echo "You forgot to enter your username.";
  23.     }
  24.     if ($password = "");
  25.     {
  26.         header('Refresh: 4; url=index.php');
  27.         unlink($filename);
  28.         echo "You forgot to enter your password.";
  29.     }
  30.    
  31. sqlite_query($db,"INSERT INTO data (user, pass)VALUES('$user', '$password')");
  32.  
  33. }
  34. else
  35. {
  36.     ?>
  37.    
  38. <h2>Welcome to the oli project. </h2>
  39. <p>Your portable database will be generated within 3 seconds, you will be redirected.</p>
  40. <p>Please wait..<p>
  41. <label>Username</label><input name="Username" type="text" class="input" size="30" /><br />
  42. <label>Password</label><input name="Password" type="password" class="input" size="30" /><br />
  43. <label>&nbsp;</label><input name="Submit" type="submit" class="button" />
  44.     <?
  45.     $database = new SQLiteDatabase('data.php');
  46.     $sql = 'CREATE TABLE data (id INTEGER PRIMARY KEY, user TEXT, pass TEXT, key TEXT)';
  47.     $sql1 = 'CREATE TABLE admins (id INTEGER PRIMARY KEY, user TEXT)';
  48.     $database->queryExec($sql);
  49.     $database->queryExec($sql1);
  50. }
  51.  
  52.  
  53.  
  54.  
  55.  
  56. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top