]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/register_functions.php
Hotfix for rallye
[mailer.git] / inc / libs / register_functions.php
index 4ae9dba3bad6d038bcc9b84e5f716009e6f525e3..a80cddd54c168508b66cd4f8661657b28f0bbeff 100644 (file)
@@ -32,8 +32,7 @@
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
@@ -136,11 +135,11 @@ function REGISTER_ADD_CATEGORY_TABLE ($MODE, $return=false)
 
                        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