X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;ds=inline;f=www%2Findex.php;h=84f87171fd94fbe46cb39f273796ad72cf4d8c01;hb=4aa19b269d7630781d67a924c0b91a0965fa4862;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 "
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 "