<? include ("../core.php5/Security/User.class.php"); #this line has to be the first one because of the session_start(); include("../core.php5/DB/ORM.class.php"); include("../core.php5/DB/DataBase.class.php"); ?> <?php include "../header_admin.php"; if ($_POST) { USER::Login($_POST['login'], $_POST['password'], "noticias.php"); } if (!isset($_SESSION['user'])) { ?> <div id="content"> <form method="post" id="form1" action="" > <table width="100%" align="center" > <tr><td> <table width="0%" align="center" > <tr> <td>Login</td> <td><input type="text" name="login" id="login" value="" /></td> </tr> <tr> <td>Password</td> <td><input type="password" name="password" id="password" value="" /></td> </tr> <tr> <td colspan="2"><input type="submit" name="enviar" value="Entrar" /></td> </tr> </table></td></tr></table> </form>