Revision 934
Added by doc almost 16 years ago
index.php | ||
---|---|---|
49 | 49 |
if($admin->get_permission('languages') != true) { |
50 | 50 |
$template->set_var('DISPLAY_LANGUAGES', 'none'); |
51 | 51 |
} |
52 |
if($admin->get_permission('admintools') != true) { |
|
52 |
if(!isset($_GET['advanced']) || $admin->get_permission('admintools') != true) {
|
|
53 | 53 |
$template->set_var('DISPLAY_RELOAD', 'none'); |
54 | 54 |
} |
55 | 55 |
|
56 | 56 |
// Insert section names and descriptions |
57 | 57 |
$template->set_var(array( |
58 |
'MODULES' => $MENU['MODULES'], |
|
59 |
'TEMPLATES' => $MENU['TEMPLATES'], |
|
60 |
'LANGUAGES' => $MENU['LANGUAGES'], |
|
61 |
'MODULES_OVERVIEW' => $OVERVIEW['MODULES'], |
|
62 |
'TEMPLATES_OVERVIEW' => $OVERVIEW['TEMPLATES'], |
|
63 |
'LANGUAGES_OVERVIEW' => $OVERVIEW['LANGUAGES'], |
|
64 |
'TXT_ADMIN_SETTINGS' => $TEXT['ADMIN'] . ' ' . $TEXT['SETTINGS'], |
|
65 |
'MESSAGE_RELOAD_ADDONS' => $MESSAGE['ADDON']['RELOAD'], |
|
66 |
'TEXT_RELOAD' => $TEXT['RELOAD'], |
|
67 |
'RELOAD_URL' => ADMIN_URL . '/addons/reload.php', |
|
68 |
) |
|
69 |
); |
|
58 |
'MODULES' => $MENU['MODULES'], |
|
59 |
'TEMPLATES' => $MENU['TEMPLATES'], |
|
60 |
'LANGUAGES' => $MENU['LANGUAGES'], |
|
61 |
'MODULES_OVERVIEW' => $OVERVIEW['MODULES'], |
|
62 |
'TEMPLATES_OVERVIEW' => $OVERVIEW['TEMPLATES'], |
|
63 |
'LANGUAGES_OVERVIEW' => $OVERVIEW['LANGUAGES'], |
|
64 |
'TXT_ADMIN_SETTINGS' => $TEXT['ADMIN'] . ' ' . $TEXT['SETTINGS'], |
|
65 |
'MESSAGE_RELOAD_ADDONS' => $MESSAGE['ADDON']['RELOAD'], |
|
66 |
'TEXT_RELOAD' => $TEXT['RELOAD'], |
|
67 |
'RELOAD_URL' => ADMIN_URL . '/addons/reload.php', |
|
68 |
'URL_ADVANCED' => $admin->get_permission('admintools') ? |
|
69 |
'<a href="' . ADMIN_URL . '/addons/index.php?advanced">' . $TEXT['ADVANCED'] . '</a>' : '' |
|
70 |
) |
|
71 |
); |
|
70 | 72 |
|
71 | 73 |
// Parse template object |
72 | 74 |
$template->parse('main', 'main_block', false); |
Also available in: Unified diff
Added option to invoke module install.php from backend (for modules uploaded via FTP)