From 7fe908c50c8dbc5cc05f571dbe11d66141caacd4 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Thu, 14 Nov 2013 09:01:22 -0500 Subject: [PATCH] Cleaning up code to match coding guidelines --- interface/web/mail/spamfilter_users_edit.php | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/interface/web/mail/spamfilter_users_edit.php b/interface/web/mail/spamfilter_users_edit.php index 02cebbf..c1e50f3 100644 --- a/interface/web/mail/spamfilter_users_edit.php +++ b/interface/web/mail/spamfilter_users_edit.php @@ -38,8 +38,8 @@ * End Form configuration ******************************************/ -require_once('../../lib/config.inc.php'); -require_once('../../lib/app.inc.php'); +require_once '../../lib/config.inc.php'; +require_once '../../lib/app.inc.php'; //* Check permissions for module $app->auth->check_module_permissions('mail'); @@ -51,7 +51,7 @@ class page_action extends tform_actions { function onShowNew() { global $app, $conf; - + // we will check only users, not admins if($_SESSION["s"]["user"]["typ"] == 'user') { if(!$app->tform->checkClientLimit('limit_spamfilter_user')) { @@ -61,10 +61,10 @@ $app->error('Reseller: '.$app->tform->wordbook["limit_spamfilter_user_txt"]); } } - + parent::onShowNew(); } - + function onBeforeUpdate() { global $app, $conf; @@ -81,9 +81,9 @@ } } -function onSubmit() { + function onSubmit() { global $app, $conf; - + // Check the client limits, if user is not the admin if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin // Get the limits of the client @@ -99,13 +99,14 @@ unset($tmp); } } // end if user is not admin - + parent::onSubmit(); } + } $app->tform_actions = new page_action; $app->tform_actions->onLoad(); -?> \ No newline at end of file +?> -- Gitblit v1.9.1