Add files via upload

This commit is contained in:
Fernando Méndez 2021-05-03 15:18:17 +02:00 committed by GitHub
parent 0d394cf2f6
commit 1aa3d0d77a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 7 deletions

View File

@ -21,4 +21,9 @@
require_once('template.php');
$template = new Template();
$prefix = $template->get_prefix();
//Depuración (BORRAR):
//ini_set('display_errors', 1);
//ini_set('display_startup_errors', 1);
//error_reporting(E_ALL);
?>

View File

@ -21,20 +21,22 @@
$reply = UserPanel::delete();
break;
default:
$reply = '<div class="code info">
<h1>Bienvenido al Panel de Usuario.</h1><hr />
</div>'."\n";
$reply = UserPanel::panel();
break;
}
}
else{
$reply = '<div class="code info">
$reply = '<div class="column side"></div>
<div class="column middle">
<div class="code info">
<h1>Debes iniciar sesión para ver tu Panel de Usuario.</h1><hr />
<p>Inicia Sesión si estás registrado.</p>
<a href="'.$prefix.'login/"><button>Iniciar Sesión</button></a>
<p>Registrate si no lo habías hecho previamente.</p>
<form method="post" action="'.$prefix.'login/"><button name="register" id="register">Registro</button></form>
</div>'."\n";
</div>
</div>
<div class="column side"></div>'."\n";
}
?>
<!--

View File

@ -7,6 +7,13 @@
//Methods:
//Welcome view.
static function panel(){
return $reply = '<div class="code info">
<h1>Bienvenido al Panel de Usuario.</h1><hr />
</div>'."\n";
}
//Manage the user account.
static function manage(){
return $reply = '<div class="column side">