Improvement in the processes importation

This commit is contained in:
Julio Cesar Laura
2013-01-02 15:20:07 -04:00
parent f073887b63
commit ace1c94593

View File

@@ -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;