]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/register_functions.php
Monthly beg/bonus rallye rewritten
[mailer.git] / inc / libs / register_functions.php
index 4ae9dba3bad6d038bcc9b84e5f716009e6f525e3..7a74af6a32c7fa7ce8ea36740aefe3302fbf1cb6 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);
 }
@@ -134,13 +133,10 @@ function REGISTER_ADD_CATEGORY_TABLE ($MODE, $return=false)
                                'id'    => $id,
                        );
 
-                       if (($_POST['cat'][$id] == "Y") || (($_CONFIG['register_default'] == "Y") && (empty($_POST['cat'][$id]))))
-                       {
-                               $content['def_y'] = ' checked';
-                       }
-                        else
-                       {
-                               $content['def_n'] = ' checked';
+                       if (($_POST['cat'][$id] == "Y") || (($_CONFIG['register_default'] == "Y") && (empty($_POST['cat'][$id])))) {
+                               $content['def_y'] = " checked=\"checked\"";
+                       } else {
+                               $content['def_n'] = " checked=\"checked\"";
                        }
 
                        // Load template and switch color