*
* @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
*
} // END - function
} // END - if
-// Getter for ctracker_debug
+// Getter for ctracker_debug_enabled
function isCrackerTrackerDebug () {
// Is it set?
- return ((isset($GLOBALS['ctracker_debug'])) && ($GLOBALS['ctracker_debug'] === true));
+ return ((isset($GLOBALS['ctracker_debug_enabled'])) && ($GLOBALS['ctracker_debug_enabled'] === true));
}
// Determines the real remote address
// Is the entry there?
if (isset($_SERVER['HTTP_USER_AGENT'])) {
- // Then use it
- $ua = $_SERVER['HTTP_USER_AGENT'];
+ // Then use it securely
+ $ua = crackerTrackerSecureString($_SERVER['HTTP_USER_AGENT']);
} // END - if
// Return it
}
/**
- * Send a HTTP redirect to the browser. This function wass taken from DokuWiki
+ * Send a HTTP redirect to the browser. This function was taken from DokuWiki
* (GNU GPL 2; http://www.dokuwiki.org) and modified to fit into this script.
*
- * ----------------------------------------------------------------------------
- * If you want to redirect, please use redirectToUrl(); instead
- * ----------------------------------------------------------------------------
- *
* Works arround Microsoft IIS cookie sending bug. Does exit the script.
*
* @link http://support.microsoft.com/kb/q176113/