$categoryObj->set_assocTableKey("forumboard_id"); $boardObj = new ForumBoard($mysqli); // Check Login $LOGIN_FAIL = true; if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) { echo "\n\t\n\t\t<table class='formTable' style='margin-bottom: 20px'>\n\t\t\t<tr>\n\t\t\t\t<td class='formTitle' style='width: 50%'>Board:</td>\n\t\t\t\t<td class='formTitle' style='width: 35%'>Date Added:</td>\n\t\t\t\t<td class='formTitle' style='width: 15%'>Actions:</td>\n\t\t\t</tr>\n\t\n\t"; if (isset($_POST['mID']) && $memberModObj->select($_POST['mID'])) { $memberModInfo = $memberModObj->get_info_filtered(); if ($_POST['action'] == "add") { if (substr($_POST['bID'], 0, 4) == "cat_") { $catID = str_replace("cat_", "", $_POST['bID']); if ($categoryObj->select($catID)) { $arrBoards = $categoryObj->getAssociateIDs(); foreach ($arrBoards as $boardID) { $boardObj->select($boardID); $boardObj->addMod($memberModInfo['member_id']); } } } elseif (substr($_POST['bID'], 0, 6) == "board_") { $boardID = str_replace("board_", "", $_POST['bID']); if ($boardObj->select($boardID)) { $boardObj->addMod($memberModInfo['member_id']); } } } elseif ($_POST['action'] == "delete") { if ($boardObj->select($_POST['bID'])) { $boardObj->removeMod($memberModInfo['member_id']); } } $result = $mysqli->query("SELECT * FROM " . $dbprefix . "forum_moderator WHERE member_id = '" . $memberModInfo['member_id'] . "' ORDER BY dateadded DESC"); while ($row = $result->fetch_assoc()) {