fannie/src/footer_install.html
<?php
/* --COMMENTS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* 16Apr2013 Eric Lee Extracted from header.html for a "plain" page
* extending InstallPage which extends FanniePage
* that uses authentication, e.g. fannie/install pages.
*/
?>
<div style="margin-top:1.0em;">
<?php
if($FANNIE_AUTH_ENABLED){
if (!function_exists("checkLogin")) include(dirname(__FILE__) . '/../auth/login.php');
$name = checkLogin();
if (!$name){
echo "You are not logged in.";
echo " ";
echo "[<a href={$FANNIE_URL}auth/ui/loginform.php?redirect={$_SERVER['PHP_SELF']}>";
echo "Login</a>]";
}
else {
echo "You are logged in as <b>$name</b>.";
echo " ";
echo "[<a href={$FANNIE_URL}auth/ui/loginform.php?logout=yes>Logout</a>]";
}
}
?>
</div>