X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/f344e46f1369396bcef5170cbc3960d467338f55..3eb3afc220c0dfafe0f06657373009228fd92a9f:/src/lib/pagina.php diff --git a/src/lib/pagina.php b/src/lib/pagina.php index fbfa8ca..22ba7f4 100644 --- a/src/lib/pagina.php +++ b/src/lib/pagina.php @@ -8,11 +8,15 @@ // // $Id$ +require_once 'lib/Usuario.php'; + // Arranca la sesiĆ³n session_start(); +//TODO - verificar si existe el id y reconstruirlo function pagina_cabecera($titulo = '') { + header('Content-type: text/html; charset=ISO-8859-1'); ?> @@ -45,4 +49,18 @@ function error($msg) printf('
%s
', $msg); } +function ok($msg) +{ + printf('%s
', $msg); +} + +function pagina_check_login() +{ + if (!@$_SESSION['user']) + { + include 'admin.login.php'; + exit; + } +} + ?> \ No newline at end of file