X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_beg.php;h=6745c0ce95f943a0137b30b0dfabb528b42fe7f6;hb=2142149f3f72f1a2476f95a87937c044d63bbaf2;hp=5342beb5ad4a77e051c4c70c38f1ae8d4573f7a5;hpb=77ab806d6918fdb39858ae8b6d4a3be12dea334f;p=mailer.git diff --git a/inc/modules/admin/what-config_beg.php b/inc/modules/admin/what-config_beg.php index 5342beb5ad..6745c0ce95 100644 --- a/inc/modules/admin/what-config_beg.php +++ b/inc/modules/admin/what-config_beg.php @@ -32,16 +32,15 @@ ************************************************************************/ // Some security stuff... -if ((!defined('__SECURITY')) || (!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__)); +ADD_DESCR("admin", __FILE__); -if (isset($_POST['ok'])) -{ +if (isset($_POST['ok'])) { // Translate german decimal commas to computer decimal dots $_POST['beg_points'] = REVERT_COMMA($_POST['beg_points'] ); $_POST['beg_points_max'] = REVERT_COMMA($_POST['beg_points_max'] ); @@ -54,15 +53,7 @@ if (isset($_POST['ok'])) $_CONFIG['beg_rallye'] = $_POST['beg_rallye']; $_CONFIG['beg_ral_en_notify'] = $_POST['beg_ral_en_notify']; $_CONFIG['beg_ral_di_notify'] = $_POST['beg_ral_di_notify']; - - // Include sending out mails - if ((($_CONFIG['beg_rallye'] == "Y") && ($_CONFIG['beg_ral_en_notify'] == "Y")) || (($_CONFIG['beg_rallye'] == "N") && ($_CONFIG['beg_ral_di_notify'] == "Y"))) - { - include(PATH."inc/mails/beg_mails.php"); - } -} - else -{ +} else { // Prepare constants for the template define('__BEG_POINTS' , TRANSLATE_COMMA($_CONFIG['beg_points'] , false)); define('__BEG_POINTS_MAX' , TRANSLATE_COMMA($_CONFIG['beg_points_max'] , false));