Revision 928
Added by doc almost 16 years ago
index.php | ||
---|---|---|
54 | 54 |
if($admin->get_permission('templates_view') != true) { |
55 | 55 |
$template->set_var('DISPLAY_LIST', 'hide'); |
56 | 56 |
} |
57 |
if($admin->get_permission('admintools') != true) { |
|
58 |
$template->set_var('DISPLAY_RELOAD', 'hide'); |
|
59 |
} |
|
57 | 60 |
|
58 | 61 |
// Insert language headings |
59 | 62 |
$template->set_var(array( |
... | ... | |
64 | 67 |
); |
65 | 68 |
// Insert language text and messages |
66 | 69 |
$template->set_var(array( |
67 |
'TEXT_INSTALL' => $TEXT['INSTALL'], |
|
68 |
'TEXT_UNINSTALL' => $TEXT['UNINSTALL'], |
|
69 |
'TEXT_VIEW_DETAILS' => $TEXT['VIEW_DETAILS'], |
|
70 |
'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'], |
|
71 |
'CHANGE_TEMPLATE_NOTICE' => $MESSAGE['TEMPLATES']['CHANGE_TEMPLATE_NOTICE'] |
|
72 |
) |
|
73 |
); |
|
70 |
'URL_MODULES' => $admin->get_permission('modules') ? |
|
71 |
'<a href="' . ADMIN_URL . '/modules/index.php">' . $MENU['MODULES'] . '</a>' : '', |
|
72 |
'URL_LANGUAGES' => $admin->get_permission('languages') ? |
|
73 |
'<a href="' . ADMIN_URL . '/languages/index.php">' . $MENU['LANGUAGES'] . '</a>' : '', |
|
74 |
'TEXT_INSTALL' => $TEXT['INSTALL'], |
|
75 |
'TEXT_UNINSTALL' => $TEXT['UNINSTALL'], |
|
76 |
'TEXT_VIEW_DETAILS' => $TEXT['VIEW_DETAILS'], |
|
77 |
'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'], |
|
78 |
'CHANGE_TEMPLATE_NOTICE' => $MESSAGE['TEMPLATES']['CHANGE_TEMPLATE_NOTICE'], |
|
79 |
'TXT_ADMIN_SETTINGS' => $TEXT['ADMIN'] . '-' . $TEXT['SETTINGS'], |
|
80 |
'TEXT_RELOAD_ADDON' => $MESSAGE['ADDON']['RELOAD'], |
|
81 |
'TEXT_RELOAD' => $TEXT['RELOAD'] |
|
82 |
) |
|
83 |
); |
|
74 | 84 |
|
75 | 85 |
// Parse template object |
76 | 86 |
$template->parse('main', 'main_block', false); |
Also available in: Unified diff
Added reload option to Add-on section and removed Admin tool reload