From 37b29231e47a0c4458dc1c15d98588f16f07e1e2 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Thu, 06 Aug 2015 03:18:44 -0400 Subject: [PATCH] - don't set password via remoting if field is empty --- interface/web/tools/lib/module.conf.php | 39 ++++++++++++++++++++------------------- 1 files changed, 20 insertions(+), 19 deletions(-) diff --git a/interface/web/tools/lib/module.conf.php b/interface/web/tools/lib/module.conf.php index c6b6aae..617ab0b 100644 --- a/interface/web/tools/lib/module.conf.php +++ b/interface/web/tools/lib/module.conf.php @@ -2,25 +2,26 @@ global $conf; -$module['name'] = 'tools'; -$module['title'] = 'top_menu_tools'; -$module['template'] = 'module.tpl.htm'; -$module['startpage'] = 'tools/index.php'; +$module['name'] = 'tools'; +$module['title'] = 'top_menu_tools'; +$module['template'] = 'module.tpl.htm'; +$module['startpage'] = 'tools/index.php'; $module['tab_width'] = '60'; +$module['order'] = '80'; //**** Change User password $items = array(); -$items[] = array( 'title' => 'Password and Language', - 'target' => 'content', - 'link' => 'tools/user_settings.php', - 'html_id' => 'user_settings'); +$items[] = array( 'title' => 'Password and Language', + 'target' => 'content', + 'link' => 'tools/user_settings.php', + 'html_id' => 'user_settings'); $module['nav'][] = array( 'title' => 'User Settings', - 'open' => 1, - 'items' => $items); + 'open' => 1, + 'items' => $items); unset($items); @@ -28,18 +29,18 @@ $items = array(); $items[] = array( 'title' => 'Interface', - 'target' => 'content', - 'link' => 'tools/interface_settings.php', - 'html_id' => 'interface_settings'); + 'target' => 'content', + 'link' => 'tools/interface_settings.php', + 'html_id' => 'interface_settings'); -include_once(ISPC_WEB_PATH.'/tools/lib/interface.d/tpl_' . $_SESSION['s']['user']['app_theme'] . '.menu.php'); - -$module['nav'][] = array( 'title' => 'Interface', - 'open' => 1, - 'items' => $items); +if(file_exists(ISPC_WEB_PATH.'/tools/lib/interface.d/tpl_' . $_SESSION['s']['user']['app_theme'] . '.menu.php')) include_once ISPC_WEB_PATH.'/tools/lib/interface.d/tpl_' . $_SESSION['s']['user']['app_theme'] . '.menu.php'; + +$module['nav'][] = array( 'title' => 'Interface', + 'open' => 1, + 'items' => $items); unset($items); -?> \ No newline at end of file +?> -- Gitblit v1.9.1