// Is the entry there?
if (isset($_SERVER['HTTP_USER_AGENT'])) {
// Then use it securely
- $ua = crackerTrackerSecureString($_SERVER['HTTP_USER_AGENT']);
+ $ua = crackerTrackerSecureString(urldecode($_SERVER['HTTP_USER_AGENT']));
} // END - if
// Return it
$referer = '-';
// Is it there?
- if (isset($_SERVER['HTTP_REFERER'])) {
+ if (!empty($_SERVER['HTTP_REFERER'])) {
// Then use it securely
$referer = crackerTrackerSecureString(urldecode($_SERVER['HTTP_REFERER']));
} // END - if
return $referer;
}
+// Detects request method
+function crackerTrackerRequestMethod () {
+ // Default is NULL
+ $method = NULL;
+
+ // Is it set?
+ if (!empty($_SERVER['REQUEST_METHOD'])) {
+ // Then use it
+ $method = $_SERVER['REQUEST_METHOD'];
+ } // END - if
+
+ // Return it
+ return $method;
+}
+
// Detects the scripts path
function crackerTrackerScriptPath () {
// Should always be there!
'ctracker_post_blacklist',
'ctracker_header',
'ctracker_post_track',
- 'ctracker_checkworm',
- 'ctracker_check_post',
+ 'ctracker_checked_get',
+ 'ctracker_checked_post',
+ 'ctracker_checked_ua',
'ctracker_last_sql',
'ctracker_last_result',
'ctracker_config',