X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fregister_functions.php;h=d64d8273b32e86895cc9060e0a6234d635e1f413;hb=9b27fd714bd5db5ca84ec1bd019c7614441f504b;hp=5dc7074504c2060f62c2275451d7f68c7077ee93;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git
diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php
index 5dc7074504..d64d8273b3 100644
--- a/inc/libs/register_functions.php
+++ b/inc/libs/register_functions.php
@@ -45,7 +45,7 @@ function REGISTER_FILL_MUST_CONSTANTS()
while(list($name, $required) = SQL_FETCHROW($result))
{
$value = "";
- if ($required == "Y") $value = " (*)";
+ if ($required == 'Y') $value = " (*)";
$eval = "define('MUST_".strtoupper($name)."', \"".$value."\");";
eval($eval);
}
@@ -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,13 +92,13 @@ 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] = "";
$eval = "\$OUT = REGISTER_".strtoupper($name)."_REQUIRED;";
eval($eval);
- OUTPUT_HTML ("".$OUT."
");
+ OUTPUT_HTML("".$OUT."
");
}
}
@@ -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
@@ -166,7 +166,7 @@ function REGISTER_ADD_CATEGORY_TABLE ($MODE, $return=false)
else
{
// Output directly (default)
- OUTPUT_HTML ($OUT);
+ OUTPUT_HTML($OUT);
}
}
//