]> git.mxchange.org Git - mailer.git/blobdiff - mailid.php
Functions imported, some dev-scripts added
[mailer.git] / mailid.php
index e6002741710f8754ef42212b11f27a81534d473b..91801e67bc13efe975da48acdcce4a9f51626955 100644 (file)
@@ -45,11 +45,8 @@ $GLOBALS['module'] = "mailid"; $CSS = -1;
 require("inc/config.php");
 
 if (isBooleanConstantAndTrue('mxchange_installed')) {
-       // Is the extension active
-       if (!EXT_IS_ACTIVE("mailid", true)) {
-               // Is not activated/installed yet!
-               LOAD_URL("modules.php?module=index&msg=".constant('CODE_EXTENSION_PROBLEM')."&ext=mailid");
-       } // END - if
+       // Is the extension active?
+       REDIRECT_ON_UNINSTALLED_EXTENSION("mailid");
 
        // Init
        $url_uid = 0; $url_bid = 0; $url_mid = 0;
@@ -94,10 +91,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
 
                        case "BONUS":
                                // Is the bonus extension active?
-                               if (!EXT_IS_ACTIVE("bonus")) {
-                                       // Abort here
-                                       LOAD_URL("modules.php?module=index&msg=".constant('CODE_EXTENSION_PROBLEM')."&ext=mailid");
-                               } // END - if
+                               REDIRECT_ON_UNINSTALLED_EXTENSION("bonus");
 
                                // Bonus-Mails
                                $result = SQL_QUERY_ESC("SELECT id, url, subject FROM `{!_MYSQL_PREFIX!}_bonus` WHERE id=%s LIMIT 1",