X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mailid.php;h=fcb310d01b8b4b8c744f3a8be48a575fab4d3f6c;hb=51749c437cc998e7bbc1e53506397de5ce17f5ef;hp=d530bb2a3b839450f3dae768a6aa55562f21a99d;hpb=9cb3095b94feae69d53a847696c017ebda809212;p=mailer.git diff --git a/mailid.php b/mailid.php index d530bb2a3b..fcb310d01b 100644 --- a/mailid.php +++ b/mailid.php @@ -44,7 +44,7 @@ $GLOBALS['module'] = "mailid"; $CSS = -1; // Load the required file(s) require ("inc/config.php"); -if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) +if (isBooleanConstantAndTrue('mxchange_installed')) { // Is the extension active if (!EXT_IS_ACTIVE("mailid", true)) { @@ -111,8 +111,13 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install if (SQL_NUMROWS($result) == 1) { // Load data list($pool, $URL, $EXTRA_TITLE) = SQL_FETCHROW($result); + + // Free result SQL_FREERESULT($result); + // Compile extra title + $EXTRA_TITLE = COMPILE_CODE($EXTRA_TITLE); + // Is the user's ID unlocked? $result = SQL_QUERY_ESC("SELECT status, gender, surname, family FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", array($url_uid), __FILE__, __LINE__); @@ -206,6 +211,10 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install case "REJECT": // Redirect to rejection page LOAD_URL($_CONFIG['reject_url']); break; + + default: + LOAD_URL("modules.php?module=index&msg=".CODE_UNKNOWN_STATUS."&ext=mailid"); + break; } } else { // Include footer