aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/common.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'conf/common.inc.php')
-rw-r--r--conf/common.inc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/conf/common.inc.php b/conf/common.inc.php
new file mode 100644
index 0000000..c4884d6
--- /dev/null
+++ b/conf/common.inc.php
@@ -0,0 +1,8 @@
1<?php
2
3require_once 'config.php';
4
5$CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']);
6$CONFIG['weburl'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']);
7
8?>