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']); }