diff --git a/webgui/include/ajax/AdminGroups.php b/webgui/include/ajax/AdminGroups.php deleted file mode 100644 index 9336b7d4999c36ea17dea0d29397ea38ec0881d2..0000000000000000000000000000000000000000 --- 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 37cda5301395fe0a691f08eb25fd63e7dd34d1cb..0000000000000000000000000000000000000000 --- 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 1926f1113c729f48728fc815ee22a335651e02ad..0000000000000000000000000000000000000000 --- 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 75a7852a12a030f93f4452473ab2d7c9e7f17d04..0000000000000000000000000000000000000000 --- 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); -} - -?>