also prevent it in .htacces. You may want to add this to one of your files in /etc...
[mailer.git] / network-vcheck.php
index 73eefe703a9f4b2586fe20ad061ac2e54a6b1153..a21f50ea99b6e72319a266767a0bfc74d4a7f3a2 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : VCheck Script fuer Erweiterung ext-network       *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 require('inc/libs/security_functions.php');
 
 // Init start time
-$GLOBALS['startTime'] = microtime(true);
+$GLOBALS['__start_time'] = microtime(TRUE);
+
+// Set module and output mode (raw)
+$GLOBALS['__module']      = 'network-vcheck';
+$GLOBALS['__output_mode'] = -1;
 
-// Set module
-$GLOBALS['__module'] = 'network-vcheck';
-$GLOBALS['output_mode'] = -1;
+// Initialize application
+require('inc/init.php');
 
-// 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');
 
 // Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Is the required extension installed?
-if (isExtensionInstalled('network')) {
+if ((isExtensionInstalled('network')) && (countRequestGet() > 0)) {
        // It is installed, so handle the request
        handleNetworkPaymentCheckRequest();
 } // END - if
 
 // Load footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>