From 2fdba22f86629ea35c39bac34ba7936122d70b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= Date: Tue, 3 Apr 2012 14:20:58 +0300 Subject: [PATCH] libident: reformat remote address, add server address --- trash/libident-php/whoami.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/trash/libident-php/whoami.php b/trash/libident-php/whoami.php index 72dc8c1f0..34997e08e 100644 --- a/trash/libident-php/whoami.php +++ b/trash/libident-php/whoami.php @@ -2,8 +2,14 @@ header("Content-Type: text/plain; charset=utf-8"); $i = array( - "remote host" => $_SERVER["REMOTE_ADDR"], - "remote port" => intval($_SERVER["REMOTE_PORT"]), + "server" => array( + "host" => $_SERVER["SERVER_ADDR"], + "port" => intval($_SERVER["SERVER_PORT"]), + ), + "remote" => array( + "host" => $_SERVER["REMOTE_ADDR"], + "port" => intval($_SERVER["REMOTE_PORT"]), + ), ); if (@include "libident.php") {