[geeklog-cvs] geeklog-1.3/public_html users.php,1.59,1.60
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Mon May 5 17:11:08 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv9426/public_html
Modified Files:
users.php
Log Message:
Added a speed limit to the new password request feature.
Index: users.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/users.php,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** users.php 5 May 2003 09:45:44 -0000 1.59
--- users.php 5 May 2003 21:11:06 -0000 1.60
***************
*** 383,386 ****
--- 383,387 ----
$retval .= COM_refresh ($_CONF['site_url'] . '/index.php');
}
+ COM_updateSpeedlimit ('password');
} else {
$retval .= COM_siteHeader ('menu')
***************
*** 747,753 ****
break;
case 'getpassword':
! $display .= COM_siteHeader('menu');
! $display .= getpasswordform();
! $display .= COM_siteFooter();
break;
case 'newpwd':
--- 748,765 ----
break;
case 'getpassword':
! $display .= COM_siteHeader ('menu');
! if ($_CONF['passwordspeedlimit'] == 0) {
! $_CONF['passwordspeedlimit'] = 300; // 5 minutes
! }
! COM_clearSpeedlimit ($_CONF['passwordspeedlimit'], 'password');
! $last = COM_checkSpeedlimit ('password');
! if ($last > 0) {
! $display .= COM_startBlock ($LANG12[26])
! . sprintf ($LANG04[93], $last, $_CONF['passwordspeedlimit'])
! . COM_endBlock ();
! } else {
! $display .= getpasswordform ();
! }
! $display .= COM_siteFooter ();
break;
case 'newpwd':
***************
*** 803,807 ****
break;
case 'emailpasswd':
! $display .= requestpassword ($HTTP_POST_VARS['username'], 1);
break;
case 'new':
--- 815,832 ----
break;
case 'emailpasswd':
! if ($_CONF['passwordspeedlimit'] == 0) {
! $_CONF['passwordspeedlimit'] = 300; // 5 minutes
! }
! COM_clearSpeedlimit ($_CONF['passwordspeedlimit'], 'password');
! $last = COM_checkSpeedlimit ('password');
! if ($last > 0) {
! $display .= COM_siteHeader ('menu')
! . COM_startBlock ($LANG12[26])
! . sprintf ($LANG04[93], $last, $_CONF['passwordspeedlimit'])
! . COM_endBlock ()
! . COM_siteFooter ();
! } else {
! $display .= requestpassword ($HTTP_POST_VARS['username'], 1);
! }
break;
case 'new':
More information about the geeklog-cvs
mailing list