function unBanUser($steamId, $bannedIP)
{
    // This will send an RCON command to the server
    $serverQueries = new ServerQueries();
    // Get the list of servers
    $servers = $serverQueries->getServers();
    // Cycle through each server
    foreach ($servers as $server) {
        $r = new rcon($server->getIp(), $server->getPort(), $server->getRcon());
        if ($r->isValid()) {
            $r->Auth();
            $r->sendRconCommand("removeid " . $steamId);
            $r->sendRconCommand("removeip " . $bannedIP);
        }
    }
}
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    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/class.rcon.php";
require_once ROOTDIR . "/include/database/class.ServerQueries.php";
$serverQueries = new ServerQueries();
$servers = $serverQueries->getServers();
// Cycle through each server
foreach ($servers as $server) {
    ?>
  <h3 id="server:<?php 
    echo $server->getId();
    ?>
">Updating Ban Reasons for <?php 
    echo $server->getName();
    ?>
 <img src="images/wait.gif"/></h3>
  <?php 
}
?>
<h5>Note: The Ban Length List will continue to upload if you navigate off this page.  However, reloading this page or navigating
back too quickly can have odd results and require a new upload.</h5>
            $admins = explode(",", $_POST['admins']);
            foreach ($admins as $admin) {
                $userQueries->removeAdminFromGroup($admin, $serverId, $groupId);
            }
        }
    }
    // Get list of users
    $unAddedUsers = $userQueries->getUnAddedServerAdmins($serverId, $groupId);
    // If the group id is set, that means that we want to edit the group's admin list
    if ($groupId > 0) {
        $serverAdmins = $userQueries->getGroupAdmins($groupId);
    } else {
        $serverAdmins = $userQueries->getServerAdmins($serverId);
    }
    // Get the list of servers
    $serverList = $serverQueries->getServers();
    // Get admin groups
    $adminGroupQueries = new AdminGroupQueries();
    $adminGroups = $adminGroupQueries->getAdminGroups();
    ?>

<table id="serverAdminsTable" class="bordercolor" width="100%" cellspacing="1" cellpadding="5" border="0" style="margin-top: 1px;">
<tr>
  <th class="colColor2" width="1%" nowrap><input type="checkbox" id="selectAll"/></th>
  <th class="colColor1" width="25%" nowrap>Admin</th>
  <th class="colColor2" width="25%" nowrap>Group</th>
  <th class="colColor1" width="49%" nowrap>Remove</th>
</tr>
<?php 
    foreach ($serverAdmins as $serverAdmin) {
        ?>