Improvement in the processes importation
This commit is contained in:
@@ -2096,7 +2096,7 @@ class Processes
|
||||
}
|
||||
}
|
||||
#@!neyek
|
||||
|
||||
|
||||
/**
|
||||
* Get Object Permission Rows from a Process
|
||||
*
|
||||
@@ -3162,13 +3162,13 @@ class Processes
|
||||
if ($sIdentifier == 'MAILTEMPL') {
|
||||
$sIdentifier = 1;
|
||||
while (! feof( $fp ) && is_numeric( $sIdentifier )) {
|
||||
$sIdentifier = fread( $fp, 9 ); //reading the size of $filename
|
||||
$sIdentifier = fread( $fp, 9 ); //reading the size of $filename
|
||||
if (is_numeric( $sIdentifier )) {
|
||||
$fsFileName = intval( $sIdentifier ); //reading the size of $filename
|
||||
if ($fsFileName > 0) {
|
||||
$sFileName = fread( $fp, $fsFileName ); //reading filename string
|
||||
}
|
||||
$fsContent = function_exists( 'mb_strlen' ) ? mb_strlen( fread( $fp, 9 ) ) : strlen( fread( $fp, 9 ) ); //reading the size of $Content
|
||||
$fsContent = intval( fread ( $fp, 9)) or 0; //reading the size of $Content
|
||||
if ($fsContent > 0) {
|
||||
$fileContent = fread( $fp, $fsContent ); //reading string $XmlContent
|
||||
$newFileName = $pathMailTem . $sFileName;
|
||||
@@ -3190,7 +3190,7 @@ class Processes
|
||||
if ($fsFileName > 0) {
|
||||
$sFileName = fread( $fp, $fsFileName ); //reading filename string
|
||||
}
|
||||
$fsContent = function_exists( 'mb_strlen' ) ? mb_strlen( fread( $fp, 9 ) ) : strlen( fread( $fp, 9 ) ); //reading the size of $Content
|
||||
$fsContent = intval( fread ( $fp, 9)) or 0; //reading the size of $Content
|
||||
if ($fsContent > 0) {
|
||||
$fileContent = fread( $fp, $fsContent ); //reading string $XmlContent
|
||||
$newFileName = $pathPublic . $sFileName;
|
||||
|
||||
Reference in New Issue
Block a user