<?php
// $Id: system_login.php,v 1.1 2004/07/11 10:29:03 Farsus Exp $
// -------------------------------------------------------------------------//
//			       RUNCMS                                                   //
//                                                                          //
//	 reliable - Unique - Nocost &  Simplicity & ease off use                //
//                       < http://www.runcms.org >                          //
// -------------------------------------------------------------------------//
// 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, $xoopsConfig, $HTTP_COOKIE_VARS;

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($HTTP_COOKIE_VARS[$xoopsConfig['cookie_name']]) && empty($xoopsConfig['cache_time']) ) {
		$block['content'] .= " value='".$HTTP_COOKIE_VARS[$xoopsConfig['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;
}

//---------------------------------------------------------------------------------------//
?>
