mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
add debug menu in admin tools
This commit is contained in:
parent
d07219a213
commit
73562364b0
|
@ -929,6 +929,18 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$menuitems['misc']['children']['version_info'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Info.php", 'label'=>getMLText('version_info'));
|
||||
}
|
||||
|
||||
if ($settings->_enableDebugMode) {
|
||||
if($accessobject->check_view_access(array('Hooks', 'NotificationServices'))) {
|
||||
$menuitems['debug'] = array('link'=>"#", 'label'=>getMLText('debug'));
|
||||
if ($accessobject->check_view_access('Hooks'))
|
||||
$menuitems['debug']['children']['hooks'] = array('link'=>"../out/out.Hooks.php", 'label'=>getMLText('list_hooks'));
|
||||
if ($accessobject->check_view_access('NotificationServices'))
|
||||
$menuitems['debug']['children']['notification_services'] = array('link'=>"../out/out.NotificationServices.php", 'label'=>getMLText('list_notification_services'));
|
||||
if ($accessobject->check_view_access('ConversionServices'))
|
||||
$menuitems['debug']['children']['conversion_services'] = array('link'=>"../out/out.ConversionServices.php", 'label'=>getMLText('list_conversion_services'));
|
||||
}
|
||||
}
|
||||
|
||||
/* Do not use $this->callHook() because $menuitems must be returned by the the
|
||||
* first hook and passed to next hook. $this->callHook() will just pass
|
||||
* the menuitems to each single hook. Hence, the last hook will win.
|
||||
|
|
|
@ -917,6 +917,18 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$menuitems['misc']['children']['version_info'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Info.php", 'label'=>getMLText('version_info'));
|
||||
}
|
||||
|
||||
if ($settings->_enableDebugMode) {
|
||||
if($accessobject->check_view_access(array('Hooks', 'NotificationServices'))) {
|
||||
$menuitems['debug'] = array('link'=>"#", 'label'=>getMLText('debug'));
|
||||
if ($accessobject->check_view_access('Hooks'))
|
||||
$menuitems['debug']['children']['hooks'] = array('link'=>"../out/out.Hooks.php", 'label'=>getMLText('list_hooks'));
|
||||
if ($accessobject->check_view_access('NotificationServices'))
|
||||
$menuitems['debug']['children']['notification_services'] = array('link'=>"../out/out.NotificationServices.php", 'label'=>getMLText('list_notification_services'));
|
||||
if ($accessobject->check_view_access('ConversionServices'))
|
||||
$menuitems['debug']['children']['conversion_services'] = array('link'=>"../out/out.ConversionServices.php", 'label'=>getMLText('list_conversion_services'));
|
||||
}
|
||||
}
|
||||
|
||||
/* Do not use $this->callHook() because $menuitems must be returned by the the
|
||||
* first hook and passed to next hook. $this->callHook() will just pass
|
||||
* the menuitems to each single hook. Hence, the last hook will win.
|
||||
|
|
Loading…
Reference in New Issue
Block a user