X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=www%2Findex.php;h=84f87171fd94fbe46cb39f273796ad72cf4d8c01;hb=bb7d5af591a4fbb9963afc46fa992f742a2d3355;hp=c75a15765557b337bb369f0819bd9985d9535aae;hpb=6fdbfe32798452ec1c0fdbda57edabb892518409;p=readifood.git 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");