| 102 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
| 103 |
//- Session setup: |
//- Session setup: |
| 104 |
|
|
| 105 |
// Neither proxies, nor the clients are allowed to cache session data: |
if(!isset($common['client']['session_enabled'])) { |
|
session_cache_limiter('nocache'); |
|
| 106 |
|
|
| 107 |
// This is neccessary to make the $_SESSION global available: |
// Neither proxies, nor the clients are allowed to cache session data: |
| 108 |
session_start(); |
session_cache_limiter('nocache'); |
| 109 |
|
|
| 110 |
|
// This is neccessary to make the $_SESSION global available: |
| 111 |
|
session_start(); |
| 112 |
|
|
| 113 |
|
} |
| 114 |
|
|
| 115 |
common_benchmark_addstep('common: session init'); |
common_benchmark_addstep('common: session init'); |
| 116 |
|
|
| 327 |
//---------------------------------------------------------- |
//---------------------------------------------------------- |
| 328 |
//- File functions: |
//- File functions: |
| 329 |
|
|
| 330 |
|
//---------------------------------------------------------- |
| 331 |
|
//- Utility functions: |
| 332 |
|
|
| 333 |
|
function common_get_baseurl() { |
| 334 |
|
|
| 335 |
|
global $common; |
| 336 |
|
|
| 337 |
|
return $common['site']['url']; |
| 338 |
|
|
| 339 |
|
} |
| 340 |
|
|
| 341 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
| 342 |
|
|