From e90135c8b78c87685fc4de865fcb59d1e84bcda2 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 13 May 2013 04:39:05 -0400 Subject: [PATCH] Print formatting for the main page. Show some headings on the main page only for hardcopies, making the printout more meaningful. --- www/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/index.php b/www/index.php index c75a157..84f8717 100644 --- a/www/index.php +++ b/www/index.php @@ -35,13 +35,18 @@ $q = new UserQuery; $user = $q->findOneByUsername($username); if (! $q->count()) { + echo "

$charity

\n"; echo "

Not logged in!

\n"; if ($_SERVER['REMOTE_USER']) echo "

User " . $_SERVER['REMOTE_USER'] . " needs an entry in the user table.

\n"; } else { $user_id = $user->getContactId(); $admin_level = $user->getAdmin(); - if ($module) include_once("$lib_root/$module.php"); + if ($module) { + echo "

$charity $module

\n"; + include_once("$lib_root/$module.php"); + } + #else include_once("$lib_root/menu.php"); } include_once("$lib_root/footer.php"); -- 2.7.4