From ef6969eba7756cd971aefb2cbeec4e897a794e92 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 18 Oct 2009 13:23:17 -0400
Subject: [PATCH] Added missing newline at the end of apache_ispconfig.conf.master
---
interface/lib/classes/remoting.inc.php | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php
index e39ae32..856af42 100644
--- a/interface/lib/classes/remoting.inc.php
+++ b/interface/lib/classes/remoting.inc.php
@@ -211,6 +211,52 @@
$affected_rows = $this->deleteQuery('../mail/form/mail_user.tform.php',$domain_id);
return $affected_rows;
}
+
+ //* Get mail user filter details
+ public function mail_user_filter_get($session_id, $primary_id)
+ {
+ global $app;
+
+ if(!$this->checkPerm($session_id, 'mail_user_filter_get')) {
+ $this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
+ return false;
+ }
+ $app->uses('remoting_lib');
+ $app->remoting_lib->loadFormDef('../mail/form/mail_user_filter.tform.php');
+ return $app->remoting_lib->getDataRecord($primary_id);
+ }
+
+ public function mail_user_filter_add($session_id, $client_id, $params)
+ {
+ if (!$this->checkPerm($session_id, 'mail_user_filter_add')){
+ $this->server->fault('permission_denied','You do not have the permissions to access this function.');
+ return false;
+ }
+ $affected_rows = $this->insertQuery('../mail/form/mail_user_filter.tform.php', $client_id, $params);
+ return $affected_rows;
+ }
+
+ public function mail_user_filter_update($session_id, $client_id, $primary_id, $params)
+ {
+ if (!$this->checkPerm($session_id, 'mail_user_filter_update'))
+ {
+ $this->server->fault('permission_denied','You do not have the permissions to access this function.');
+ return false;
+ }
+ $affected_rows = $this->updateQuery('../mail/form/mail_user_filter.tform.php', $client_id, $primary_id, $params);
+ return $affected_rows;
+ }
+
+ public function mail_user_filter_delete($session_id,$domain_id)
+ {
+ if (!$this->checkPerm($session_id, 'mail_user_filter_delete'))
+ {
+ $this->server->fault('permission_denied','You do not have the permissions to access this function.');
+ return false;
+ }
+ $affected_rows = $this->deleteQuery('../mail/form/mail_user_filter.tform.php',$domain_id);
+ return $affected_rows;
+ }
//* Get alias details
public function mail_alias_get($session_id, $primary_id)
--
Gitblit v1.9.1