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')) {
define('__BONUS_MSG', LOAD_TEMPLATE("show_bonus_msg", true));
} else {
// No data found
- define('__BONUS_MSG', "<span class=\"guest_failed\">".BONUS_SHOW_NO_DATA."</span>");
+ define('__BONUS_MSG', "<span class=\"guest_failed\">{--BONUS_SHOW_NO_DATA--}</span>");
}
// Free memory
SQL_FREERESULT($result);
} else {
// Wrong type entered
- define('__BONUS_MSG', "<span class=\"guest_failed\">".BONUS_SHOW_WRONG_TYPE."</span>");
+ define('__BONUS_MSG', "<span class=\"guest_failed\">{--BONUS_SHOW_WRONG_TYPE--}</span>");
}
} else {
// Wrong call!
- define('__BONUS_MSG', "<span class=\"guest_failed\">".BONUS_SHOW_WRONG_CALL."</span>");
+ define('__BONUS_MSG', "<span class=\"guest_failed\">{--BONUS_SHOW_WRONG_CALL--}</span>");
}
// Load send_bonus header template (for your banners, e.g.?)