$description = '';
            if (!empty($_POST['description'])) {
                $description = $_POST['description'];
            }
            $newGroupId = $serverQueries->addServerGroup($_POST['groupName'], $description);
            echo '<br>$newGroupId: ' . $newGroupId . '</br>';
            if ($newGroupId < 0) {
                $error = true;
            }
        } else {
            $error = true;
        }
    }
    // If a server is being deleted
    if (!empty($_GET['deleteServer'])) {
        $serverQueries->deleteServerGroup($_GET['deleteServer']);
    }
    // Get list of server objects
    $groups = $serverQueries->getServerGroups();
    ?>
<br/>
<div class="tborder">
  <div id="tableHead">
    <div><b><?php 
    echo $LAN_MANAGESERVERGROUPS_003;
    ?>
</b></div>
  </div>
  <table id="serverGroup" class="bordercolor" width="100%" cellspacing="1" cellpadding="5" border="0" style="margin-top: 1px;">
    <tr>
      <th class="colColor1" width="1%" nowrap><div align="center"><?php 
    GlobalBan is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with GlobalBan.  If not, see <http://www.gnu.org/licenses/>.
*/
require_once ROOTDIR . "/include/database/class.ServerQueries.php";
$id = $_GET['id'];
$name = $_GET['name'];
// Update the server status
$serverQueries = new ServerQueries();
if (!empty($id)) {
    //$success = "true";
    $success = $serverQueries->deleteServerGroup($id, $name);
} else {
    $success = "false";
}
// Send back the new active state
header('Content-Type: text/xml');
header("Cache-Control: no-cache, must-revalidate");
function convertXmlSpecial($string)
{
    $string = str_replace("&", "&amp;", $string);
    $string = str_replace("'", "&apos;", $string);
    $string = str_replace("\"", "&quot;", $string);
    $string = str_replace("<", "&lt;", $string);
    $string = str_replace(">", "&gt;", $string);
    return $string;
}