<?php
//v1.0.4 www.bcoos.net 2006/10 GPL
// www.bcoos.net 2006-09 1.0.2 GPL
// $Id: system_login.php,v 1.6 2003/03/19 07:04:15 half-dead Exp $
// ------------------------------------------------------------------------- //
//               E-Xoops: Content Management for the Masses                  //
//                       < http://www.e-xoops.com >                          //
// ------------------------------------------------------------------------- //
// Original Author: Kazumi Ono
// Author Website : http://www.mywebaddons.com/ , http://www.myweb.ne.jp
// License Type   : GPL: See /manual/LICENSES/GPL.txt
// ------------------------------------------------------------------------- //
//---------------------------------------------------------------------------------------//
/**
* Description
*
* @param type $var description
* @return type description
*/
function b_system_login_show() {
global $xoopsUser, $bcoosConfig, $_COOKIE;
if (!$xoopsUser) {
	$block             = array();
	$block['title']    = _MB_SYSTEM_LOGIN;
	$block['content']  = "<form action='".XOOPS_URL."/user.php' method='post'>";
	$block['content'] .= _MB_SYSTEM_NICK."<br />";
	$block['content'] .= "<input type='text' class='text' name='uname' size='12' maxlength='25'";
	if ( isset($_COOKIE[$bcoosConfig['cookie_name']]) && empty($bcoosConfig['cache_time']) ) {
		$block['content'] .= " value='".$_COOKIE[$bcoosConfig['cookie_name']]."'";
	}
	$block['content'] .= " /><br />";
	$block['content'] .= _MB_SYSTEM_PASS."<br />";
	$block['content'] .= "<input type='password' class='text' name='pass' size='12' maxlength='20' /><br />";
	$block['content'] .= "<input type='hidden' name='op' value='login' /><br />";
	$block['content'] .= "<input type='submit' class='button' value='"._MB_SYSTEM_LOGIN."' /></form></p>";
	$block['content'] .= "<a href='".XOOPS_URL."/user.php#lost'>"._MB_SYSTEM_LPASS."</a><br /><br />";
	$block['content'] .= _MB_SYSTEM_DHAAY."<br />";
	$block['content'] .= " <a href='".XOOPS_URL."/register.php'>"._MB_SYSTEM_RNOW."</a>";
	return $block;
}
return FALSE;
}
//---------------------------------------------------------------------------------------//
?>
