<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div id="footer">
	<p>
		<span><a href="http://habariproject.org/" title="<?php _e('Go to the Habari site'); ?>">Habari
	<?php
	echo Version::get_habariversion();
	if ( Version::is_devel() ) {
		echo ' r' . Version::get_svn_revision();
	}
	?> </a></span>
	 <span class="middot">&middot;</span>
	 <span><?php _e('Logged in as'); ?></span>
	 <?php if ( User::identify()->can( 'manage_users' ) || User::identify()->can( 'manage_self' ) ) { ?>
			 <a href="<?php Site::out_url( 'admin' ); ?>/user" title="<?php _e('Go to your user page'); ?>"><?php echo User::identify()->displayname ?></a>
	<?php } else { ?>
			 <span><?php echo User::identify()->displayname ?></span>
	<?php } ?>
	 <span class="middot">&middot;</span>
	 <span><a href="<?php Site::out_url( 'habari' ); ?>/doc/manual/index.html" onclick="popUp(this.href); return false;" title="<?php _e('Open the Habari manual in a new window'); ?>"><?php _e('Manual'); ?></a></span>
	<?php
		if ( User::identify()->can('super_user') ) {
			?>
				<span class="middot">&middot;</span>
				<span><a href="<?php Site::out_url( 'admin' ); ?>/sysinfo" title="<?php _e('Display information about the server and Habari'); ?>"> <?php _e( 'System Information'); ?></a></span>
			<?php
		}
	?>

	</p>
</div>

<?php
	Plugins::act( 'admin_footer', $this );
	Stack::out( 'admin_footer_javascript', array('Stack', 'scripts') );
	include ('db_profiling.php');
?>

</div>

<?php if ( Session::has_messages() ): ?>
	<script type="text/javascript">
	jQuery(document).ready(function() {
		<?php Session::messages_out( true, array( 'Format', 'humane_messages' ) ); ?>
	})
  </script>
<?php endif; ?>

</body>
</html>
