Esempio n. 1
0
 public function notifyNewMember($accepted = true)
 {
     $webInfoObj = new WebsiteInfo($this->MySQL);
     $webInfoObj->select(1);
     $webInfo = $webInfoObj->get_info_filtered();
     $to = $this->arrObjInfo['email'];
     if ($accepted) {
         $subject = $webInfo['clanname'] . ": Member Application Accepted";
         $message = "You have been accepted to become a full member of " . $webInfo['clanname'] . "!  Go to <a href='" . FULL_SITE_URL . "'>" . FULL_SITE_URL . "</a> to log in to your account.";
     } else {
         $subject = $webInfo['clanname'] . ": Member Application Declined";
         $message = "Your application to become a member of " . $webInfo['clanname'] . " has been declined.  You may try signing up again by going to <a href='" . FULL_SITE_URL . "'>" . FULL_SITE_URL . "</a>.";
     }
     $webInfoObj->objBTMail->sendMail($to, $subject, $message);
 }
Esempio n. 2
0
    $_SESSION['csrfKey'] = md5(uniqid());
}
include $prevFolder . "_config.php";
define("BASE_DIRECTORY", $BASE_DIRECTORY);
//define("BASE_DIRECTORY", str_replace("//", "/", $_SERVER['DOCUMENT_ROOT'].$MAIN_ROOT));
define("MAIN_ROOT", $MAIN_ROOT);
$PAGE_NAME = "";
include_once BASE_DIRECTORY . "_functions.php";
define("FULL_SITE_URL", getHTTP() . $_SERVER['SERVER_NAME'] . MAIN_ROOT);
$mysqli = new btmysql($dbhost, $dbuser, $dbpass, $dbname);
$mysqli->set_tablePrefix($dbprefix);
$mysqli->set_testingMode(true);
$logObj = new Basic($mysqli, "logs", "log_id");
// Get Clan Info
$webInfoObj = new WebsiteInfo($mysqli);
$webInfoObj->select(1);
$websiteInfo = $webInfoObj->get_info_filtered();
$CLAN_NAME = $websiteInfo['clanname'];
$THEME = $websiteInfo['theme'];
define("THEME", $THEME);
$arrWebsiteLogoURL = parse_url($websiteInfo['logourl']);
if (!isset($arrWebsiteLogoURL['scheme']) || $arrWebsiteLogoURL['scheme'] == "") {
    $websiteInfo['logourl'] = $MAIN_ROOT . "themes/" . $THEME . "/" . $websiteInfo['logourl'];
}
$IP_ADDRESS = $_SERVER['REMOTE_ADDR'];
// Check Debug Mode
if ($websiteInfo['debugmode'] == 1) {
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT);
} else {
    ini_set('display_errors', 1);
Esempio n. 3
0
             $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) {
     $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>";