summaryrefslogtreecommitdiff
path: root/web/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/index.php')
-rw-r--r--web/index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/index.php b/web/index.php
index 7852e25..aabfcbd 100644
--- a/web/index.php
+++ b/web/index.php
@@ -4,7 +4,7 @@ require_once( "../include/Namespace.inc" );
require_once( "../include/Template.inc" );
require_once("../include/Tools.inc");
-$namespace = new Namespace(
+$name_space = new Name_space(
array( have_database => 0,
have_session => 0,
have_user => 0
@@ -15,13 +15,13 @@ $namespace = new Namespace(
$data = array();
$data['remotehostname'] = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$data['remoteip'] = $_SERVER['REMOTE_ADDR'];
-$data['user'] = $namespace->session->data['user']['username'];
+$data['user'] = $name_space->session->data['user']['username'];
$data['have_ssl'] = $_SERVER['SSL_PROTOCOL'] ? 1 : 0;
-$template = new Template('index.html', $namespace->config->template_path);
+$template = new Template('index.html', $name_space->config->template_path);
$template->parse($data);
print $template->output();
-$namespace->stop();
+$name_space->stop();
# vim:ts=4:
# vim:shiftwidth=4: