Exemple #1
0
	<script type='text/javascript'>
		var last;
		function show ( element ){
			if ( last ) 
				document.getElementById(last).style.display='none';

			last = element;
			document.getElementById(element).style.display='block';
		}
	</script>
  </head>

  <body>
	<a href="index.php" id='logo'></a>
<?php 
if (!$manage->isUser()) {
    switch (@$_GET['act']) {
        case 's_register':
            ?>
      <h1>Registration</h1>
      <form class='orange' action='?act=register' method='POST'>
        <p>Username: <input name='username'></p>
        <p>Password: <input type='password' name='password'></p>
        <p>Mail:<input name='mail'></p>
        <input type='submit' value='Register'>
      </form>
<?php 
            break;
        case 'login':
            $manage->login(@$_POST['username'], @$_POST['password']);
            ?>