aboutsummaryrefslogtreecommitdiff
blob: 68f306396a9928049ed42f7195d42d38184cd3c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
/**
 *  Admin initialization.
 *  @package mirror
 *  @subpackage cfg
 */
require_once(LIB.'/auth.php');  // auth functions
require_once(LIB.'/forms.php'); // form library

if (!Auth::is_valid_session()) {
    header('Location: http://'.$_SERVER['HTTP_HOST'].WEBPATH.'/admin/login.php');
    exit;
}