From e756e7e8a99d604ef85a9630c856bc0ffae2a3f0 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 10 Jan 2012 05:16:15 -0500
Subject: [PATCH] Fixed: FS#1967 - AWStats statistics not accessible when the website uses suphp.
---
interface/web/mail/mail_user_list.php | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/interface/web/mail/mail_user_list.php b/interface/web/mail/mail_user_list.php
index 7e728af..df69948 100644
--- a/interface/web/mail/mail_user_list.php
+++ b/interface/web/mail/mail_user_list.php
@@ -15,9 +15,36 @@
//* Check permissions for module
$app->auth->check_module_permissions('mail');
-$app->uses('listform_actions');
+$app->load('listform_actions');
-$app->listform_actions->onLoad();
+
+class list_action extends listform_actions {
+
+ function onShow() {
+ global $app,$conf;
+
+ $app->uses('getconf');
+ $global_config = $app->getconf->get_global_config('mail');
+
+ if($global_config['mailboxlist_webmail_link'] == 'y') {
+ $app->tpl->setVar('mailboxlist_webmail_link',1);
+ } else {
+ $app->tpl->setVar('mailboxlist_webmail_link',0);
+ }
+
+ if($global_config["enable_custom_login"] == "y") {
+ $app->tpl->setVar("enable_custom_login", 1);
+ } else {
+ $app->tpl->setVar("enable_custom_login", 0);
+ }
+
+ parent::onShow();
+ }
+
+}
+
+$list = new list_action;
+$list->onLoad();
?>
\ No newline at end of file
--
Gitblit v1.9.1