]> git.mxchange.org Git - mailer.git/blobdiff - view.php
Migration of stelzi's commit 1022 with some changes so we have a nicer code. See...
[mailer.git] / view.php
index 100e3e7b0c2b058c729d3d9e199701834d239363..0834ed3adc514e1883bdc9e2a9a1d388e641475d 100644 (file)
--- a/view.php
+++ b/view.php
@@ -36,7 +36,7 @@
  * MA  02110-1301  USA                                                  *
  ************************************************************************/
 
-// Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) )
+// Load security stuff here
 require('inc/libs/security_functions.php');
 
 // Init "action" and "what"
@@ -48,7 +48,7 @@ $GLOBALS['module'] = 'view';
 $GLOBALS['output_mode'] = -1;
 
 // Load the required file(s)
-require('inc/config.php');
+require('inc/config-global.php');
 
 if (((REQUEST_ISSET_GET(('user'))) || (REQUEST_ISSET_GET(('reseller')))) && (REQUEST_ISSET_GET(('banner')))) {
        // for later things... ;-)
@@ -61,7 +61,7 @@ if (((REQUEST_ISSET_GET(('user'))) || (REQUEST_ISSET_GET(('reseller')))) && (REQ
                        array(bigintval(REQUEST_GET('banner'))), __FILE__, __LINE__);
 
                $type = substr($url, -3);
-               header ('Content-Type: image/' . $type);
+               sendHeader('Content-Type: image/' . $type);
                redirectToUrl($url, false);
        } else {
                // Free memory