From: Roland Häder Date: Thu, 29 Sep 2011 00:29:58 +0000 (+0000) Subject: Introduced new image output mode X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=0bf269e4e23914d73991dda245948d651ab2c2d9 Introduced new image output mode --- diff --git a/beg.php b/beg.php index 20a109c180..83c0bb1e2a 100644 --- a/beg.php +++ b/beg.php @@ -43,7 +43,7 @@ $GLOBALS['startTime'] = microtime(true); // Set module $GLOBALS['__module'] = 'beg'; -$GLOBALS['output_mode'] = -1; +$GLOBALS['output_mode'] = '0'; $errorCode = NULL; // Load the required file(s) diff --git a/birthday_confirm.php b/birthday_confirm.php index d4383993db..364d7ca236 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -43,7 +43,7 @@ $GLOBALS['startTime'] = microtime(true); // Set module $GLOBALS['__module'] = 'birthday_confirm'; -$GLOBALS['output_mode'] = -1; +$GLOBALS['output_mode'] = '0'; // Load the required file(s) require('inc/config-global.php'); diff --git a/img.php b/img.php index c1e0d79421..ebe55cbecc 100644 --- a/img.php +++ b/img.php @@ -43,7 +43,7 @@ $GLOBALS['startTime'] = microtime(true); // Set module $GLOBALS['__module'] = 'img'; -$GLOBALS['output_mode'] = -1; +$GLOBALS['output_mode'] = -3; // Load the required file(s) require('inc/config-global.php'); diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index f9ebb56b11..64ef91e97e 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -2572,6 +2572,12 @@ function isAjaxOutputMode () { return (getScriptOutputMode() == -2); } +// Wrapper to check if output mode is image +function isImageOutputMode () { + // Determine it + return (getScriptOutputMode() == -3); +} + // Wrapper to generate a user email link function generateWrappedUserEmailLink ($email) { // Just call the inner function diff --git a/mailid.php b/mailid.php index 34de62d0ea..df684a7709 100644 --- a/mailid.php +++ b/mailid.php @@ -43,7 +43,7 @@ $GLOBALS['startTime'] = microtime(true); // Tell everyone we are in this module $GLOBALS['__module'] = 'mailid'; -$GLOBALS['output_mode'] = -1; +$GLOBALS['output_mode'] = '0'; $errorCode = ''; // Load the required file(s) diff --git a/mailid_top.php b/mailid_top.php index 89ef3e9568..04aef4c0fd 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -45,7 +45,7 @@ $GLOBALS['startTime'] = microtime(true); // Tell everyone we are in this module $GLOBALS['__module'] = 'mailid'; -$GLOBALS['output_mode'] = -1; +$GLOBALS['output_mode'] = '0'; // Load the required file(s) require('inc/config-global.php'); diff --git a/network-vcheck.php b/network-vcheck.php index 73eefe703a..ce15b4427e 100644 --- a/network-vcheck.php +++ b/network-vcheck.php @@ -43,7 +43,7 @@ $GLOBALS['startTime'] = microtime(true); // Set module $GLOBALS['__module'] = 'network-vcheck'; -$GLOBALS['output_mode'] = -1; +$GLOBALS['output_mode'] = '0'; // Load the required file(s) require('inc/config-global.php');