summaryrefslogtreecommitdiffstats
path: root/app/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/app.php')
-rw-r--r--app/app.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/app.php b/app/app.php
new file mode 100644
index 0000000..cd24c51
--- /dev/null
+++ b/app/app.php
@@ -0,0 +1,17 @@
+<?php
+
+//Debug ?
+$debug = isset($_GET['debug']) ? $_GET['debug'] : 0;
+if ($debug) {
+ error_reporting(E_ALL);
+} else {
+ error_reporting(0);
+}
+
+include_once(dirname(__FILE__).'/classes/Planet.class.php');
+
+if (is_file(dirname(__FILE__).'/../custom/config.yml')){
+ $conf = Spyc::YAMLLoad(dirname(__FILE__).'/../custom/config.yml');
+ $PlanetConfig = new PlanetConfig($conf);
+ $Planet = new Planet($PlanetConfig);
+}