Extension 'yoomedia' now alpha status, some rewrites
[mailer.git] / inc / modules / admin / what-config_beg.php
index 5342beb5ad4a77e051c4c70c38f1ae8d4573f7a5..6745c0ce95f943a0137b30b0dfabb528b42fe7f6 100644 (file)
  ************************************************************************/
 
 // 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));