Project

General

Profile

« Previous | Next » 

Revision 1980

Added by Dietmar about 11 years ago

! /framework/initialize.php::SetInstallPathConstants() setting of DOCUMENT_ROOT now compatible for windows installation
! /framework/functions.php::rebuild_all_accessfiles() Optimize rebuild access file coding

View differences:

initialize.php
80 80
		}
81 81
		if(!defined('ADMIN_REL')){ define('ADMIN_REL', WB_REL.'/'.ADMIN_DIRECTORY); }
82 82
		if(!defined('DOCUMENT_ROOT')) {
83
			
84
			define('DOCUMENT_ROOT', preg_replace('/'.preg_quote(WB_REL, '/').'$/', '', WB_PATH));
83
            define('DOCUMENT_ROOT', preg_replace('/'.preg_quote(str_replace('\\', '/', WB_REL), '/').'$/', '', str_replace('\\', '/', WB_PATH)));			
84
            // creating $_SERVER['DOCUMENT_ROOT'] for Windows IIS Server
85
            $_SERVER['DOCUMENT_ROOT'] = DOCUMENT_ROOT;
85 86
		}
86 87
		if(!defined('TMP_PATH')){ define('TMP_PATH', WB_PATH.'/temp'); }
87 88
	}

Also available in: Unified diff