]> git.treefish.org Git - banana.git/blobdiff - register.php
...
[banana.git] / register.php
index 69b99feee12d83489f61b8ef0708fc04a63c97dd..0a844ac40794b21dfbeba39c0a2c93260df9abfd 100644 (file)
@@ -1,5 +1,5 @@
 <?php
 <?php
-require 'nav.inc';
+require 'include/head.inc';
 
 if(isset($_POST['submit']) && $_POST['firstname']!="" && $_POST['lastname']!="" 
                           && $_POST['mnumber']!="" && $_POST['email']!="" && $_POST['password']!="")
 
 if(isset($_POST['submit']) && $_POST['firstname']!="" && $_POST['lastname']!="" 
                           && $_POST['mnumber']!="" && $_POST['email']!="" && $_POST['password']!="")
@@ -10,7 +10,7 @@ if(isset($_POST['submit']) && $_POST['firstname']!="" && $_POST['lastname']!=""
   $email = $_POST['email'];
   $password = $_POST['password'];
 
   $email = $_POST['email'];
   $password = $_POST['password'];
 
-  require 'createdb.inc';
+  require 'include/db.inc';
 
   // user already exists //
   if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 1) {
 
   // user already exists //
   if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 1) {