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/tools/resync.php |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/interface/web/tools/resync.php b/interface/web/tools/resync.php
index 5f6bd88..a02ac9f 100644
--- a/interface/web/tools/resync.php
+++ b/interface/web/tools/resync.php
@@ -27,8 +27,8 @@
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
-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('admin');
@@ -45,7 +45,7 @@
 
 //* load language file
 $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_resync.lng';
-include($lng_file);
+include $lng_file;
 $app->tpl->setVar($wb);
 
 //* Resyncing websites
@@ -118,18 +118,18 @@
 	}
 }
 
-//* Resyncing Mailbox Domains 
-if(isset($_POST['resync_mailbox']) && $_POST['resync_mailbox'] == 1) { 
-    $db_table = 'mail_domain'; 
-    $index_field = 'domain_id'; 
-    $sql = "SELECT * FROM ".$db_table." WHERE active = 'y'"; 
-    $records = $app->db->queryAllRecords($sql); 
-    if(is_array($records)) { 
-        foreach($records as $rec) { 
-            $app->db->datalogUpdate($db_table, $rec, $index_field, $rec[$index_field], true); 
-            $msg .= "Resynced Mail Domain: ".$rec['domain'].'<br />'; 
-        } 
-    } 
+//* Resyncing Mailbox Domains
+if(isset($_POST['resync_mailbox']) && $_POST['resync_mailbox'] == 1) {
+	$db_table = 'mail_domain';
+	$index_field = 'domain_id';
+	$sql = "SELECT * FROM ".$db_table." WHERE active = 'y'";
+	$records = $app->db->queryAllRecords($sql);
+	if(is_array($records)) {
+		foreach($records as $rec) {
+			$app->db->datalogUpdate($db_table, $rec, $index_field, $rec[$index_field], true);
+			$msg .= "Resynced Mail Domain: ".$rec['domain'].'<br />';
+		}
+	}
 }
 
 //* Resyncing Mailboxes
@@ -156,7 +156,7 @@
 				foreach($records as $rec) {
 					$new_serial = $app->validate_dns->increase_serial($rec["serial"]);
 					$app->db->datalogUpdate('dns_rr', "serial = '".$new_serial."'", 'id', $rec['id']);
-					
+
 				}
 			}
 			$new_serial = $app->validate_dns->increase_serial($zone["serial"]);
@@ -166,14 +166,14 @@
 	} else {
 		$error .= "No zones found to sync.<br />";
 	}
-	
+
 }
 
-$app->tpl->setVar('msg',$msg);
-$app->tpl->setVar('error',$error);
+$app->tpl->setVar('msg', $msg);
+$app->tpl->setVar('error', $error);
 
 $app->tpl_defaults();
 $app->tpl->pparse();
 
 
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1