--- nfo/site/htdocs/inc/common/common.php.inc 2004/09/03 22:44:57 1.8 +++ nfo/site/htdocs/inc/common/common.php.inc 2004/09/04 01:07:29 1.9 @@ -4,7 +4,7 @@ --- Setup and common functions include file. -------------------------------------------------------------------------------- --- rabit, 04:31 24.08.2004 ---- $Id: common.php.inc,v 1.8 2004/09/03 22:44:57 joko Exp $ +--- $Id: common.php.inc,v 1.9 2004/09/04 01:07:29 rabit Exp $ ------------------------------------------------------------------------------*/ //------------------------------------------------------------------------------ @@ -102,7 +102,7 @@ //------------------------------------------------------------------------------ //- Session setup: -if ($common['client']['session_enabled']) { +if(!isset($common['client']['session_enabled'])) { // Neither proxies, nor the clients are allowed to cache session data: session_cache_limiter('nocache'); @@ -329,9 +329,13 @@ //---------------------------------------------------------- //- Utility functions: + function common_get_baseurl() { - $baseurl = "http://" . $_SERVER['SERVER_NAME'] . "" . $_SERVER['SCRIPT_NAME'] . "/"; - return $baseurl; + +global $common; + + return $common['site']['url']; + } //------------------------------------------------------------------------------