#!/usr/bin/perl


use strict;
use warnings;


print "Content-type: text/javascript\n\n";
print 'var currentOnLoad = window.onload; window.onload = function() { if(\'function\' === typeof currentOnLoad) { currentOnLoad(); } document.getElementById(\'loggedInUser\').innerHTML = \''.$ENV{'REMOTE_USER'}.' (Host: '.(exists($ENV{'HTTP_X_FORWARDED_FOR'}) ? $ENV{'HTTP_X_FORWARDED_FOR'} : $ENV{'REMOTE_ADDR'}).")'; };\n";


exit;
