Add files via upload
This commit is contained in:
parent
0d394cf2f6
commit
1aa3d0d77a
@ -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);
|
||||
?>
|
@ -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";
|
||||
}
|
||||
?>
|
||||
<!--
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user