changed the way the system admin is checked

This commit is contained in:
2010-02-05 13:28:57 +00:00
parent 00e1d5f401
commit c4c7f3a66d
26 changed files with 308 additions and 182 deletions

View File

@ -12,7 +12,8 @@
|
*/
/*$config['base_url'] = "http://example.com"*/
$config['base_url'] = "http://".$_SERVER['HTTP_HOST'];
$config['base_url'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')? 'https': 'http';
$config['base_url'] .= "://{$_SERVER['HTTP_HOST']}";
$config['base_url'] .= preg_replace('@/+$@','',dirname($_SERVER['SCRIPT_NAME'])).'/';
/*