X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_doubler.php;h=88110e3935011f1f4870a6d8b4648a71ffa1b9ce;hb=3c2f106c02f6d86a90f529a0564abcbbe716fe71;hp=e835bbd9fefc164df16438e12b06fd08a49bb4c7;hpb=60494e212a67fe360bfbb481eb4928480a6f379b;p=mailer.git diff --git a/inc/modules/admin/what-config_doubler.php b/inc/modules/admin/what-config_doubler.php index e835bbd9fe..88110e3935 100644 --- a/inc/modules/admin/what-config_doubler.php +++ b/inc/modules/admin/what-config_doubler.php @@ -32,16 +32,15 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) -{ +if ((!defined('__SECURITY')) || (!is_admin())) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } + // Add description as navigation point ADD_DESCR("admin", basename(__FILE__)); -if (isset($_POST['ok'])) -{ +if (isset($_POST['ok'])) { // Replace commata with decimal dot $_POST['doubler_charge'] = str_replace(",", ".", ($_POST['doubler_charge'] / 100)); $_POST['doubler_ref'] = str_replace(",", ".", ($_POST['doubler_ref'] / 100)); @@ -51,9 +50,7 @@ if (isset($_POST['ok'])) // Save settings ADMIN_SAVE_SETTINGS($_POST); -} - else -{ +} else { // Prepare data for the template // - Charge rate define('__DOUBLER_CHARGE', TRANSLATE_COMMA(($_CONFIG['doubler_charge'] * 100), false)); @@ -127,7 +124,7 @@ if (isset($_POST['ok'])) } // Transfer options (!!!) to __MEMBER_SELECTION - ADD_MEMBER_SELECTION_BOX(false, true, true, $_CONFIG['doubler_uid']); + define('__MEMBER_SELECTION', ADD_MEMBER_SELECTION_BOX($_CONFIG['doubler_uid'], false, true, true, "doubler_uid")); // Number of rows to display (option lines!!!) define('__DOUBLER_DISPLAY_NEW', ADD_OPTION_LINES("/ARRAY/", array(5,10,20,30,40,50,100), array(5,10,20,30,40,50,100), $_CONFIG['doubler_display_new']));