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) {
echo "$charity $module
\n";
include_once(join(DIRECTORY_SEPARATOR, array($lib_root, "$module.php")));
}
#else include_once(join(DIRECTORY_SEPARATOR, array($lib_root, "menu.php")));
}
include_once(join(DIRECTORY_SEPARATOR, array($lib_root, "footer.php")));
?>