From 2cb1563f63386b35a69e460051aa9b4a2851d104 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Wed, 30 May 2012 07:30:44 -0400 Subject: [PATCH] - Added (clickable) placeholders to client messaging function. - Added check so that the client password isn't inserted into the message (for security reasons). --- interface/web/designer/module_list.php | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/interface/web/designer/module_list.php b/interface/web/designer/module_list.php index f18f9f7..92aa4f0 100644 --- a/interface/web/designer/module_list.php +++ b/interface/web/designer/module_list.php @@ -30,11 +30,8 @@ require_once('../../lib/config.inc.php'); require_once('../../lib/app.inc.php'); -//* Check permissions for the module -if(!stristr($_SESSION['s']['user']['modules'],$_SESSION['s']['module']['name'])) { - header('Location: ../index.php'); - exit; -} +//* Check permissions for module +$app->auth->check_module_permissions('designer'); $app->uses('tpl'); @@ -50,10 +47,9 @@ if(@is_dir(ISPC_WEB_PATH."/$file")) { if(is_file(ISPC_WEB_PATH."/$file/lib/module.conf.php") and $file != 'login') { include_once(ISPC_WEB_PATH."/$file/lib/module.conf.php"); - $bgcolor = ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF'; $modules_list[] = array( 'module' => $module['name'], 'title' => $module['title'], - 'bgcolor' => $bgcolor + 'bgcolor' => ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF' ); } } @@ -62,13 +58,12 @@ $app->tpl->setLoop('records', $modules_list); -// loading language file +//* loading language file $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_module_list.lng'; include($lng_file); $app->tpl->setVar($wb); $app->tpl_defaults(); $app->tpl->pparse(); - ?> \ No newline at end of file -- Gitblit v1.9.1