projects
/
gnucomo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6b29367
)
Added "Login Incorrect" message in login form.
author
Arjen Baart
<arjen@andromeda.nl>
Thu, 19 Jan 2012 14:47:51 +0000
(15:47 +0100)
committer
Arjen Baart
<arjen@andromeda.nl>
Thu, 19 Jan 2012 14:47:51 +0000
(15:47 +0100)
src/web/page.class.php
patch
|
blob
|
history
diff --git
a/src/web/page.class.php
b/src/web/page.class.php
index
e422608
..
48ea4b8
100644
(file)
--- 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
********************************
** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
** CREATION DATE : Jan 22, 2003
-** LAST UPDATE :
Feb 19, 2003
+** LAST UPDATE :
Jan 19, 2012
** MODIFICATIONS :
**************************************************************************/
** MODIFICATIONS :
**************************************************************************/
@@
-107,7
+107,10
@@
function login_form()
</tr>
<tr>
<td class='form'> </td>
</tr>
<tr>
<td class='form'> </td>
- <td align="right" class='form'><input type="submit" value="signin"></td>
+ <td align="right" class='form'>
+ <input type="submit" value="signin">
+ <input type="reset" value="clear">
+ </td>
</tr>
</table>
</form>
</tr>
</table>
</form>
@@
-133,7
+136,7
@@
class page
$this->database = false;
$this->path = $path;
session_start();
$this->database = false;
$this->path = $path;
session_start();
-
//
set_error_handler("error");
+ set_error_handler("error");
}
function Head()
}
function Head()
@@
-192,6
+195,8
@@
class page
function Showpage()
{
function Showpage()
{
+ global $last_error;
+
$this->config = new gnucomo_config;
$this->config->read("gnucomo");
$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)
{
$this->database = pg_connect($this->config->Database($name, $passw));
if ($this->database == false)
{
+ $last_error = "Login Incorrect";
login_form();
}
else
login_form();
}
else