// First we only check the submitted data then we continue... :)
//
// Did he agree to our Terms Of Usage?
- if ($_POST['agree'] != 'Y')
+ if ($_POST['agree'] != "Y")
{
$_POST['agree'] = "!";
$FAILED = true;
// Do this check only when no admin is logged in
foreach ($_POST['cat'] as $id=>$answer)
{
- if ($answer == 'Y') $cats++;
+ if ($answer == "Y") $cats++;
}
if ($cats < $_CONFIG['least_cats'])
{
$FAILED = true;
}
}
- if (($_POST['addy'] != "!") && ($_CONFIG['check_double_email'] == 'Y') && (!IS_ADMIN()))
+ if (($_POST['addy'] != "!") && ($_CONFIG['check_double_email'] == "Y") && (!IS_ADMIN()))
{
// Does the email address already exists in our database?
$CHK = SEARCH_EMAIL_USERTAB($_POST['addy']);
if (GET_EXT_VERSION("beg") >= "0.1.7")
{
// Okay, shall I disable now?
- if ($_CONFIG['beg_new_mem_notify'] == 'N')
+ if ($_CONFIG['beg_new_mem_notify'] == "N")
{
$ADD1 .= ", beg_ral_notify, beg_ral_en_notify";
$ADD2 .= ", UNIX_TIMESTAMP(), UNIX_TIMESTAMP()";
if (GET_EXT_VERSION("bonus") >= "0.7.7")
{
// Okay, shall I disable now?
- if ($_CONFIG['bonus_new_mem_notify'] == 'N')
+ if ($_CONFIG['bonus_new_mem_notify'] == "N")
{
$ADD1 .= ", bonus_ral_notify, bonus_ral_en_notify";
$ADD2 .= ", UNIX_TIMESTAMP(), UNIX_TIMESTAMP()";
// Write catgories
if ((is_array($_POST['cat'])) && (count($_POST['cat']))) {
foreach ($_POST['cat'] as $cat=>$joined) {
- if ($joined == 'Y') {
+ if ($joined == "Y") {
// Insert category entry
$result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_user_cats (userid, cat_id) VALUES (%d, %d)",
array(bigintval($userid), bigintval($cat)), __FILE__, __LINE__);
}
// Shall I display the refid or shall I make it editable?
- if ($_CONFIG['display_refid'] == 'Y') {
+ if ($_CONFIG['display_refid'] == "Y") {
// Load template to enter it
define('REFID_CONTENT', LOAD_TEMPLATE("guest_register_refid", true, $GLOBALS['refid']));
} else {