aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'php/cfg/init.php')
-rw-r--r--php/cfg/init.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/php/cfg/init.php b/php/cfg/init.php
new file mode 100644
index 0000000..4eb6ed0
--- /dev/null
+++ b/php/cfg/init.php
@@ -0,0 +1,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');
+}
+?>