aboutsummaryrefslogtreecommitdiff
blob: 3e8f6fbd7406b0aabac38695e359b090204236f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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
DB::connect(DBHOST,DBUSER,DBPASS,DBNAME);  // open persistent connection to db
if (!empty($protect)) {
    require_once('admin_init.php');
}