include_once "../../../../classes/consoleoption.php"; include_once "../../../../classes/profileoption.php"; include_once "../../../../classes/profilecategory.php"; $consoleObj = new ConsoleOption($mysqli); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $profileOptionObj = new ProfileOption($mysqli); $profileCatObj = new ProfileCategory($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage Profile Options"); $consoleObj->select($cID); $_GET['cID'] = $cID; if ($member->authorizeLogin($_SESSION['btPassword'])) { $memberInfo = $member->get_info_filtered(); if ($member->hasAccess($consoleObj) && $profileOptionObj->select($_POST['oID'])) { define('MEMBERRANK_ID', $memberInfo['rank_id']); $profileOptionInfo = $profileOptionObj->get_info(); $profileCatObj->select($profileOptionInfo['profilecategory_id']); $arrAssociates = $profileCatObj->getAssociateIDs("ORDER BY sortnum"); array_unshift($arrAssociates, ""); unset($arrAssociates[0]); $intSortNum = $profileOptionInfo['sortnum']; $moveUp = $intSortNum - 1; $moveDown = $intSortNum + 1; $makeMove = ""; if ($_POST['oDir'] == "up" and $profileOptionObj->select($arrAssociates[$moveUp])) { $makeMove = "before"; } elseif ($_POST['oDir'] == "down" and $profileOptionObj->select($arrAssociates[$moveDown])) { $makeMove = "after"; } if ($makeMove != "") { $newSpot = $profileOptionObj->makeRoom($makeMove);