]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-register.php
* Member template added for the surfbar which notifies the user that the URL is
[mailer.git] / inc / modules / guest / what-register.php
index 2ec132d5f93c0392ec6cf93fce0dc7e76df8167d..c0eeb66f5b82e40a23c8eba0e0f57136b9b06549 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__);
@@ -325,7 +325,7 @@ array(
                break;
 
        default:
-               $DATA['birthday'] = bigintval($_POST['month']."/".bigintval($_POST['day'])."/".bigintval($_POST['year']);
+               $DATA['birthday'] = bigintval($_POST['month'])."/".bigintval($_POST['day'])."/".bigintval($_POST['year']);
                break;
        }
 
@@ -338,17 +338,7 @@ array(
        $DATA['email'] = $EMAIL;
 
        // Send mail to admin
-       if (GET_EXT_VERSION("admins") >= "0.4.1")
-       {
-               // Use new system
-               SEND_ADMIN_EMAILS_PRO(ADMIN_NEW_ACCOUNT, "register-admin", $DATA, $userid);
-       }
-        else
-       {
-               // Use old system
-               $msg_admin = LOAD_EMAIL_TEMPLATE("register-admin", $DATA, $userid);
-               SEND_ADMIN_EMAILS (ADMIN_NEW_ACCOUNT, $msg_admin);
-       }
+       SEND_ADMIN_NOTIFICATION(ADMIN_NEW_ACCOUNT, "register-admin", $DATA, $userid);
 
        // Output success registration
        LOAD_TEMPLATE("admin_settings_saved", false, REGISTRATION_DONE);
@@ -438,7 +428,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 {