public function gatherDetails()
{
// Get IP address
if (isset($_SERVER['REMOTE_ADDR'])) {
//FIXME: generates warning - array_shift wants variable
//$this->details['IP Address']=(isset($_SERVER["HTTP_X_FORWARDED_FOR"])
// ? array_shift(explode(',', $_SERVER["HTTP_X_FORWARDED_FOR"]))
// : $_SERVER["REMOTE_ADDR"]);
null;
}
if (isset($_SERVER['QUERY_STRING'])) {
$this->details['Query String'] = $_SERVER['QUERY_STRING'];
}
if (isset($_SERVER['REDIRECT_SCRIPT_URI'])) {
$this->details['Original Query'] = $_SERVER['REDIRECT_SCRIPT_URI'];
}
if (isset($_SERVER['HTTP_REFERER'])) {
$this->details['Referer'] = $_SERVER['HTTP_REFERER'];
}
if (isset($_SERVER['HTTP_USER_AGENT'])) {
$this->details['Version'] = $_SERVER['HTTP_USER_AGENT'];
}
if (isset($_SERVER['SERVER_PORT'])) {
$this->details['Port'] = $_SERVER['SERVER_PORT'];
}
}