From: Neil S. <sir...@us...> - 2003-06-18 10:27:10
|
CVSROOT : /cvsroot/publicdnsadmin Module : publicdnsadmin Commit time: 2003-06-18 10:27:08 UTC Modified files: gfx_code.php index.php login.php lib/config.php-dist Log message: Author: SiRVu|caN Log message: $LOGIN_GFXCHECK added, can now disabled the gfxcheck for login and optionally leave it enabled for signup. ---------------------- diff included ---------------------- Index: publicdnsadmin/gfx_code.php diff -u publicdnsadmin/gfx_code.php:1.1 publicdnsadmin/gfx_code.php:1.2 --- publicdnsadmin/gfx_code.php:1.1 Wed Jun 18 01:05:46 2003 +++ publicdnsadmin/gfx_code.php Wed Jun 18 03:26:58 2003 @@ -23,7 +23,7 @@ $SHOW_GFXUSRCHK = 1; } -if ($SHOW_GFXUSRCHK && $NEWUSERS_GFXCHECK) { +if ($SHOW_GFXUSRCHK && ($NEWUSERS_GFXCHECK || $LOGIN_GFXCHECK)) { $dbh = db_connect(); if (!extension_loaded("gd")) { die("GD Library not present !"); } $ENABLE_COOKIE_TABLE = 1; Index: publicdnsadmin/index.php diff -u publicdnsadmin/index.php:1.3 publicdnsadmin/index.php:1.4 --- publicdnsadmin/index.php:1.3 Wed Jun 18 03:20:24 2003 +++ publicdnsadmin/index.php Wed Jun 18 03:26:58 2003 @@ -92,7 +92,7 @@ <h3>Login</h3> <?php if ($_GET["error"] == 1) { - if ($NEWUSERS_GFXCHECK) { + if ($LOGIN_GFXCHECK) { echo "<p class=\"error\">Login failed: invalid username/password/gfx code</p>"; } else { echo "<p class=\"error\">Login failed: invalid username/password</p>"; @@ -112,7 +112,7 @@ <td><input type="password" name="password" size="25" maxlength="15" value=""></td> </tr> <? -if ($SHOW_GFXUSRCHK && $NEWUSERS_GFXCHECK) { +if ($SHOW_GFXUSRCHK && $LOGIN_GFXCHECK) { ?> <tr> <td><b>Security Check:</b></td> Index: publicdnsadmin/lib/config.php-dist diff -u publicdnsadmin/lib/config.php-dist:1.2 publicdnsadmin/lib/config.php-dist:1.3 --- publicdnsadmin/lib/config.php-dist:1.2 Wed Jun 18 01:05:47 2003 +++ publicdnsadmin/lib/config.php-dist Wed Jun 18 03:26:58 2003 @@ -7,7 +7,7 @@ Distributed under the GPL license, see LICENSE for more information - $Id: config.php-dist,v 1.2 2003/06/18 08:05:47 sirvulcan Exp $ + $Id: config.php-dist,v 1.3 2003/06/18 10:26:58 sirvulcan Exp $ */ /* @@ -48,6 +48,7 @@ /* Graphical code check options, You need libgd enabled in your PHP */ $NEWUSERS_GFXCHECK = 0; +$LOGIN_GFXCHECK = 0; $ALLOWED_EXT = ".ttf"; $DEFAULT_BG_COLOR = "#FFFFFF"; Index: publicdnsadmin/login.php diff -u publicdnsadmin/login.php:1.2 publicdnsadmin/login.php:1.3 --- publicdnsadmin/login.php:1.2 Wed Jun 18 03:20:24 2003 +++ publicdnsadmin/login.php Wed Jun 18 03:26:58 2003 @@ -27,7 +27,7 @@ $SHOW_GFXUSRCHK = 1; } -if ($SHOW_GFXUSRCHK && $NEWUSERS_GFXCHECK) { +if ($SHOW_GFXUSRCHK && $LOGIN_GFXCHECK) { $gfx_ok = 0; $gfx_ok = check_code($gfxcode_ts, $gfxcode_crc, $gfxcode_val); if ($gfx_ok != 0) { ----------------------- End of diff ----------------------- |