From: Iain Patterson Date: Mon, 13 May 2013 08:39:05 +0000 (-0400) Subject: Print formatting for the main page. X-Git-Tag: 2013-05-13~18 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=e90135c8b78c87685fc4de865fcb59d1e84bcda2;p=readifood.git Print formatting for the main page. Show some headings on the main page only for hardcopies, making the printout more meaningful. --- 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");