CORE-POS/IS4C

View on GitHub
fannie/src/footer.html

Summary

Maintainability
Test Coverage
            </div>
        <span style="font-size:6px"><br></span>
        </div>
    </td>
</tr>
<tr>
    <td colspan="2" style="border-top-width:1px;border-top-style: solid;margin-top:10px;
        padding-top:5px;background:#fff;" class="secondaryBorder">
        <div style="float:right;"> 
            <!--Copyleft &#0169; 2009, <a href="http://www.designslife.com" style="font-size:12px;color:AAAAAA">designslife</a>. All Rights Reserved.-->
        </div>
        <div style="float:left; margin-right: 50px;">
<?php
if(isset($FANNIE_AUTH_ENABLED) && $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>]";
    }
}
$version_file = dirname(__FILE__) . '/../../VERSION';
if (file_exists($version_file) && is_readable($version_file)) {
    $version = file_get_contents($version_file);
    echo '<div id="fannieVersion">Current version: ' . $version . '</div>';
}
?>
<a href="<?php echo $FANNIE_URL; ?>admin/SiteMap.php">Site Map</a>
        </div>
    </td>
</tr>
</table>
</div>