From de0b57f901240be5ef8beabbd3c03b1b47b33cdb Mon Sep 17 00:00:00 2001
From: Nigel Kukard <nkukard@lbsd.net>
Date: Thu, 7 May 2009 06:41:23 +0000
Subject: [PATCH] * Removed stray functions files

---
 webgui/include/ajax/AdminGroups.php    | 38 --------------------------
 webgui/include/ajax/AdminLocations.php | 35 ------------------------
 webgui/include/ajax/AdminRealms.php    | 36 ------------------------
 webgui/include/ajax/AdminUsers.php     | 36 ------------------------
 4 files changed, 145 deletions(-)
 delete mode 100644 webgui/include/ajax/AdminGroups.php
 delete mode 100644 webgui/include/ajax/AdminLocations.php
 delete mode 100644 webgui/include/ajax/AdminRealms.php
 delete mode 100644 webgui/include/ajax/AdminUsers.php

diff --git a/webgui/include/ajax/AdminGroups.php b/webgui/include/ajax/AdminGroups.php
deleted file mode 100644
index 9336b7d4..00000000
--- a/webgui/include/ajax/AdminGroups.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-include_once("include/db.php");
-
-
-# Return list of users
-function getAdminGroups($params) {
-
-	$db = connect_db();
-
-	$sql = "SELECT ID, Name, Priority, Disabled, Comment FROM groups";
-	$res = $db->query($sql);
-
-	$resultArray = array();
-
-		# loop through rows
-		while ($row = $res->fetchObject()) {
-			$item = array();
-
-			$item['ID'] = $row->id;
-			$item['Name'] = $row->name;
-			$item['Priority'] = $row->priority;
-			$item['Disabled'] = $row->disabled;
-			$item['Comment'] = $row->comment;
-
-			# push this row onto array
-			array_push($resultArray,$item);
-		}
-
-	# get number of rows
-	$sql = "SELECT count(*) FROM groups";
-	$res = $db->query($sql);
-	$numResults = $res->fetchColumn();
-
-	return array($numResults,$resultArray);
-}
-
-?>
diff --git a/webgui/include/ajax/AdminLocations.php b/webgui/include/ajax/AdminLocations.php
deleted file mode 100644
index 37cda530..00000000
--- a/webgui/include/ajax/AdminLocations.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-include_once("include/db.php");
-
-
-# Return list of users
-function getAdminLocations($params) {
-
-	$db = connect_db();
-
-	$sql = "SELECT ID, Name FROM wisp_locations";
-	$res = $db->query($sql);
-
-	$resultArray = array();
-
-		# loop through rows
-		while ($row = $res->fetchObject()) {
-			$item = array();
-
-			$item['ID'] = $row->id;
-			$item['Name'] = $row->name;
-
-			# push this row onto array
-			array_push($resultArray,$item);
-		}
-
-	# get number of rows
-	$sql = "SELECT count(*) FROM wisp_locations";
-	$res = $db->query($sql);
-	$numResults = $res->fetchColumn();
-
-	return array($numResults,$resultArray);
-}
-
-?>
diff --git a/webgui/include/ajax/AdminRealms.php b/webgui/include/ajax/AdminRealms.php
deleted file mode 100644
index 1926f111..00000000
--- a/webgui/include/ajax/AdminRealms.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-include_once("include/db.php");
-
-
-# Return list of users
-function getAdminRealms($params) {
-
-	$db = connect_db();
-
-	$sql = "SELECT ID, Name, Disabled FROM realms";
-	$res = $db->query($sql);
-
-	$resultArray = array();
-
-		# loop through rows
-		while ($row = $res->fetchObject()) {
-			$item = array();
-
-			$item['ID'] = $row->id;
-			$item['Name'] = $row->name;
-			$item['Disabled'] = $row->disabled;
-
-			# push this row onto array
-			array_push($resultArray,$item);
-		}
-
-	# get number of rows
-	$sql = "SELECT count(*) FROM realms";
-	$res = $db->query($sql);
-	$numResults = $res->fetchColumn();
-
-	return array($numResults,$resultArray);
-}
-
-?>
diff --git a/webgui/include/ajax/AdminUsers.php b/webgui/include/ajax/AdminUsers.php
deleted file mode 100644
index 75a7852a..00000000
--- a/webgui/include/ajax/AdminUsers.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-include_once("include/db.php");
-
-
-# Return list of users
-function getAdminUsers($params) {
-
-	$db = connect_db();
-
-	$sql = "SELECT ID, Username, Disabled FROM users";
-	$res = $db->query($sql);
-
-	$resultArray = array();
-
-		# loop through rows
-		while ($row = $res->fetchObject()) {
-			$item = array();
-
-			$item['ID'] = $row->id;
-			$item['Username'] = $row->username;
-			$item['Disabled'] = $row->disabled;
-
-			# push this row onto array
-			array_push($resultArray,$item);
-		}
-
-	# get number of rows
-	$sql = "SELECT count(*) FROM users";
-	$res = $db->query($sql);
-	$numResults = $res->fetchColumn();
-
-	return array($numResults,$resultArray);
-}
-
-?>
-- 
GitLab