Project

General

Profile

« Previous | Next » 

Revision 1809

Added by Dietmar almost 12 years ago

! remove login_ip after 60days set in /admin/start/index.php
! add confirm_code and confirm_timeout fields in users table in /install/save.php

View differences:

index.php
131 131
$sql = 'DELETE FROM `'.TABLE_PREFIX.'users` WHERE `confirm_timeout` BETWEEN 1 AND '.time();
132 132
WbDatabase::getInstance()->query($sql);
133 133

  
134
/**
135
 * delete Outdated Confirmations
136
 */
137
$sql = 'UPDATE `'.TABLE_PREFIX.'users` SET `login_ip` = \'\' WHERE `login_when` < '.(time()-(60*84600));
138
WbDatabase::getInstance()->query($sql);
139

  
134 140
// ---------------------------------------
135 141
// Setup template object, parse vars to it, then parse it
136 142
// Create new template object

Also available in: Unified diff