X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=show_bonus.php;h=a686d061f4bbd4f94e340cce266b02a32fcdb3ed;hp=e614d11aab74198d4988b974003ff6776048a8da;hb=5416425ec8fa510a5addb246bdf7a6cd316a911f;hpb=c47144dd555bbab4acdf9085e4623900dedb0e7c
diff --git a/show_bonus.php b/show_bonus.php
index e614d11aab..a686d061f4 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;
@@ -44,13 +44,10 @@ $GLOBALS['action'] = "";
$GLOBALS['module'] = "show_bonus"; $CSS = 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.?)