SW/login/index.php

63 lines
1.3 KiB
PHP
Raw Normal View History

2021-04-26 22:40:34 +02:00
<?php
2021-04-30 22:23:26 +02:00
/**
* USUARIOS DE PRUEBAS:
* user | userpass
* fernando | ferpass
* manager | managerpass
* admin | adminpass
*/
2021-04-26 22:40:34 +02:00
//General Config File:
require_once('../assets/php/config.php');
//Change the view of the "Login page" to "Registration page":
require('login_register_view.php');
$view = new LoginRegisterView();
$isLogin = $view->getIsLogin();
$login = $view->getLogin();
$register = $view->getRegister();
?>
2021-05-10 18:15:58 +02:00
<!DOCTYPE HTML>
2021-04-26 22:40:34 +02:00
<!--
2021-05-03 21:58:47 +02:00
Práctica - Sistemas Web | Grupo D
2021-04-26 22:40:34 +02:00
CompluCine - FDI-cines
-->
<html lang="es">
<!-- Head -->
<?php
$template->print_head();
?>
<body>
<!-- Header -->
<?php
$template->print_header();
?>
<!-- Main -->
2021-04-30 22:23:26 +02:00
<?php
$template->print_main();
?>
2021-04-26 22:40:34 +02:00
<!-- Login / Register -->
<section id="login_register">
<div class ="row">
<?php
if($isLogin){
echo $login;
} else {
echo $register;
}
?>
</div>
</section>
<!-- Footer -->
<?php
$template->print_footer();
?>
</body>
</html>