From 9100936bfe5c1aadd167f9179a2af01882c59c1d Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Wed, 04 Jun 2008 13:35:17 -0400 Subject: [PATCH] - Modified pages to use a global module aurhentification function - Changed shell of website linux user to /bin/false --- interface/web/mail/mail_forward_list.php | 53 +++++++++++++++++++++++++---------------------------- 1 files changed, 25 insertions(+), 28 deletions(-) diff --git a/interface/web/mail/mail_forward_list.php b/interface/web/mail/mail_forward_list.php index 77330c4..40c8244 100644 --- a/interface/web/mail/mail_forward_list.php +++ b/interface/web/mail/mail_forward_list.php @@ -1,29 +1,26 @@ -<?php -require_once('../../lib/config.inc.php'); -require_once('../../lib/app.inc.php'); - -/****************************************** -* Begin Form configuration -******************************************/ - -$list_def_file = "list/mail_forward.list.php"; - -/****************************************** -* End Form configuration -******************************************/ - -// Checking module permissions -if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) { - header("Location: ../index.php"); - exit; -} - -$app->uses('listform_actions'); - -// Limit the results to alias domains -$app->listform_actions->SQLExtWhere = "type = 'forward'"; - -$app->listform_actions->onLoad(); - - +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_forward.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +$app->listform_actions->SQLExtWhere = "type = 'forward'"; + +$app->listform_actions->onLoad(); + + ?> \ No newline at end of file -- Gitblit v1.9.1