Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
From e6a906b7ec753a388bf435f35b0a0b0fe82bc2b8 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 12 Sep 2010 14:30:08 -0400 Subject: [PATCH] Flesh out header.tpl some more, obsoleting the HomeEvent. --- events/home.php | 12 +++--------- templates/footer.tpl | 3 +++ templates/header.tpl | 28 ++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 9 deletions(-) create mode 100644 templates/footer.tpl create mode 100644 templates/header.tpl diff --git a/events/home.php b/events/home.php index 51b9296..08ac9a7 100644 --- a/events/home.php +++ b/events/home.php @@ -16,6 +16,8 @@ use phalanx\events\EventPump as EventPump; +require_once BUGDAR_ROOT . '/events/bug_list.php'; + // This is the default page that users get when they access Bugdar. class HomeEvent extends phalanx\events\Event { @@ -31,14 +33,6 @@ class HomeEvent extends phalanx\events\Event public function Fire() { - $user = Bugdar::$auth->IsLoggedIn(); - if ($user) - { - echo 'Hello, ' . $user->alias . ' <' . $user->email . ' >!'; - } - else - { - echo 'Welcome, guest! Do you want to register, or do you want to log in?'; - } + EventPump::Pump()->PostEvent(new BugListEvent()); } } diff --git a/templates/footer.tpl b/templates/footer.tpl new file mode 100644 index 0000000..a57a3db --- /dev/null +++ b/templates/footer.tpl @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/templates/header.tpl b/templates/header.tpl new file mode 100644 index 0000000..1a51327 --- /dev/null +++ b/templates/header.tpl @@ -0,0 +1,28 @@ + + + + + $[title] - Bugdar 2 Beta 1 + + + + + -- 1.7.11.3