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

13
workflow/public_html/Web.config Executable file
View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ProcessMaker Rule" stopProcessing="true">
<match url="^.*/(.*)$" ignoreCase="true" />
<action type="Rewrite" url="sysGeneric.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

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;