CORE-POS/IS4C

View on GitHub
fannie/src/footer_install.html

Summary

Maintainability
Test Coverage
<?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 "&nbsp;&nbsp;&nbsp;&nbsp;";
        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 "&nbsp;&nbsp;&nbsp;&nbsp;";
        echo "[<a href={$FANNIE_URL}auth/ui/loginform.php?logout=yes>Logout</a>]";
    }
}
?>
</div>