More queries and language constants rewritten
[mailer.git] / show_bonus.php
index 12629fb9d981d3c53565ef6f4ea9aae5544a9f62..a686d061f4bbd4f94e340cce266b02a32fcdb3ed 100644 (file)
@@ -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=".constant('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', "<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.?)