X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/0a253cede072778391c1359f146ef56c60f40364..5a4f52d0094da591bf45a1fa98e4115f965cb5cb:/src/lib/pagina.php diff --git a/src/lib/pagina.php b/src/lib/pagina.php index 1fbb194..22ba7f4 100644 --- a/src/lib/pagina.php +++ b/src/lib/pagina.php @@ -16,6 +16,7 @@ session_start(); function pagina_cabecera($titulo = '') { + header('Content-type: text/html; charset=ISO-8859-1'); ?> @@ -53,4 +54,13 @@ function ok($msg) printf('
%s
', $msg); } +function pagina_check_login() +{ + if (!@$_SESSION['user']) + { + include 'admin.login.php'; + exit; + } +} + ?> \ No newline at end of file