= 1.5 $config = new JConfig; $server->db_host = $config->host; $server->db_name = $config->db; $server->db_user = $config->user; $server->db_passwd = $config->password; $server->db_type = $config->dbtype; $server->db_prefix = $config->dbprefix.'_extwebdav_'; } elseif(!empty($mosConfig_absolute_path)) { // Joomla! 1.0 $server->db_host = $mosConfig_host; $server->db_name = $mosConfig_db; $server->db_user = $mosConfig_user; $server->db_passwd = $mosConfig_password; $server->db_type = 'mysql'; $server->db_prefix = $mosConfig_dbprefix.'_extwebdav_'; } else { header( 'HTTP/1.0 500 Internal Error'); echo 'Internal Error: Configuration File not found.'; exit; } } else { $server->db_host = $GLOBALS['DB_HOST']; $server->db_name = $GLOBALS['DB_NAME']; $server->db_user = $GLOBALS['DB_USER']; $server->db_passwd = $GLOBALS['DB_PASSWORD']; $server->db_type = $GLOBALS['DB_TYPE']; } # Real path of your site $server->ServeRequest($GLOBALS["home_dir"]); ?>