X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=show_bonus.php;h=eb0060fa43f69b5ea88df499cafd8bde730f0159;hp=e614d11aab74198d4988b974003ff6776048a8da;hb=5ae157f2010b3aae3c6f2ecdc6ec7c30b305be4a;hpb=c47144dd555bbab4acdf9085e4623900dedb0e7c diff --git a/show_bonus.php b/show_bonus.php index e614d11aab..eb0060fa43 100644 --- a/show_bonus.php +++ b/show_bonus.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime; @@ -41,16 +41,13 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; // Set this because we have no module in URI -$GLOBALS['module'] = "show_bonus"; $CSS = 0; +$GLOBALS['module'] = "show_bonus"; $GLOBALS['output_mode'] = 0; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the "bonus" extension active? -if (!EXT_IS_ACTIVE("bonus")) { - // Redirect to index - LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=bonus"); -} // END - if +REDIRECT_ON_UNINSTALLED_EXTENSION("bonus"); // List only rankings when script is installed if (isBooleanConstantAndTrue('mxchange_installed')) { @@ -106,18 +103,18 @@ LIMIT 1", define('__BONUS_MSG', LOAD_TEMPLATE("show_bonus_msg", true)); } else { // No data found - define('__BONUS_MSG', "".BONUS_SHOW_NO_DATA.""); + define('__BONUS_MSG', "{--BONUS_SHOW_NO_DATA--}"); } // Free memory SQL_FREERESULT($result); } else { // Wrong type entered - define('__BONUS_MSG', "".BONUS_SHOW_WRONG_TYPE.""); + define('__BONUS_MSG', "{--BONUS_SHOW_WRONG_TYPE--}"); } } else { // Wrong call! - define('__BONUS_MSG', "".BONUS_SHOW_WRONG_CALL.""); + define('__BONUS_MSG', "{--BONUS_SHOW_WRONG_CALL--}"); } // Load send_bonus header template (for your banners, e.g.?)