<%-- 
    Document   : footer
    Created on : Dec 30, 2012, 1:09:40 PM
    Author     : Sikiru
--%>

<%@page import="com.bramosystems.remotexplorer.common.catalog.DomainInfo"%>
<%@page import="com.bramosystems.remotexplorer.client.ConfigManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
    DomainInfo cfg = ((ConfigManager) application.getAttribute(ConfigManager.class.getName())).getRootHandler().getDomainInfo();
%>

<%-- footer --%>
<div class='footer'>
    Copyright &copy; 2009 - 2013 Bramosystem Technologies. Powered by RemoteXplorer 1.0
    <%--
        if (request.getAuthType() == null) {
    %>
    | <a href='<%= request.getContextPath()%>/~admin'>Admin Console</a>
    <%
    } else {
    %>
    | <a href='<%= request.getContextPath()%>/auth-logout'>Logout</a>
    <%
        }
    --%>
</div>
</div>
<%-- google tracker --%>
<%
    String gtid = cfg.getTrackerId();
    if ((gtid != null) && !gtid.isEmpty()) {
%>
<script type='text/javascript'>
    var gaJsHost = (('https:' == document.location.protocol) ? 'https://ssl.' : 'http://www.');
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script>
<script type="text/javascript">
    try {
        var pageTracker = _gat._getTracker("<%= gtid%>");
        pageTracker._trackPageview();
    } catch (err) {
    }
</script>
<%
    }
%>
</body>
</html>
