Project

General

Profile

« Previous | Next » 

Revision 1789

Added by Dietmar about 12 years ago

! update Group Permission, add module_advanced
! upgrade-script will be updating Adminitrator Group

View differences:

index.php
49 49
if($admin->get_permission('modules') != true) {	$template->set_var('DISPLAY_MODULES', $display_none); }
50 50
if($admin->get_permission('templates') != true) { $template->set_var('DISPLAY_TEMPLATES', $display_none); }
51 51
if($admin->get_permission('languages') != true) { $template->set_var('DISPLAY_LANGUAGES', $display_none); }
52
if($admin->get_permission('admintools') != true) { $template->set_var('DISPLAY_ADVANCED', $display_none); }
52
if($admin->get_permission('modules_advanced') != true) { $template->set_var('DISPLAY_ADVANCED', $display_none); }
53 53

  
54
if(!isset($_GET['advanced']) || $admin->get_permission('admintools') != true) {
54
if(!isset($_GET['advanced']) || $admin->get_permission('modules_advanced') != true) {
55 55
	$template->set_var('DISPLAY_RELOAD', $display_none);
56 56
}
57 57
/**
......
59 59
 */
60 60
$template->set_var(array(
61 61
	'ADDONS_OVERVIEW' => $MENU['ADDONS'],
62
	'FTAN'=> $admin->getFTAN(),
62 63
	'MODULES' => $MENU['MODULES'],
63 64
	'TEMPLATES' => $MENU['TEMPLATES'],
64 65
	'LANGUAGES' => $MENU['LANGUAGES'],
......
66 67
	'TEMPLATES_OVERVIEW' => $OVERVIEW['TEMPLATES'],
67 68
	'LANGUAGES_OVERVIEW' => $OVERVIEW['LANGUAGES'],
68 69
	'TXT_ADMIN_SETTINGS' => $TEXT['ADMIN'] . ' ' . $TEXT['SETTINGS'],
69
	'MESSAGE_RELOAD_ADDONS' => $MESSAGE['ADDON']['RELOAD'],
70
	'MESSAGE_RELOAD_ADDONS' => $MESSAGE['ADDON_RELOAD'],
70 71
	'TEXT_RELOAD' => $TEXT['RELOAD'],
72

  
71 73
	'RELOAD_URL' => ADMIN_URL . '/addons/reload.php',
72
	'URL_ADVANCED' => $admin->get_permission('admintools')
74
	'URL_ADVANCED' => $admin->get_permission('modules_advanced')
73 75
                ? '<a href="' . ADMIN_URL . '/addons/index.php?advanced">' . $TEXT['ADVANCED'] . '</a>' : '',
74
	'ADVANCED_URL' => $admin->get_permission('admintools') ? ADMIN_URL . '/addons/index.php' : '',
76
	'ADVANCED_URL' => $admin->get_permission('modules_advanced') ? ADMIN_URL . '/addons/index.php' : '',
75 77
    'TEXT_ADVANCED' => $TEXT['ADVANCED'],
76
	'FTAN'			=> $admin->getFTAN()
78
    'TEXT_EMPTY' => '&nbsp;',
77 79
	)
78 80
);
79 81

  
......
84 86
if ( $admin->get_permission('templates') == true) { $template->parse('main_block', "templates_block", true); }
85 87
if ( $admin->get_permission('languages') == true) { $template->parse('main_block', "languages_block", true); }
86 88
// start advanced block
87
if ( isset($_GET['advanced']) AND $admin->get_permission('admintools') == true) {
89
if ( isset($_GET['advanced']) AND $admin->get_permission('modules_advanced') == true) {
88 90
	$template->set_var(array(
89 91
		'TXT_THEME_COPY_CURRENT'  => $TEXT['THEME_COPY_CURRENT'],
90 92
		'TXT_THEME_NEW_NAME'      => $TEXT['THEME_NEW_NAME'],

Also available in: Unified diff