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

---
 remoting_client/examples/mail_policy_add.php |  100 +++++++++++++++++++++++++-------------------------
 1 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/remoting_client/examples/mail_policy_add.php b/remoting_client/examples/mail_policy_add.php
index a020e23..248fc1c 100644
--- a/remoting_client/examples/mail_policy_add.php
+++ b/remoting_client/examples/mail_policy_add.php
@@ -1,71 +1,71 @@
 <?php
 
-require('soap_config.php');
+require 'soap_config.php';
 
 
 $client = new SoapClient(null, array('location' => $soap_location,
-                                     'uri'      => $soap_uri,
-									 'trace' => 1,
-									 'exceptions' => 1));
+		'uri'      => $soap_uri,
+		'trace' => 1,
+		'exceptions' => 1));
 
 
 try {
-	if($session_id = $client->login($username,$password)) {
+	if($session_id = $client->login($username, $password)) {
 		echo 'Logged successfull. Session ID:'.$session_id.'<br />';
 	}
-	
+
 	//* Set the function parameters.
 	$client_id = 1;
 	$params = array(
-			'policy_name' => 'numberone',
-			'virus_lover' => 'Y',
-			'spam_lover' => 'Y',
-			'banned_files_lover' => 'Y',
-			'bad_header_lover' => 'Y',
-			'bypass_virus_checks' => 'Y',
-			'bypass_spam_checks' => 'Y',
-			'bypass_banned_checks' => 'Y',
-			'bypass_header_checks' => 'Y',
-			'spam_modifies_subj' => 'Y',
-			'virus_quarantine_to' => '',
-			'spam_quarantine_to' => '',
-			'banned_quarantine_to' => '',
-			'bad_header_quarantine_to' => '',
-			'clean_quarantine_to' => '',
-			'other_quarantine_to' => '',
-			'spam_tag_level' => 1,
-			'spam_tag2_level' => 1,
-			'spam_kill_level' => 1,
-			'spam_dsn_cutoff_level' => 1,
-			'spam_quarantine_cutoff_level' => 1,
-			'addr_extension_virus' => '',
-			'addr_extension_spam' => '',
-			'addr_extension_banned' => '',
-			'addr_extension_bad_header' => '',
-			'warnvirusrecip' => 'Y',
-			'warnbannedrecip' => 'Y',
-			'warnbadhrecip' => 'Y',
-			'newvirus_admin' => '',
-			'virus_admin' => '',
-			'banned_admin' => '',
-			'bad_header_admin' => '',
-			'spam_admin' => '',
-			'spam_subject_tag' => '',
-			'spam_subject_tag2' => '',
-			'message_size_limit' => 10,
-			'banned_rulenames' => 'welt'
-			);
-	
+		'policy_name' => 'numberone',
+		'virus_lover' => 'Y',
+		'spam_lover' => 'Y',
+		'banned_files_lover' => 'Y',
+		'bad_header_lover' => 'Y',
+		'bypass_virus_checks' => 'Y',
+		'bypass_spam_checks' => 'Y',
+		'bypass_banned_checks' => 'Y',
+		'bypass_header_checks' => 'Y',
+		'spam_modifies_subj' => 'Y',
+		'virus_quarantine_to' => '',
+		'spam_quarantine_to' => '',
+		'banned_quarantine_to' => '',
+		'bad_header_quarantine_to' => '',
+		'clean_quarantine_to' => '',
+		'other_quarantine_to' => '',
+		'spam_tag_level' => 1,
+		'spam_tag2_level' => 1,
+		'spam_kill_level' => 1,
+		'spam_dsn_cutoff_level' => 1,
+		'spam_quarantine_cutoff_level' => 1,
+		'addr_extension_virus' => '',
+		'addr_extension_spam' => '',
+		'addr_extension_banned' => '',
+		'addr_extension_bad_header' => '',
+		'warnvirusrecip' => 'Y',
+		'warnbannedrecip' => 'Y',
+		'warnbadhrecip' => 'Y',
+		'newvirus_admin' => '',
+		'virus_admin' => '',
+		'banned_admin' => '',
+		'bad_header_admin' => '',
+		'spam_admin' => '',
+		'spam_subject_tag' => '',
+		'spam_subject_tag2' => '',
+		'message_size_limit' => 10,
+		'banned_rulenames' => 'welt'
+	);
+
 	$affected_rows = $client->mail_policy_add($session_id, $client_id, $params);
-	
+
 	echo "Policy ID: ".$affected_rows."<br>";
-	
-	
+
+
 	if($client->logout($session_id)) {
 		echo 'Logged out.<br />';
 	}
-	
-	
+
+
 } catch (SoapFault $e) {
 	echo $client->__getLastResponse();
 	die('SOAP Error: '.$e->getMessage());

--
Gitblit v1.9.1