aboutsummaryrefslogtreecommitdiff
blob: 20c671e971ddad73024b9a05b7295087dd6dd641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 *  Init.
 *  @package mirror
 *  @subpackage cfg
 */
require_once('config.php');  // config file that defines constants
// Make it easier for variables
$_SERVER['HTTP_PROTO'] = $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
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');
}