Revision 1770
Added by Dietmar about 12 years ago
index.php | ||
---|---|---|
85 | 85 |
// workout to upgrade the groups system_permissions |
86 | 86 |
// --------------------------------------- |
87 | 87 |
if( ($admin->get_user_id()==1) && |
88 |
file_exists(ADMIN_PATH.'/groups/upgradePermissions.php') && |
|
89 |
!defined('GROUPS_UPDATED') ) |
|
88 |
file_exists(ADMIN_PATH.'/groups/upgradePermissions.php') && !defined('GROUPS_UPDATED') ) |
|
90 | 89 |
{ |
91 | 90 |
// check if it is neccessary to start the uograde-script |
92 | 91 |
$sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` WHERE `name`=\'wb_revision\''; |
... | ... | |
235 | 234 |
// Check if installation directory still exists |
236 | 235 |
if(file_exists(WB_PATH.'/install/') || file_exists(WB_PATH.'/upgrade-script.php') ) { |
237 | 236 |
// Check if user is part of Adminstrators group |
238 |
if(in_array(1, $admin->get_groups_id()))
|
|
237 |
if($admin->get_user_id()==1)
|
|
239 | 238 |
{ |
240 | 239 |
$oTpl->set_var('WARNING', $msg ); |
241 | 240 |
} else { |
Also available in: Unified diff
WbDatabase::getTableEngine() changed SQL statement to strikt.
! remove empty warning box if you aren't sysadmin
! change order errorhandling in installation save.php
! Framework/frontend.functions.php change file_exists to is_readable