X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=show_bonus.php;h=a686d061f4bbd4f94e340cce266b02a32fcdb3ed;hb=f18a3b60125c8c65861e3205da40447b227f89c9;hp=2987ae3f11fa6ff0250d3f660491ae6e15e20037;hpb=84317e249885eb03a99f2946acf285ff27d506ac;p=mailer.git diff --git a/show_bonus.php b/show_bonus.php index 2987ae3f11..a686d061f4 100644 --- a/show_bonus.php +++ b/show_bonus.php @@ -47,10 +47,7 @@ $GLOBALS['module'] = "show_bonus"; $CSS = 0; 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.?)