<?php
/**
 * pragmaMx  Content Management System
 * Copyright (c) 2005 pragmaMx Dev Team - http://pragmaMx.org
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * $Source: /home/www/dps3311/home/cvsroot/pragmamx/html/blocks/block-Login.php,v $
 * $Revision: 1.3.4.3 $
 * $Author: tora60 $
 * $Date: 2006/10/23 08:52:01 $
 */

if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");

global $JPCACHE_ON;

$mxblockcache = false;

$content = "";

if (!MX_IS_USER && MX_MODULE != "Your_Account") {
    if ($JPCACHE_ON) {
        $content .= '
		<div style="text-indent: -8px; margin-left: 8px;">
		<strong><big>&middot;</big></strong>&nbsp;<a href="modules.php?name=Your_Account">' . _GUSERLOGIN . '</a>
		</div>
		<div style="text-indent: -8px; margin-left: 8px;">
		<strong><big>&middot;</big></strong>&nbsp;<a href="modules.php?name=Your_Account&amp;op=pass_lost">' . _GPASSWORDLOST . '</a>
		</div>
		<div style="text-indent: -8px; margin-left: 8px;">
		<strong><big>&middot;</big></strong>&nbsp;<a href="modules.php?name=User_Registration">' . _GREGNEWUSER . '</a>
		</div>';
    } else {
        $content .= '
		<form action="modules.php" method="post">
		' . _NICKNAME . ':<br>
		<input type="text" name="uname" size="15" maxlength="25" style="width: 80%;"><br>
		' . _PASSWORD . ':<br>
		<input type="password" name="pass" size="15" maxlength="20" style="width: 80%;"><br>
		' . mxGetUserLoginCheckField() . '
		<input type="hidden" name="op" value="login">
		<input type="submit" value="' . _LOGIN . '"></form>
        <br>
		<div style="text-indent: -8px; margin-left: 8px;">
		<strong><big>&middot;</big></strong>&nbsp;<a href="modules.php?name=Your_Account&amp;op=pass_lost">' . _GPASSWORDLOST . '</a>
		</div>
		<div style="text-indent: -8px; margin-left: 8px;">
		<strong><big>&middot;</big></strong>&nbsp;<a href="modules.php?name=User_Registration">' . _GREGNEWUSER . '</a>
		</div>'; 
        if (!defined("mxloginblockviewed")) {
            define("mxloginblockviewed", true);
        } 
    } 
} 

$blockfiletitle = _LOGIN;

?>