| @@ 1332-1337 (lines=6) @@ | ||
| 1329 | $res = false; |
|
| 1330 | ||
| 1331 | if ($local = $this->getTempFile($path)) { |
|
| 1332 | if (@file_put_contents($local, $content, LOCK_EX) !== false |
|
| 1333 | && ($fp = @fopen($local, 'rb'))) { |
|
| 1334 | clearstatcache(); |
|
| 1335 | $res = $this->_save($fp, $path, '', array()); |
|
| 1336 | @fclose($fp); |
|
| 1337 | } |
|
| 1338 | file_exists($local) && @unlink($local); |
|
| 1339 | } |
|
| 1340 | ||
| @@ 1057-1062 (lines=6) @@ | ||
| 1054 | if ($this->tmp) { |
|
| 1055 | $local = $this->getTempFile(); |
|
| 1056 | ||
| 1057 | if (@file_put_contents($local, $content, LOCK_EX) !== false |
|
| 1058 | && ($fp = @fopen($local, 'rb'))) { |
|
| 1059 | clearstatcache(); |
|
| 1060 | $res = ftp_fput($this->connect, $path, $fp, $this->ftpMode($path)); |
|
| 1061 | @fclose($fp); |
|
| 1062 | } |
|
| 1063 | file_exists($local) && @unlink($local); |
|
| 1064 | } |
|
| 1065 | ||