X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Fmodules%2Fguest%2Fwhat-register.php;h=7fe0bf2b7c18a10f4b2007a30fae54f220649fe7;hb=f9a9c09e1ae257449bfd98f8854e321efba1dc3c;hp=e240aaaf07680cfa1f5019d7b0fdbdae148b3213;hpb=505941fffb410fe82191d86e54f418f601f2f72f;p=mailer.git diff --git a/inc/modules/guest/what-register.php b/inc/modules/guest/what-register.php index e240aaaf07..7fe0bf2b7c 100644 --- a/inc/modules/guest/what-register.php +++ b/inc/modules/guest/what-register.php @@ -79,8 +79,8 @@ if ($GLOBALS['refid'] > 0) { //* DEBUG: */ die("refid={$GLOBALS['refid']}/numRows=".SQL_NUMROWS($result).""); if (SQL_NUMROWS($result) == 0) { // Not found so we set your refid! - $_POST['refid'] = $_CONFIG['def_refid']; - set_session('refid', $_CONFIG['def_refid']); + $_POST['refid'] = getConfig('def_refid'); + set_session('refid', getConfig('def_refid')); } else { // Use the refid here $_POST['refid'] = $GLOBALS['refid']; @@ -129,7 +129,7 @@ if (isset($_POST['ok'])) { } // END - if // Is the password long enouth? - if ((strlen($_POST['pass1']) < $_CONFIG['pass_len']) && (!$FAILED)) { + if ((strlen($_POST['pass1']) < getConfig('pass_len')) && (!$FAILED)) { $SHORT_PASS = true; $FAILED = true; } // END - if @@ -141,23 +141,23 @@ if (isset($_POST['ok'])) { if ($answer == "Y") $cats++; } // END - foreach - if ($cats < $_CONFIG['least_cats']) { + if ($cats < getConfig('least_cats')) { // ... nope! $FAILED = true; } // END - if } // END - if - if (($_POST['addy'] != "!") && ($_CONFIG['check_double_email'] == "Y")) { + if (($_POST['addy'] != "!") && (getConfig('check_double_email') == "Y")) { // Does the email address already exists in our database? $CHK = SEARCH_EMAIL_USERTAB($_POST['addy']); if ($CHK) { $_POST['addy'] = "?"; $FAILED = true; } } // END - if // Check for IP timeout? - if ($_CONFIG['ip_timeout'] > 0) { + if (getConfig('ip_timeout') > 0) { // Check his IP number $result = SQL_QUERY_ESC("SELECT joined, last_update FROM `"._MYSQL_PREFIX."_user_data` WHERE REMOTE_ADDR='%s' AND (joined > (UNIX_TIMESTAMP() - %s) OR last_update > (UNIX_TIMESTAMP() - %s)) LIMIT 1", - array(GET_REMOTE_ADDR(), $_CONFIG['ip_timeout'], $_CONFIG['ip_timeout']), __FILE__, __LINE__); + array(GET_REMOTE_ADDR(), getConfig('ip_timeout'), getConfig('ip_timeout')), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Same IP in timeout range and different email address entered... Eat this, faker! ;-) // But admins are allowed to fake their own exchange service. @@ -199,7 +199,7 @@ if ((isset($_POST['ok'])) && ((!$FAILED) || (IS_ADMIN()))) { // First comes first: begging rallye if (GET_EXT_VERSION("beg") >= "0.1.7") { // Okay, shall I disable now? - if ($_CONFIG['beg_new_mem_notify'] == "N") { + if (getConfig('beg_new_mem_notify') == "N") { $ADD1 .= ", beg_ral_notify, beg_ral_en_notify"; $ADD2 .= ", UNIX_TIMESTAMP(), UNIX_TIMESTAMP()"; } // END - if @@ -208,7 +208,7 @@ if ((isset($_POST['ok'])) && ((!$FAILED) || (IS_ADMIN()))) { // Second: active rallye if (GET_EXT_VERSION("bonus") >= "0.7.7") { // Okay, shall I disable now? - if ($_CONFIG['bonus_new_mem_notify'] == "N") { + if (getConfig('bonus_new_mem_notify') == "N") { $ADD1 .= ", bonus_ral_notify, bonus_ral_en_notify"; $ADD2 .= ", UNIX_TIMESTAMP(), UNIX_TIMESTAMP()"; } // END - if @@ -274,14 +274,14 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF if (SQL_NUMROWS($result) == 0) { // Add only when the line was not found (maybe some more secure?) $locked = "points"; - if ($_CONFIG['ref_payout'] > 0) $locked = "locked_points"; // Pay him later. First he has to confirm some mails! + if (getConfig('ref_payout') > 0) $locked = "locked_points"; // Pay him later. First he has to confirm some mails! $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_user_points (userid, ref_depth, ".$locked.") VALUES (%s,0,'%s')", - array(bigintval($userid), $_CONFIG['points_register']), __FILE__, __LINE__); + array(bigintval($userid), getConfig('points_register')), __FILE__, __LINE__); // Update mediadata as well if ((GET_EXT_VERSION("mediadata") >= "0.0.4") && ($locked == "points")) { // Update database - MEDIA_UPDATE_ENTRY(array("total_points"), "add", $_CONFIG['points_register']); + MEDIA_UPDATE_ENTRY(array("total_points"), "add", getConfig('points_register')); } // END - if } // END - if @@ -395,15 +395,15 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF } if ($SHORT_PASS) { - OUTPUT_HTML("".SHORT_PASS.": ".$_CONFIG['pass_len']."

"); + OUTPUT_HTML("".SHORT_PASS.": ".getConfig('pass_len')."

"); } // END - if if ($IP_TIMEOUT) { OUTPUT_HTML("".REMOTE_ADDR_TIMEOUT."

"); } // END - if - if ((!empty($cats)) && ($cats < $_CONFIG['least_cats'])) { - OUTPUT_HTML("".CATS_LEAST.": ".$_CONFIG['least_cats']."

"); + if ((!empty($cats)) && ($cats < getConfig('least_cats'))) { + OUTPUT_HTML("".CATS_LEAST.": ".getConfig('least_cats')."

"); } // END - if // Generate birthday selection @@ -425,7 +425,7 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF define('MAX_RECEIVE_LIST', ADD_MAX_RECEIVE_LIST("guest", "", true)); // Shall I display the refid or shall I make it editable? - if ($_CONFIG['display_refid'] == "Y") { + if (getConfig('display_refid') == "Y") { // Load "hide" form template define('REFID_CONTENT', LOAD_TEMPLATE("guest_register_refid_hide", true, $GLOBALS['refid'])); } else { @@ -437,7 +437,7 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF define('REGISTER_HEADER_CONTENT', LOAD_TEMPLATE("register_header", true)); // Please select at least x categories - define('LEAST_CATS_VALUE', $_CONFIG['least_cats']); + define('LEAST_CATS_VALUE', getConfig('least_cats')); // Other values define('__SURNAME', SQL_ESCAPE($_POST['surname']));