diff options
author | Derek Jones <derek.jones@ellislab.com> | 2010-03-03 01:16:23 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2010-03-03 01:16:23 +0100 |
commit | 079303e4240ac6661f21d56bc22001c3963ab599 (patch) | |
tree | f77987cd4a0f3a83de3429240c6c6f1f5939d2e8 /system/libraries | |
parent | 811f47544ed7a8baf64205ce6efd06dc54a20a08 (diff) |
adding HTTP_X_FORWARDED_FOR header to Profiler
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Profiler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php index ebadf8610..bf20f1722 100644 --- a/system/libraries/Profiler.php +++ b/system/libraries/Profiler.php @@ -380,7 +380,7 @@ class CI_Profiler { $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0' width='100%'>\n"; - foreach(array('HTTP_ACCEPT', 'HTTP_USER_AGENT', 'HTTP_CONNECTION', 'SERVER_PORT', 'SERVER_NAME', 'REMOTE_ADDR', 'SERVER_SOFTWARE', 'HTTP_ACCEPT_LANGUAGE', 'SCRIPT_NAME', 'REQUEST_METHOD',' HTTP_HOST', 'REMOTE_HOST', 'CONTENT_TYPE', 'SERVER_PROTOCOL', 'QUERY_STRING', 'HTTP_ACCEPT_ENCODING') as $header) + foreach(array('HTTP_ACCEPT', 'HTTP_USER_AGENT', 'HTTP_CONNECTION', 'SERVER_PORT', 'SERVER_NAME', 'REMOTE_ADDR', 'SERVER_SOFTWARE', 'HTTP_ACCEPT_LANGUAGE', 'SCRIPT_NAME', 'REQUEST_METHOD',' HTTP_HOST', 'REMOTE_HOST', 'CONTENT_TYPE', 'SERVER_PROTOCOL', 'QUERY_STRING', 'HTTP_ACCEPT_ENCODING', 'HTTP_X_FORWARDED_FOR') as $header) { $val = (isset($_SERVER[$header])) ? $_SERVER[$header] : ''; $output .= "<tr><td valign='top' style='color:#900;background-color:#ddd;'>".$header." </td><td style='color:#000;background-color:#ddd;'>".$val."</td></tr>\n"; |