Location: PHPKode > projects > Enigma > Enigma2/Enigma2_Install/Themes/Enigma/portal/blocks/Block_status.template.php
<?php

if (!defined('ENIGMA'))
	die('<b>Access Violation</b><br />Direct Access to this location is not allowed.');

// Show current status of the admins
function template_Block_status()
{
	global $context, $txt, $scripturl;

	if (!empty($context['admins']) && is_array($context['admins']))
	{
	     foreach ($context['admins'] AS $admins)
			echo '
	<b>', $admins['realName'], '</b> - ', $admins['astatus'], '<br />';
	
		echo '<br />';
	}

	if (allowedTo('admin_forum'))
	{
		echo '
	<div align="center">
		<form name="status" action="', $scripturl, '?block=Block_status;func=change_status" method="post">', $txt['adminstatus'], '<br />
		<input type="text" name="status" /><br />
		<input type="submit" name="submit" value="', $txt['changestatus'], '" />
		<input type="hidden" name="loc" value="', $context['status_return'], '" /></form>
	</div>';
	}

}
?>
Return current item: Enigma