aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-01-29 16:07:33 -0500
committerBrian Evans <grknight@gentoo.org>2018-01-29 16:07:33 -0500
commitb167721d5746c0d1791febbb213da0a0aed21aa2 (patch)
treee1c1c0af4b8d937f22b533b6edf0d1eeaf0083e4 /php/cfg/admin_init.php
parentImport existing bouncer.g.o into git (diff)
downloadbouncer-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.php5
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;
}
-?>
+