$tempCatID = $arrConsoleCategoryIDs[$arrConsoleOptionInfo[$key]['category']]; $consoleOptionObj->setCategoryKeyValue($tempCatID); $consoleOptionObj->resortOrder(); $highestSortNum = $consoleOptionObj->getHighestSortNum(); $newOrderNum = $highestSortNum + 1; if ($arrConsoleOptionInfo[$key]['addsep'] == "1") { $arrValues = array($tempCatID, "-separator-", "", $newOrderNum, "1", "", "1"); $consoleOptionObj->addNew($arrColumns, $arrValues); $newOrderNum++; } $arrValues = array($tempCatID, $consoleOptionName, $arrConsoleOptionInfo[$key]['filename'], $newOrderNum, "1", $arrConsoleOptionInfo[$key]['hide'], ""); $consoleOptionObj->addNew($arrColumns, $arrValues); $consoleOptionObj->resortOrder(); } elseif ($consoleOptionName == "Private Messages" && $checkConsole !== false && $pmCatID != "") { $consoleOptionObj->select($checkConsole); $consoleOptionObj->update(array("consolecategory_id", "sortnum"), array($pmCatID, 0)); $consoleOptionObj->resortOrder(); } } // Check for valid theme $arrValidThemes = array(); $themeOptions .= ""; $websiteInfoObj = new WebsiteInfo($mysqli); $websiteInfoObj->select(1); $themeName = $websiteInfoObj->get_info("theme"); // Add New Websiteinfo $websiteInfoObj->multiUpdate(array("default_timezone", "date_format", "display_date"), array("America/New_York", "l, F j, Y", "1")); $verifyTheme = file_exists("../themes/" . $themeName . "/themeinfo.xml"); $_SESSION['btUsername'] = $member->get_info("username"); $_SESSION['btPassword'] = $member->get_info("password"); if (!$verifyTheme) {