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/client/domain_del.php |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/interface/web/client/domain_del.php b/interface/web/client/domain_del.php
index 6e80480..2ec8e86 100644
--- a/interface/web/client/domain_del.php
+++ b/interface/web/client/domain_del.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('client');
@@ -52,11 +52,11 @@
 
 	function onBeforeDelete() {
 		global $app; $conf;
-		
+
 		//* load language file
 		$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
-		include($lng_file);
-		
+		include $lng_file;
+
 		/*
 		 * We can only delete domains if they are NOT in use
 		 */
@@ -67,16 +67,17 @@
 		if (is_array($res)){
 			$app->error($wb['error_domain_in mailuse']);
 		}
-		
+
 		$sql = "SELECT domain_id FROM web_domain WHERE domain = '" . $app->db->quote($domain) . "'";
 		$res = $app->db->queryOneRecord($sql);
 		if (is_array($res)){
 			$app->error($wb['error_domain_in webuse']);
 		}
 	}
+
 }
 
 $page = new page_action;
 $page->onDelete();
 
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1