summaryrefslogtreecommitdiffstats
path: root/run.php
diff options
context:
space:
mode:
Diffstat (limited to 'run.php')
-rw-r--r--run.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/run.php b/run.php
new file mode 100644
index 0000000..319f6e3
--- /dev/null
+++ b/run.php
@@ -0,0 +1,14 @@
+<?php
+
+use Icinga\Module\Incubator\Styles;
+
+// We extend Less files shipped per default
+if (isset($_SERVER['REQUEST_URI'])
+ && preg_match('#/css/icinga(?:\.min)?\.css#', $_SERVER['REQUEST_URI'])
+ && ! class_exists(__NAMESPACE__ . '\\Styles')) {
+ require __DIR__ . '/extendStyles.php';
+ $styles = new Styles();
+ return;
+}
+
+require_once __DIR__ . '/vendor/autoload.php';