20 lines
340 B
PHP
20 lines
340 B
PHP
<?php
|
|
session_start();
|
|
|
|
if (!isset($_SESSION['usuario'])) {
|
|
header('Location: index.html');
|
|
exit();
|
|
}
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Pagina protegida</title>
|
|
</head>
|
|
<body>
|
|
<h1>Test</h1>
|
|
</body>
|
|
</html>
|