Skip to content

Commit

Permalink
libident: reformat remote address, add server address
Browse files Browse the repository at this point in the history
  • Loading branch information
grawity committed Apr 3, 2012
1 parent fdc419a commit 2fdba22
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions trash/libident-php/whoami.php
Expand Up @@ -2,8 +2,14 @@
header("Content-Type: text/plain; charset=utf-8"); header("Content-Type: text/plain; charset=utf-8");


$i = array( $i = array(
"remote host" => $_SERVER["REMOTE_ADDR"], "server" => array(
"remote port" => intval($_SERVER["REMOTE_PORT"]), "host" => $_SERVER["SERVER_ADDR"],
"port" => intval($_SERVER["SERVER_PORT"]),
),
"remote" => array(
"host" => $_SERVER["REMOTE_ADDR"],
"port" => intval($_SERVER["REMOTE_PORT"]),
),
); );


if (@include "libident.php") { if (@include "libident.php") {
Expand Down

0 comments on commit 2fdba22

Please sign in to comment.