aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/common.inc.php
blob: 506134d9c0602d69e0ba378ec64e5263198b4f56 (plain)
1
2
3
4
5
6
7
8
9
10
<?php

require_once 'config.php';

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

if (!ini_get('date.timezone')) {
	date_default_timezone_set($CONFIG['default_timezone']);
}