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:
13
workflow/public_html/Web.config
Executable file
13
workflow/public_html/Web.config
Executable 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>
|
||||
@@ -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', '/');
|
||||
|
||||
//***************** 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user