@@ 189-202 (lines=14) @@ | ||
186 | */ |
|
187 | public static function executeProgram($strProgramname, $strArgs, &$strBuffer, $booErrorRep = true) |
|
188 | { |
|
189 | if (defined('PSI_LOG') && is_string(PSI_LOG) && (strlen(PSI_LOG)>0) && ((substr(PSI_LOG, 0, 1)=="-") || (substr(PSI_LOG, 0, 1)=="+"))) { |
|
190 | $out = self::_parse_log_file("Executing: ".trim($strProgramname.' '.$strArgs)); |
|
191 | if ($out == false) { |
|
192 | if (substr(PSI_LOG, 0, 1)=="-") { |
|
193 | $strBuffer = ''; |
|
194 | ||
195 | return false; |
|
196 | } |
|
197 | } else { |
|
198 | $strBuffer = $out; |
|
199 | ||
200 | return true; |
|
201 | } |
|
202 | } |
|
203 | ||
204 | $strBuffer = ''; |
|
205 | $strError = ''; |
|
@@ 285-298 (lines=14) @@ | ||
282 | */ |
|
283 | public static function rfts($strFileName, &$strRet, $intLines = 0, $intBytes = 4096, $booErrorRep = true) |
|
284 | { |
|
285 | if (defined('PSI_LOG') && is_string(PSI_LOG) && (strlen(PSI_LOG)>0) && ((substr(PSI_LOG, 0, 1)=="-") || (substr(PSI_LOG, 0, 1)=="+"))) { |
|
286 | $out = self::_parse_log_file("Reading: ".$strFileName); |
|
287 | if ($out == false) { |
|
288 | if (substr(PSI_LOG, 0, 1)=="-") { |
|
289 | $strRet = ''; |
|
290 | ||
291 | return false; |
|
292 | } |
|
293 | } else { |
|
294 | $strRet = $out; |
|
295 | ||
296 | return true; |
|
297 | } |
|
298 | } |
|
299 | ||
300 | $strFile = ""; |
|
301 | $intCurLine = 1; |