From 5e95090defff64bc8cd7a318a73aa930948fb66d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 15 Nov 2004 09:20:11 +0000 Subject: Initial import --- web/index.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 web/index.php (limited to 'web/index.php') diff --git a/web/index.php b/web/index.php new file mode 100644 index 0000000..6c37e0b --- /dev/null +++ b/web/index.php @@ -0,0 +1,27 @@ + 1, + have_session => 1, + have_user => 1 ) +) or + die("Nobody loves me. I don't even have space for a name."); + +$data = array(); +$data['remotehostname'] = gethostbyaddr($_SERVER['REMOTE_ADDR']); +$data['remoteip'] = $_SERVER['REMOTE_ADDR']; +$data['user'] = $namespace->session->data['user']['username']; +$data['have_ssl'] = $_SERVER['SSL_PROTOCOL'] ? 1 : 0; +$template = new Template('index.html', $namespace->config->template_path); +$template->parse($data); +print $template->output(); + +$namespace->stop(); + +# vim:ts=4: +# vim:shiftwidth=4: +?> -- cgit v1.2.3