X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=network-vcheck.php;h=e18e81a16bcf7248f8ff912be0fb35be1d9cc3ae;hb=15e0995f7a4a4b2c9b1b1a9273f785cf13605829;hp=73eefe703a9f4b2586fe20ad061ac2e54a6b1153;hpb=90660845a4159b98d65a1c1049ddf68fb8ddd613;p=mailer.git diff --git a/network-vcheck.php b/network-vcheck.php index 73eefe703a..e18e81a16b 100644 --- a/network-vcheck.php +++ b/network-vcheck.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -39,15 +39,18 @@ require('inc/libs/security_functions.php'); // Init start time -$GLOBALS['startTime'] = microtime(true); +$GLOBALS['__start_time'] = microtime(TRUE); -// Set module -$GLOBALS['__module'] = 'network-vcheck'; -$GLOBALS['output_mode'] = -1; +// Set module and output mode (raw) +$GLOBALS['__module'] = 'network-vcheck'; +$GLOBALS['__output_mode'] = -1; // Load the required file(s) require('inc/config-global.php'); +// Set HTTP status to 500 (if ext-network is not found, but this script is called) +setHttpStatus('500 Internal Server Error'); + // Set content type setContentType('text/plain'); @@ -55,7 +58,7 @@ setContentType('text/plain'); loadIncludeOnce('inc/header.php'); // Is the required extension installed? -if (isExtensionInstalled('network')) { +if ((isExtensionInstalled('network')) && (countRequestGet() > 0)) { // It is installed, so handle the request handleNetworkPaymentCheckRequest(); } // END - if