From 0bf269e4e23914d73991dda245948d651ab2c2d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 29 Sep 2011 00:29:58 +0000 Subject: [PATCH] Introduced new image output mode --- beg.php | 2 +- birthday_confirm.php | 2 +- img.php | 2 +- inc/wrapper-functions.php | 6 ++++++ mailid.php | 2 +- mailid_top.php | 2 +- network-vcheck.php | 2 +- 7 files changed, 12 insertions(+), 6 deletions(-) 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'); -- 2.39.5