Revision 1562
Added by Luisehahne about 13 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
=========================== add small Features 2.8.2 ========================== |
14 |
05 Jan-2012 Build 1562 Dietmar Woellbrink (Luisehahne) |
|
15 |
! only superadmin can start the upgrade-script from backend |
|
14 | 16 |
05 Jan-2012 Build 1561 Dietmar Woellbrink (Luisehahne) |
15 | 17 |
# secureForm Fix for hosting with load balancing |
16 | 18 |
04 Jan-2012 Build 1560 Dietmar Woellbrink (Luisehahne) |
branches/2.8.x/wb/admin/start/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') ) { |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
54 | 54 |
if(!defined('VERSION')) define('VERSION', '2.8.2'); |
55 |
if(!defined('REVISION')) define('REVISION', '1561');
|
|
55 |
if(!defined('REVISION')) define('REVISION', '1562');
|
|
56 | 56 |
if(!defined('SP')) define('SP', 'SP2'); |
Also available in: Unified diff
only superadmin can start the upgrade-script from backend