X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/65ff665f7659cabf90c6a1ec36fa70ec8e9e03ae..7efc4c45c53ccd8e0e39755403f94cfd7869a05c:/src/lib/pagina.php?ds=sidebyside diff --git a/src/lib/pagina.php b/src/lib/pagina.php index e43f1e8..22ba7f4 100644 --- a/src/lib/pagina.php +++ b/src/lib/pagina.php @@ -54,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