Introduced new image output mode
authorRoland Häder <roland@mxchange.org>
Thu, 29 Sep 2011 00:29:58 +0000 (00:29 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 29 Sep 2011 00:29:58 +0000 (00:29 +0000)
beg.php
birthday_confirm.php
img.php
inc/wrapper-functions.php
mailid.php
mailid_top.php
network-vcheck.php

diff --git a/beg.php b/beg.php
index 20a109c180a9ae59cd108c2ee70442f4b152a022..83c0bb1e2a484281fd7d677194c85548ab479e88 100644 (file)
--- 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)
index d4383993db025e7e82079be907239661909b4848..364d7ca2360291ae251335b6c41ff3cb7e04ff1d 100644 (file)
@@ -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 c1e0d79421dcfa809e980645366ca1cee03cf236..ebe55cbecc8a58f68da7646144abfad6e9cb643d 100644 (file)
--- 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');
index f9ebb56b1177e7f68491d5bb84d5a1ef21e392d3..64ef91e97eab10b77805853a904dd609bf0d4715 100644 (file)
@@ -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
index 34de62d0eac3f6b48cb28841919d41de0447eb30..df684a7709718e62cd557057733cdbd0f022ba47 100644 (file)
@@ -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)
index 89ef3e956805425b72fb855214a44535158102a7..04aef4c0fddccc49b610aaa88dcf2073874d4504 100644 (file)
@@ -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');
index 73eefe703a9f4b2586fe20ad061ac2e54a6b1153..ce15b4427e652a1e47d14c6c6b0aa6db866eeba3 100644 (file)
@@ -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');