Revision 1562
Added by Dietmar almost 13 years ago
index.php | ||
---|---|---|
52 | 52 |
if($database->query($sql)) { } |
53 | 53 |
} |
54 | 54 |
// --------------------------------------- |
55 |
|
|
55 |
$msg = ''; |
|
56 | 56 |
// check if it is neccessary to start the uograde-script |
57 |
if(file_exists(WB_PATH.'/upgrade-script.php')) { |
|
57 |
if(($admin->get_user_id()==1) && file_exists(WB_PATH.'/upgrade-script.php')) {
|
|
58 | 58 |
// check if it is neccessary to start the uograde-script |
59 | 59 |
$sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` WHERE `name`=\'wb_revision\''; |
60 | 60 |
if($wb_revision=$database->get_one($sql)) { |
... | ... | |
68 | 68 |
"href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n"; |
69 | 69 |
exit; |
70 | 70 |
} |
71 |
} else { |
|
72 |
$msg .= (file_exists(WB_PATH.'/upgrade-script.php') ? '<br />'.$MESSAGE['START_UPGRADE_SCRIPT_EXISTS'] : ''); |
|
71 | 73 |
} |
72 | 74 |
} |
73 | 75 |
} |
... | ... | |
117 | 119 |
$template->set_var('DISPLAY_ADMINTOOLS', 'display:none;'); |
118 | 120 |
} |
119 | 121 |
|
120 |
$msg = (file_exists(WB_PATH.'/install/')) ? $MESSAGE['START']['INSTALL_DIR_EXISTS'] : ''; |
|
121 |
$msg .= (file_exists(WB_PATH.'/upgrade-script.php') ? '<br />'.$MESSAGE['START_UPGRADE_SCRIPT_EXISTS'] : ''); |
|
122 |
$msg .= (file_exists(WB_PATH.'/install/')) ? $MESSAGE['START']['INSTALL_DIR_EXISTS'] : ''; |
|
122 | 123 |
|
123 | 124 |
// Check if installation directory still exists |
124 | 125 |
if(file_exists(WB_PATH.'/install/') || file_exists(WB_PATH.'/upgrade-script.php') ) { |
Also available in: Unified diff
only superadmin can start the upgrade-script from backend