diff --git a/htdocs/lib/DBH.php b/htdocs/lib/DBH.php index 6852363..21bf7c6 100644 --- a/htdocs/lib/DBH.php +++ b/htdocs/lib/DBH.php @@ -14,7 +14,6 @@ class DBH function log($line) { - return; static $f = false; static $failed = false; @@ -50,7 +49,7 @@ class DBH $this->db_pass = $db_pass; $this->db_user = $db_user; $this->db_host = $db_host; - + $this->dbh = @mysql_pconnect($db_host, $db_user, $db_pass); if (!$this->dbh) { @@ -192,4 +191,4 @@ class DBH * vim600: sw=4 ts=4 fdm=marker * vim<600: sw=4 ts=4 */ -?> \ No newline at end of file +?> diff --git a/htdocs/lib/db_init.sql b/htdocs/lib/db_init.sql index c4ff02f..66082fe 100644 --- a/htdocs/lib/db_init.sql +++ b/htdocs/lib/db_init.sql @@ -1,3 +1,6 @@ +USE crashproc; + + -- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: singucrash diff --git a/htdocs/process_login.php b/htdocs/process_login.php index 17f3274..78e2c91 100644 --- a/htdocs/process_login.php +++ b/htdocs/process_login.php @@ -20,10 +20,6 @@ if (!$user) $user->email = $user_email; $user->is_admin = 0; $user->is_allowed = 0; - if ($user->email == "ek@krug.dk" || $user->email == "shyotl@gmail.com") - { - $user->is_allowed = 1; - } $user->login = $user_identity; if (!$user->save()) {