Esempio n. 1
0
         }
         $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) {
     $arrThemes = scandir("../themes");
     $themeOptions = "";
     foreach ($arrThemes as $themeName) {
         $themeURL = "../themes/" . $themeName;
         if (is_dir($themeURL) && $themeName != "." && $themeName != ".." && is_readable($themeURL . "/THEMENAME.txt") && file_exists("../themes/" . $themeName . "/themeinfo.xml")) {
             $arrValidThemes[] = $themeName;
             $dispThemeName = file_get_contents($themeURL . "/THEMENAME.txt");
             $themeOptions .= "<option value='" . $themeName . "'" . $dispSelected . ">" . $dispThemeName . "</option>";
         }