X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fregister_functions.php;h=a80cddd54c168508b66cd4f8661657b28f0bbeff;hb=f6fc2b9723a0554bf4f407554225e9a1a1a97e5e;hp=4ae9dba3bad6d038bcc9b84e5f716009e6f525e3;hpb=f01652b7b8efac92d97889e312402c4a845c2f14;p=mailer.git diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php index 4ae9dba3ba..a80cddd54c 100644 --- a/inc/libs/register_functions.php +++ b/inc/libs/register_functions.php @@ -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