]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/register_functions.php
Mail confirmation frameset now shows subject line as extra browser title
[mailer.git] / inc / libs / register_functions.php
index 317bcea87b07775ef6a9d9f27ceb42f1395186ae..894e388e1bdf23769d26d19527bf242c3a898d4c 100644 (file)
@@ -45,7 +45,7 @@ function REGISTER_FILL_MUST_CONSTANTS()
        while(list($name, $required) = SQL_FETCHROW($result))
        {
                $value = "";
-               if ($required == 'Y') $value = "<FONT class=\\\"guest_failed\\\">&nbsp;(*)</FONT>";
+               if ($required == "Y") $value = "<FONT class=\\\"guest_failed\\\">&nbsp;(*)</FONT>";
                $eval = "define('MUST_".strtoupper($name)."', \"".$value."\");";
                eval($eval);
        }
@@ -63,7 +63,7 @@ function REGISTER_FILL_MUST_CONSTANTS()
 function REGISTER_CHECK_REQUIRED_FIELDS(&$array)
 {
        $ret = false;
-       foreach ($array as $key=>$value)
+       foreach ($array as $key => $value)
        {
                $result = SQL_QUERY("SELECT field_required FROM "._MYSQL_PREFIX."_must_register WHERE field_name='".$key."' LIMIT 1", __FILE__, __LINE__);
                if (SQL_NUMROWS($result) == 1)
@@ -76,7 +76,7 @@ function REGISTER_CHECK_REQUIRED_FIELDS(&$array)
                        // if extensions is present check if country code was selected
                        //         01              2         21    12             3         32    234     5      54    4               43    34                      4    4      5      5432    2      3                      3210
                        $country = ((!EXT_IS_ACTIVE("country")) || ((EXT_IS_ACTIVE("country")) && (((empty($value)) && ($key == "cntry")) || (($key == "country_code") && (!empty($value)))) && (!empty($array['country_code']))));
-                       if ((empty($value)) && ($chk == 'Y') && (!$country))
+                       if ((empty($value)) && ($chk == "Y") && (!$country))
                        {
                                // Required field not set
                                $array[$key] = "!";
@@ -92,7 +92,7 @@ function REGISTER_OUTPUT_REQUIRE_CHECK(&$array)
        $result = SQL_QUERY("SELECT field_name, field_required FROM "._MYSQL_PREFIX."_must_register ORDER BY id", __FILE__, __LINE__);
        while(list($name, $required) = SQL_FETCHROW($result))
        {
-               if (($array[$name] == "!") && ($required == 'Y'))
+               if (($array[$name] == "!") && ($required == "Y"))
                {
                        // Empty entry found
                        $array[$name] = "";
@@ -108,7 +108,7 @@ function REGISTER_OUTPUT_REQUIRE_CHECK(&$array)
 //
 function REGISTER_ADD_CATEGORY_TABLE ($MODE, $return=false)
 {
-       global $_POST, $CONFIG;
+       global $_POST, $_CONFIG;
        $OUT = "";
 
        // Guests are mostly not interested in how many members has
@@ -134,13 +134,13 @@ function REGISTER_ADD_CATEGORY_TABLE ($MODE, $return=false)
                                'id'    => $id,
                        );
 
-                       if (($_POST['cat'][$id] == 'Y') || (($CONFIG['register_default'] == 'Y') && (empty($_POST['cat'][$id]))))
+                       if (($_POST['cat'][$id] == "Y") || (($_CONFIG['register_default'] == "Y") && (empty($_POST['cat'][$id]))))
                        {
-                               $content['def_y'] = " checked";
+                               $content['def_y'] = ' checked';
                        }
                         else
                        {
-                               $content['def_n'] = " checked";
+                               $content['def_n'] = ' checked';
                        }
 
                        // Load template and switch color