Project

General

Profile

« Previous | Next » 

Revision 2099

Added by darkviper over 10 years ago

  1. first fixes from rev.2098

View differences:

index.php
72 72
// ---------------------------------------
73 73
if(($admin->get_user_id()==1) && file_exists(WB_PATH.'/upgrade-script.php')) {
74 74
	// check if it is neccessary to start the uograde-script
75
	$sql = 'SELECT `value` FROM `'.$oDb-TablePrefix.'settings` WHERE `name`=\'wb_revision\'';
75
	$sql = 'SELECT `value` FROM `'.$oDb->TablePrefix.'settings` WHERE `name`=\'wb_revision\'';
76 76
	$wb_revision = $oDb->getOne($sql);
77 77
	if (version_compare($wb_revision, REVISION ) < 0) {
78 78
echo "<p style=\"text-align:center;\"> If the <strong>upgrade script</strong> could not be start automatically.\n" .
......
133 133
/**
134 134
 * delete Outdated Confirmations
135 135
 */
136
$sql = 'DELETE FROM `'.$oDb-TablePrefix.'users` WHERE `confirm_timeout` BETWEEN 1 AND '.time();
136
$sql = 'DELETE FROM `'.$oDb->TablePrefix.'users` WHERE `confirm_timeout` BETWEEN 1 AND '.time();
137 137
$oDb->doQuery($sql);
138 138

  
139 139
/**
140 140
 * delete stored ip adresses default after 60 days
141 141
 */
142
$sql = 'UPDATE `'.$oDb-TablePrefix.'users` SET `login_ip` = \'\' WHERE `login_when` < '.(time()-(60*84600));
142
$sql = 'UPDATE `'.$oDb->TablePrefix.'users` SET `login_ip` = \'\' WHERE `login_when` < '.(time()-(60*84600));
143 143
$oDb->doQuery($sql);
144 144

  
145 145
// ---------------------------------------

Also available in: Unified diff