Add files via upload

This commit is contained in:
Fernando Méndez
2021-05-03 16:38:53 +02:00
committed by GitHub
parent 1aa3d0d77a
commit 4c3fccca92
3 changed files with 11 additions and 4 deletions

View File

@ -1,4 +1,6 @@
<?php
require_once('../assets/php/common/user_dto.php');
class UserPanel {
//Atributes:
@ -9,8 +11,12 @@
//Welcome view.
static function panel(){
$name = strtoupper($_SESSION['nombre']);
$email = unserialize($_SESSION['user'])->getEmail();
return $reply = '<div class="code info">
<h1>Bienvenido al Panel de Usuario.</h1><hr />
<h1>Bienvenido '.$name.' al Panel de Usuario.</h1><hr />
<p>Usuario: '.$name.'</p>
<p>Email: '.$email.'</p>
</div>'."\n";
}