aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/common.inc.php
blob: 165c73fe20ac362fd484a94bb9d47d0737861057 (plain)
1
2
3
4
5
6
<?php

require_once 'config.php';

$CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']);
$CONFIG['weburl'] = preg_replace('/(?<=\/)[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']);