blob: aabfcbd3725a06cd60f36167bd3aa8328d9fa8ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?
require_once( "../include/Namespace.inc" );
require_once( "../include/Template.inc" );
require_once("../include/Tools.inc");
$name_space = new Name_space(
array( have_database => 0,
have_session => 0,
have_user => 0
)
) 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'] = $name_space->session->data['user']['username'];
$data['have_ssl'] = $_SERVER['SSL_PROTOCOL'] ? 1 : 0;
$template = new Template('index.html', $name_space->config->template_path);
$template->parse($data);
print $template->output();
$name_space->stop();
# vim:ts=4:
# vim:shiftwidth=4:
?>
|