]> git.mxchange.org Git - ctracker.git/blobdiff - ctracker.php
Added MySQL internal-use-only function
[ctracker.git] / ctracker.php
index 568e6a882bfe6eef6bdfd800431c2349deb60976..62adbd1a9b8c6b259c6d2cbaad223723019744cf 100644 (file)
@@ -1,12 +1,13 @@
 <?php
 /**
- * Cracker Tracker Protection System - Enhanced Edition
+ * Cracker Tracker Protection System - Extended Edition
  * Initially created by Christian Knerr - www.cback.de
- * Enhanced by: Roland Haeder - www.ship-simu.org
+ *
+ * Extended by: Roland Haeder - www.ship-simu.org
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            3.0.0
- * @copyright  Copyright (c) 2009, 2010 Cracker Tracker Team
+ * @copyright  Copyright (c) 2009 - 2011 Cracker Tracker Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
+// XDEBUG call
+//* DEBUG: */ xdebug_start_trace();
+
 // Include files
-include('config/db_config.php');
-include('libs/lib_general.php');
-include('libs/lib_detector.php');
-include('libs/lib_connect.php');
-include('libs/lib_updates.php');
+require('config/db_config.php');
+require('libs/lib_general.php');
+require('libs/lib_detector.php');
+require('libs/lib_connect.php');
+require('libs/lib_updates.php');
 
 // Init
 initCrackerTrackerArrays();
@@ -47,13 +51,13 @@ crackerTrackerUpdateDatabaseScheme();
 // If it differs to original and the *whole* request string is not in whitelist
 // then block the attempt
 if (isCrackerTrackerWormDetected()) {
-       // Send the email, this must be the last line because it contains a die()
+       // Send the email, this must be the last line in this if() block because it contains a exit()
        sendCrackerTrackerMail();
 } // END - if
 
 // Suspicious POST data detected?
 if (isCrackerTrackerPostAttackDetected()) {
-       // Send the email, this must be the last line because it contains a die()
+       // Send the email, this must be the last line in this if() block because it contains a exit()
        sendCrackerTrackerPostMail();
 } // END - if