### WARNING: THIS FILE IS AUTO-GENERATED BY ./todo-builder.sh ###
### DO NOT EDIT THIS FILE. ###
-./libs/lib_detector.php:124: // @TODO Misc/unsorted
-./libs/lib_general.php:407: // @TODO Why can't domain be set to value from crackerTrackerServerName() ?
+./libs/lib_detector.php:160: // @TODO Misc/unsorted
+./libs/lib_general.php:488: // @TODO Why can't domain be set to value from crackerTrackerServerName() ?
### ### DEPRECATION FOLLOWS: ### ###
// Redirects to the same URL
function crackerTrackerRedirectSameUrl () {
- // Construct the url
- $url = '://' . crackerTrackerServerName() . crackerTrackerScriptName() . '?' . crackerTrackerQueryString();
-
- // Do we have SSL?
- if (crackerTrackerSecured()) {
- // HTTPS
- $url = 'https' . $url;
- } else {
- // HTTP
- $url = 'http' . $url;
- }
-
- // And redirect
- crackerTrackerSendRawRedirect($url);
+ // Construct and redirect to same URL
+ crackerTrackerSendRawRedirect(sprintf('%s://%s%s?%s',
+ (crackerTrackerSecured() ? 'https' : 'http'),
+ crackerTrackerServerName(),
+ crackerTrackerScriptName(),
+ crackerTrackerQueryString()
+ ));
}
/**
*
* @link http://support.microsoft.com/kb/q176113/
* @author Andreas Gohr <andi@splitbrain.org>
- * @access private
*/
function crackerTrackerSendRawRedirect ($url) {
// Better remove any data by ctracker