BUG 0000 IIS compatibility

Adding WebConfig file to allow IIS to rewrite rules for ProcessMaker
and modify the PATH_SEP in sysgeneric

	new file:   workflow/public_html/Web.config
	modified:   workflow/public_html/sysGeneric.php
This commit is contained in:
Fernando Ontiveros
2011-08-01 11:08:14 -04:00
parent daf7ac09b1
commit e2a87fa410
2 changed files with 16 additions and 5 deletions

View File

@@ -35,13 +35,11 @@ $startingTime = array_sum(explode(' ',microtime()));
}
//******** defining the PATH_SEP constant, he we are defining if the the path separator symbol will be '\\' or '/' **************************
if ( PHP_OS == 'WINNT' && !strpos ( $_SERVER['DOCUMENT_ROOT'], '/' ) )
define('PATH_SEP','\\');
else
define('PATH_SEP', '/');
define('PATH_SEP', '/');
//***************** Defining the Home Directory *********************************
$docuroot = explode ( PATH_SEP , $_SERVER['DOCUMENT_ROOT'] );
$realdocuroot = str_replace('\\', '/', $_SERVER['DOCUMENT_ROOT']);
$docuroot = explode ( PATH_SEP , $realdocuroot );
array_pop($docuroot);
$pathhome = implode( PATH_SEP, $docuroot ) . PATH_SEP;