se agrega comprobacion de login
Browse files- app/inc/header.php +7 -0
app/inc/header.php
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="es" data-bs-theme="dark">
|
| 3 |
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
if (!isset($_SESSION['usuario'])) {
|
| 3 |
+
header('Location: login.php');
|
| 4 |
+
exit();
|
| 5 |
+
}
|
| 6 |
+
?>
|
| 7 |
+
|
| 8 |
<!DOCTYPE html>
|
| 9 |
<html lang="es" data-bs-theme="dark">
|
| 10 |
|