require('inc/libs/security_functions.php');
// Init start time
-$GLOBALS['__start_time'] = microtime(true);
+$GLOBALS['__start_time'] = microtime(TRUE);
// Set module and output mode (raw)
$GLOBALS['__module'] = 'network-vcheck';
// 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');
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