diff options
author | Brian Evans <grknight@gentoo.org> | 2018-01-29 16:07:33 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-01-29 16:07:33 -0500 |
commit | b167721d5746c0d1791febbb213da0a0aed21aa2 (patch) | |
tree | e1c1c0af4b8d937f22b533b6edf0d1eeaf0083e4 /php/cfg/admin_init.php | |
parent | Import existing bouncer.g.o into git (diff) | |
download | bouncer-b167721d5746c0d1791febbb213da0a0aed21aa2.tar.gz bouncer-b167721d5746c0d1791febbb213da0a0aed21aa2.tar.bz2 bouncer-b167721d5746c0d1791febbb213da0a0aed21aa2.zip |
Modernize the database and mirror libraries
Diffstat (limited to 'php/cfg/admin_init.php')
-rw-r--r-- | php/cfg/admin_init.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/php/cfg/admin_init.php b/php/cfg/admin_init.php index 7d22ab3..68f3063 100644 --- a/php/cfg/admin_init.php +++ b/php/cfg/admin_init.php @@ -6,10 +6,9 @@ */ 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()) { +if (!Auth::is_valid_session()) { header('Location: http://'.$_SERVER['HTTP_HOST'].WEBPATH.'/admin/login.php'); exit; } -?> + |