aboutsummaryrefslogtreecommitdiff
blob: 80f545fcf77ce9f5c61cd164263a1e5549880890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 *  Init.
 *  @package mirror
 *  @subpackage cfg
 */
require_once('config.php');  // config file that defines constants
require_once(LIB.'/util.php');  // util file for random functions (no SQL here)
require_once(LIB.'/csv.php');  // util file for random functions (no SQL here)
$start = microtime_float();  // start timer
require_once(LIB.'/mirror.php');  // user and admin functions for the mirror app (some SQL)
require_once(LIB.'/db.php');  // core mysql wrappers used in mirror functions
require_once(LIB.'/list.php');
DB::connect(DBHOST,DBUSER,DBPASS,DBNAME);  // open persistent connection to db
if (!empty($protect)) {
    require_once('admin_init.php');
}