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