102 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
103 |
//- Session setup: |
//- Session setup: |
104 |
|
|
105 |
if ($common['client']['session_enabled']) { |
if(!isset($common['client']['session_enabled'])) { |
106 |
|
|
107 |
// Neither proxies, nor the clients are allowed to cache session data: |
// Neither proxies, nor the clients are allowed to cache session data: |
108 |
session_cache_limiter('nocache'); |
session_cache_limiter('nocache'); |
329 |
|
|
330 |
//---------------------------------------------------------- |
//---------------------------------------------------------- |
331 |
//- Utility functions: |
//- Utility functions: |
332 |
|
|
333 |
function common_get_baseurl() { |
function common_get_baseurl() { |
334 |
$baseurl = "http://" . $_SERVER['SERVER_NAME'] . "" . $_SERVER['SCRIPT_NAME'] . "/"; |
|
335 |
return $baseurl; |
global $common; |
336 |
|
|
337 |
|
return $common['site']['url']; |
338 |
|
|
339 |
} |
} |
340 |
|
|
341 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |