From: Arjen Baart Date: Thu, 19 Jan 2012 14:47:51 +0000 (+0100) Subject: Added "Login Incorrect" message in login form. X-Git-Url: http://www.andromeda.nl/gitweb/?p=gnucomo.git;a=commitdiff_plain;h=e8faad27c4d9e24d22868e739841124cd424fa3c Added "Login Incorrect" message in login form. --- diff --git a/src/web/page.class.php b/src/web/page.class.php index e422608..48ea4b8 100644 --- a/src/web/page.class.php +++ b/src/web/page.class.php @@ -20,7 +20,7 @@ ******************************** ** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl ** CREATION DATE : Jan 22, 2003 -** LAST UPDATE : Feb 19, 2003 +** LAST UPDATE : Jan 19, 2012 ** MODIFICATIONS : **************************************************************************/ @@ -107,7 +107,10 @@ function login_form()   - + + + + @@ -133,7 +136,7 @@ class page $this->database = false; $this->path = $path; session_start(); - //set_error_handler("error"); + set_error_handler("error"); } function Head() @@ -192,6 +195,8 @@ class page function Showpage() { + global $last_error; + $this->config = new gnucomo_config; $this->config->read("gnucomo"); @@ -212,6 +217,7 @@ class page $this->database = pg_connect($this->config->Database($name, $passw)); if ($this->database == false) { + $last_error = "Login Incorrect"; login_form(); } else