Revision 1984
Added by Dietmar about 11 years ago
index.php | ||
---|---|---|
28 | 28 |
// $database = WbDatabase::getInstance(); |
29 | 29 |
|
30 | 30 |
if(defined('FINALIZE_SETUP')) { |
31 |
require_once(WB_PATH.'/framework/functions.php');
|
|
31 |
require_once(WB_PATH.'/framework/functions.php');
|
|
32 | 32 |
$dirs = array( 'modules' => WB_PATH.'/modules/', |
33 | 33 |
'templates' => WB_PATH.'/templates/', |
34 | 34 |
'languages' => WB_PATH.'/languages/' |
... | ... | |
63 | 63 |
|
64 | 64 |
$msg = ''; |
65 | 65 |
$msg .= (is_readable(WB_PATH.'/install/')) ? $MESSAGE['START_INSTALL_DIR_EXISTS'].'<br />' : $msg; |
66 |
$msg .= (is_readable(WB_PATH.'/upgrade-script.php')) ? $MESSAGE['START_UPGRADE_SCRIPT_EXISTS'].'<br />' : ''; |
|
66 |
$aReplace =array( |
|
67 |
'file' => '<a style="font-weight:bold;" href="'.WB_URL.'/upgrade-script.php">upgrade-script.php</a>' |
|
68 |
); |
|
69 |
$msg .= (is_readable(WB_PATH.'/upgrade-script.php') ? replace_vars($MESSAGE['START_UPGRADE_SCRIPT_EXISTS'].'<br />',$aReplace) : ''); |
|
67 | 70 |
//$msg .= ''.$MESSAGE['START_UPGRADE_SCRIPT_EXISTS'].'<br />'; |
68 | 71 |
|
69 | 72 |
// --------------------------------------- |
... | ... | |
141 | 144 |
WbDatabase::getInstance()->query($sql); |
142 | 145 |
|
143 | 146 |
/** |
144 |
* delete Outdated Confirmations
|
|
147 |
* delete stored ip adresses default after 60 days
|
|
145 | 148 |
*/ |
146 | 149 |
$sql = 'UPDATE `'.TABLE_PREFIX.'users` SET `login_ip` = \'\' WHERE `login_when` < '.(time()-(60*84600)); |
147 | 150 |
WbDatabase::getInstance()->query($sql); |
Also available in: Unified diff
! /languages/ all language files, add new translation $MESSAGE['START_UPGRADE_SCRIPT_EXISTS']
! /admin/start/index.php for system administrator only: add start link to 'MESSAGE_START_UPGRADE_SCRIPT_EXISTS'