diff options
author | Brian Evans <grknight@gentoo.org> | 2018-01-29 16:04:13 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-01-29 16:05:35 -0500 |
commit | 3c56284f7fe1926f6bf6ebd97ec72805d94df1e4 (patch) | |
tree | 805a3fb4cfb14519c0bebc3f1863f4759e916a82 /php/cfg/admin_init.php | |
download | bouncer-3c56284f7fe1926f6bf6ebd97ec72805d94df1e4.tar.gz bouncer-3c56284f7fe1926f6bf6ebd97ec72805d94df1e4.tar.bz2 bouncer-3c56284f7fe1926f6bf6ebd97ec72805d94df1e4.zip |
Import existing bouncer.g.o into gitv1.0-20181208-IMPORT
Diffstat (limited to 'php/cfg/admin_init.php')
-rw-r--r-- | php/cfg/admin_init.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/php/cfg/admin_init.php b/php/cfg/admin_init.php new file mode 100644 index 0000000..7d22ab3 --- /dev/null +++ b/php/cfg/admin_init.php @@ -0,0 +1,15 @@ +<?php +/** + * Admin initialization. + * @package mirror + * @subpackage cfg + */ +require_once(LIB.'/auth.php'); // auth functions +require_once(LIB.'/forms.php'); // form library +require_once(LIB.'/list.php'); // list library + +if (!auth_is_valid_session()) { + header('Location: http://'.$_SERVER['HTTP_HOST'].WEBPATH.'/admin/login.php'); + exit; +} +?> |