SW/login/validate.php

58 lines
1.3 KiB
PHP
Raw Normal View History

2021-03-25 09:40:38 +01:00
<?php
session_start();
2021-04-06 21:17:07 +02:00
//HTML template:
2021-03-25 09:40:38 +01:00
require_once('../assets/php/template.php');
$template = new Template();
2021-04-06 21:17:07 +02:00
//Login form validate:
require_once('./includes/formLogin.php');
$login = new FormLogin();
$login->processesForm($_POST["name"], $_POST["pass"]);
$reply = $login->getReply();
2021-03-25 09:40:38 +01:00
?>
<!DOCTYPE HTML>
<!--
Práctica 2 - Sistemas Web | Grupo D
CompluCine - FDI-cines
-->
<html lang="es">
<!-- Head -->
<?php
$template->print_head();
?>
<body>
<!-- Header -->
<?php
$template->print_header();
?>
<!-- Main -->
<div class="main">
<div class="image"><img src="../img/logo_trasparente.png" /></div>
</div>
<!-- Reply -->
<section class="reply">
<div class ="row">
<div class="column side"></div>
<div class="column middle">
<div class="code info">
<?php
echo $reply;
?>
</div>
</div>
<div class="column side"></div>
</div>
</section>
<!-- Footer -->
<?php
$template->print_footer();
?>
</body>
2021-04-06 21:17:34 +02:00
</html>