Password reset for admin login added (still buggy if cache is installed and sql_patch...
[mailer.git] / inc / modules / guest / what-register.php
index 59ffc72e760046b2cddf5d194575dcf238e4fba4..758da7a7e41b8a7f67ff58e9c7d81f5f985fe593 100644 (file)
@@ -77,7 +77,7 @@ if (isset($_POST['ok']))
        // 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;
@@ -133,7 +133,7 @@ if (isset($_POST['ok']))
                // 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'])
                {
@@ -141,7 +141,7 @@ if (isset($_POST['ok']))
                        $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']);
@@ -198,7 +198,7 @@ if ((isset($_POST['ok'])) && (!$FAILED))
        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()";
@@ -209,7 +209,7 @@ if ((isset($_POST['ok'])) && (!$FAILED))
        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()";
@@ -286,7 +286,7 @@ array(
        // 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__);
@@ -438,7 +438,7 @@ array(
        }
 
        // 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 {