X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/1481a58e991e9ed54d6cba23e82184eaca48f9fe..5a4f52d0094da591bf45a1fa98e4115f965cb5cb:/src/lib/pagina.php?ds=sidebyside diff --git a/src/lib/pagina.php b/src/lib/pagina.php index 946ca87..22ba7f4 100644 --- a/src/lib/pagina.php +++ b/src/lib/pagina.php @@ -8,8 +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'); ?> @@ -37,4 +44,23 @@ function pagina_pie($autor, $mail) %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