A new, object-oriented, better vesion of μForum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

54 lines
1.5 KiB

<?php require_once('./templates/overall_header.tpl.php'); ?>
<div id="content">
<script type="text/javascript" src="templates/scripts/chkcookie.js">
</script>
<script type="text/javascript">
create_cookie("checkcookie", "testvalue", 0);
</script>
<p id="js_msg" style="color: red; font-weight: bold">You must enable cookies if you want log in</p>
<?php if ($this->TPL['error_msg'] != '') { ?>
<div class="error_form">
<?php echo $this->TPL['error_msg']; ?>
</div>
<?php } ?>
<br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<div class="forum_table">
<div class="row">
<div class="hc1">Log in</div>
<div class="hc4">&nbsp;</div>
</div>
<div class="row">
<div class="tc1 lc">
Nick:
</div>
<div class="tc4 rc">
<input type="text" maxlength="30" name="nick" id="nick" value="<?php echo $this->TPL['nick']; ?>" required>
</div>
</div>
<div class="row">
<div class="tc1 lc">
Password:
</div>
<div class="tc4 rc">
<input type="password" name="passwd" id="passwd" value="" required>
</div>
</div>
<div class="row">
<div class="tc1 lc">
&nbsp;
</div>
<div class="tc4 rc">
<input type="submit" value="Log in">
</div>
</div>
</div></form>
</div>
<script type="text/javascript">
if (read_cookie("checkcookie") == "testvalue")
document.getElementById('js_msg').style.display = 'none';
erase_cookie("checkcookie");
</script>
<?php require_once('./templates/overall_footer.tpl.php'); ?>