/** * Пометка письма как обработанное */ function markAnsweredMessage() { $fName = File_Util::tmpFile(ANSWERED_DIR); $res = File::write($fName, $this->_message, FILE_MODE_WRITE); if (!PEAR::isError($res)) { imap_delete($this->_mailBox, $this->_messageNum); } }
/** * @deprecated Use File_Util::tmpFile() instead. */ function getTempFile($dirname = null) { require_once 'File/Util.php'; return File_Util::tmpFile($dirname); }
/** * Generate the temporary ssh_askpass script * * @param string $password The password to use for login. * * @return void */ protected function sshAskPass($password) { ($this->ssh_askpass_scripts =& File_Util::tmpFile()) . ""; $askpass_data = 'echo ' . $password . ' < /dev/null'; File::write($this->ssh_askpass_scripts, $askpass_data); File::closeAll(); chmod($this->ssh_askpass_scripts, 0700); }