From 0e48d001fcfc1b66b42c8db680762790f0489657 Mon Sep 17 00:00:00 2001
From: Robert Anderson <randerson@lbsd.net>
Date: Tue, 24 Mar 2009 13:34:34 +0000
Subject: [PATCH] fixed formatting removed white spaces

---
 webui/attribute-add.php          |  2 +-
 webui/attribute-change.php       | 19 +++++++++----------
 webui/attribute-delete.php       |  8 ++++----
 webui/group-add.php              | 12 ++++++------
 webui/group-attribute-change.php | 18 +++++++++---------
 webui/user-attributes.php        |  2 +-
 webui/user-delete.php            |  2 +-
 webui/user-groups-delete.php     |  8 ++++----
 8 files changed, 35 insertions(+), 36 deletions(-)

diff --git a/webui/attribute-add.php b/webui/attribute-add.php
index 7bfda573..4f626f4f 100644
--- a/webui/attribute-add.php
+++ b/webui/attribute-add.php
@@ -69,7 +69,7 @@ if ($_POST['frmaction'] == "add") {
 						<option value="!*">!*</option>
 						<option value="||=">||=</option>
 						<option value="||==">||==</option>
-					</select>		
+					</select>
 				</td>
 			</tr>
 			<tr>
diff --git a/webui/attribute-change.php b/webui/attribute-change.php
index d58991fa..64f5e574 100644
--- a/webui/attribute-change.php
+++ b/webui/attribute-change.php
@@ -90,7 +90,7 @@ if ($_POST['frmaction'] == "change") {
 							<option value="!*">!*</option>
 							<option value="||=">||=</option>
 							<option value="||==">||==</option>
-						</select>		
+						</select>
 					</td>
 				</tr>
 				<tr>
@@ -106,13 +106,13 @@ if ($_POST['frmaction'] == "change") {
 							<option value="">--</option>
 							<option value="0">No</option>
 							<option value="1">Yes</option>
-						</select>		
+						</select>
 					</td>
 				</tr>
 			</table>
-	
+
 			<p />
-			
+
 			<div class="textcenter">
 				<input type="submit" />
 			</div>
@@ -124,9 +124,9 @@ if ($_POST['frmaction'] == "change") {
 		<div class="warning">No attribute selected</div>
 <?php
 	}
-	
-	
-	
+
+
+
 # SQL Updates
 } elseif ($_POST['frmaction'] == "change2") {
 ?>
@@ -134,7 +134,7 @@ if ($_POST['frmaction'] == "change") {
 <?php
 	# Check an attribute was selected
 	if (isset($_POST['attr_id'])) {
-		
+
 		$updates = array();
 
 		if (!empty($_POST['user_attributes_name'])) {
@@ -153,7 +153,7 @@ if ($_POST['frmaction'] == "change") {
 		# Check if we have updates
 		if (sizeof($updates) > 0) {
 			$updateStr = implode(', ',$updates);
-	
+
 			$res = $db->exec("UPDATE ${DB_TABLE_PREFIX}user_attributes SET $updateStr WHERE ID = ".$db->quote($_POST['attr_id']));
 			if ($res) {
 ?>
@@ -193,4 +193,3 @@ printFooter();
 
 # vim: ts=4
 ?>
-
diff --git a/webui/attribute-delete.php b/webui/attribute-delete.php
index 450be5b0..5dd55ae5 100644
--- a/webui/attribute-delete.php
+++ b/webui/attribute-delete.php
@@ -60,17 +60,17 @@ if ($_POST['frmaction'] == "delete") {
 		<div class="warning">No attribute selected</div>
 <?php
 	}
-	
-	
+
+
 # SQL Updates
 } elseif ($_POST['frmaction'] == "delete2") {
 ?>
 	<p class="pageheader">Attribute Delete Results</p>
 <?php
 	if (isset($_POST['attr_id'])) {
-		
 
-		if ($_POST['confirm'] == "yes") {	
+
+		if ($_POST['confirm'] == "yes") {
 			$res = $db->exec("DELETE FROM ${DB_TABLE_PREFIX}user_attributes WHERE ID = ".$_POST['attr_id']);
 			if ($res !== FALSE) {
 ?>
diff --git a/webui/group-add.php b/webui/group-add.php
index dd55511a..3858a206 100644
--- a/webui/group-add.php
+++ b/webui/group-add.php
@@ -34,7 +34,7 @@ printHeader(array(
 ));
 
 
-if ($_POST['frmaction'] == "add")  {
+if ($_POST['frmaction'] == "add") {
 ?>
 	<p class="pageheader">Add Group</p>
 <?php
@@ -58,7 +58,7 @@ if ($_POST['frmaction'] == "add")  {
 						<select name="group_disabled">
 							<option value="0">No</option>
 							<option value="1">Yes</option>
-						</select>		
+						</select>
 					</td>
 				</tr>
 				<tr>
@@ -73,9 +73,9 @@ if ($_POST['frmaction'] == "add")  {
 			</table>
 		</form>
 <?php
-	
-	
-	
+
+
+
 # Check we have all params
 } elseif ($_POST['frmaction'] == "add2") {
 ?>
@@ -84,7 +84,7 @@ if ($_POST['frmaction'] == "add")  {
 <?php
 
 	$stmt = $db->prepare("INSERT INTO ${DB_TABLE_PREFIX}groups (Name,Priority,Disabled,Comment) VALUES (?,?,?,?)");
-	
+
 	$res = $stmt->execute(array(
 		$_POST['group_name'],
 		$_POST['group_priority'],
diff --git a/webui/group-attribute-change.php b/webui/group-attribute-change.php
index a1799d9c..c630079c 100644
--- a/webui/group-attribute-change.php
+++ b/webui/group-attribute-change.php
@@ -88,7 +88,7 @@ if ($_POST['frmaction'] == "change") {
 							<option value="!*">!*</option>
 							<option value="||=">||=</option>
 							<option value="||==">||==</option>
-						</select>		
+						</select>
 					</td>
 				</tr>
 				<tr>
@@ -104,13 +104,13 @@ if ($_POST['frmaction'] == "change") {
 							<option value="">--</option>
 							<option value="0">No</option>
 							<option value="1">Yes</option>
-						</select>		
+						</select>
 					</td>
 				</tr>
 			</table>
-	
+
 			<p />
-			
+
 			<div class="textcenter">
 				<input type="submit" />
 			</div>
@@ -122,9 +122,9 @@ if ($_POST['frmaction'] == "change") {
 		<div class="warning">No attribute selected</div>
 <?php
 	}
-	
-	
-	
+
+
+
 # SQL Updates
 } elseif ($_POST['frmaction'] == "change2") {
 ?>
@@ -132,7 +132,7 @@ if ($_POST['frmaction'] == "change") {
 <?php
 	# Check an attribute was selected
 	if (isset($_POST['attr_id'])) {
-		
+
 		$updates = array();
 
 		if (!empty($_POST['group_attributes_name'])) {
@@ -151,7 +151,7 @@ if ($_POST['frmaction'] == "change") {
 		# Check if we have updates
 		if (sizeof($updates) > 0) {
 			$updateStr = implode(', ',$updates);
-	
+
 			$res = $db->exec("UPDATE ${DB_TABLE_PREFIX}group_attributes SET $updateStr WHERE ID = ".$db->quote($_POST['attr_id']));
 			if ($res) {
 ?>
diff --git a/webui/user-attributes.php b/webui/user-attributes.php
index e7255c5e..6ff1f9af 100644
--- a/webui/user-attributes.php
+++ b/webui/user-attributes.php
@@ -76,7 +76,7 @@ printHeader(array(
 <?php
 	$_SESSION['attr_user_id'] = $_POST['user_id']; 
 	if (isset($_SESSION['attr_user_id'])) {
-	
+
 		$temp = $_SESSION['attr_user_id'];
 		$sql = "SELECT ID, Name, Operator, Value, Disabled FROM ${DB_TABLE_PREFIX}user_attributes WHERE UserID = $temp ORDER BY ID";
 		$res = $db->query($sql);
diff --git a/webui/user-delete.php b/webui/user-delete.php
index 26412eb8..e5c4a3f4 100644
--- a/webui/user-delete.php
+++ b/webui/user-delete.php
@@ -72,7 +72,7 @@ if ($_POST['frmaction'] == "delete") {
 		$check = $db->query($sql);
 
 		if ($check->num_rows == 0) {
-			if ($_POST['confirm'] == "yes") {	
+			if ($_POST['confirm'] == "yes") {
 				$res = $db->exec("DELETE FROM ${DB_TABLE_PREFIX}users WHERE ID = ".$_POST['user_id']);
 				if ($res !== FALSE) {
 ?>
diff --git a/webui/user-groups-delete.php b/webui/user-groups-delete.php
index a3df5743..f6ac3835 100644
--- a/webui/user-groups-delete.php
+++ b/webui/user-groups-delete.php
@@ -61,20 +61,20 @@ if ($_POST['frmaction'] == "delete") {
 		<div class="warning">No group assignment selected</div>
 <?php
 	}
-	
-	
+
+
 # SQL Updates
 } elseif ($_POST['frmaction'] == "delete2") {
 ?>
 	<p class="pageheader">Group Assignment Removal Results</p>
 <?php
 	if (isset($_POST['group_id'])) {
-		if ($_POST['confirm'] == "yes") {	
+		if ($_POST['confirm'] == "yes") {
 			$res = $db->exec("DELETE FROM ${DB_TABLE_PREFIX}users_to_groups WHERE UserID = ".$_SESSION['groups_user_id']." AND GroupID = ".$_POST['group_id']);
 			if ($res !== FALSE) {
 ?>
 				<div class="notice">Group with ID: <?php print_r($_POST['group_id']);?> deleted from user with ID: <?php print_r($_SESSION['groups_user_id']);?></div>
-<?php		
+<?php
 				session_destroy();
 			} else {
 ?>
-- 
GitLab