-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
985801c
commit b7eb69a
Showing
53 changed files
with
327 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,13 @@ composer database | |
composer start | ||
``` | ||
|
||
## Test Login | ||
|
||
```note | ||
email: [email protected] | ||
password: AnyPass1000 | ||
``` | ||
|
||
## :page_facing_up: LICENCIA | ||
|
||
Licencia MIT. Puedes verla en el [Archivo de Licencia](LICENSE.md) para más información. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
require __DIR__ . '/../src/App/App.php'; | ||
|
||
if (!isset($_SESSION)) { | ||
session_start(); | ||
} | ||
|
||
$_SESSION = array(); | ||
if (ini_get("session.use_cookies")) { | ||
$params = session_get_cookie_params(); | ||
setcookie( | ||
session_name(), | ||
'', | ||
time() - 60 * 60, | ||
$params["path"], | ||
$params["domain"], | ||
$params["secure"], | ||
$params["httponly"] | ||
); | ||
} | ||
unset($_SESSION['user']); | ||
session_destroy(); | ||
header('Location: /'); | ||
die(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require __DIR__ . '/../src/App/App.php'; | ||
|
||
?> | ||
|
||
<?php require_once __DIR__ . '/partials/head.php'; ?> | ||
|
||
<body> | ||
<div> | ||
<?php require_once __DIR__ . '/partials/nav.php'; ?> | ||
</div> | ||
|
||
<h1>Notas</h1> | ||
|
||
<div> | ||
<?php require_once __DIR__ . '/partials/footer.php'; ?> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<nav> | ||
<?php if (isset($_SESSION['user'])) { ?> | ||
<ul> | ||
<li><a href="/">Inicio</a></li> | ||
<li><a href="/perfil">Perfil</a></li> | ||
<li><a href="/usuarios">Usuarios</a></li> | ||
<li><a href="/notas">Notas</a></li> | ||
<li><a href="/tareas">Tareas</a></li> | ||
<li><a href="/logout">Cerrar Sesión</a></li> | ||
</ul> | ||
<?php } else { ?> | ||
<ul> | ||
<li><a href="/">Inicio</a></li> | ||
</ul> | ||
<?php } ?> | ||
</nav> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require __DIR__ . '/../src/App/App.php'; | ||
|
||
?> | ||
|
||
<?php require_once __DIR__ . '/partials/head.php'; ?> | ||
|
||
<body> | ||
<div> | ||
<?php require_once __DIR__ . '/partials/nav.php'; ?> | ||
</div> | ||
|
||
<h1>Perfil</h1> | ||
|
||
<div> | ||
<?php require_once __DIR__ . '/partials/footer.php'; ?> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require __DIR__ . '/../src/App/App.php'; | ||
|
||
?> | ||
|
||
<?php require_once __DIR__ . '/partials/head.php'; ?> | ||
|
||
<body> | ||
<div> | ||
<?php require_once __DIR__ . '/partials/nav.php'; ?> | ||
</div> | ||
|
||
<h1>Tareas</h1> | ||
|
||
<div> | ||
<?php require_once __DIR__ . '/partials/footer.php'; ?> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require __DIR__ . '/../src/App/App.php'; | ||
|
||
?> | ||
|
||
<?php require_once __DIR__ . '/partials/head.php'; ?> | ||
|
||
<body> | ||
<div> | ||
<?php require_once __DIR__ . '/partials/nav.php'; ?> | ||
</div> | ||
|
||
<h1>Usuarios</h1> | ||
|
||
<div> | ||
<?php require_once __DIR__ . '/partials/footer.php'; ?> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.