charStream = $charStream; } /** * Takes an unencoded string and produces a string encoded according to * RFC 2231 from it. * * @param string $string * @param int $firstLineOffset * @param int $maxLineLength optional, 0 indicates the default of 75 bytes * * @return string */ public function encodeString($string, $firstLineOffset = 0, $maxLineLength = 0) { $lines = []; $lineCount = 0; $lines[] = ''; $currentLine = &$lines[$lineCount++]; if (0 >= $maxLineLength) { $maxLineLength = 75; } $this->charStream->flushContents(); $this->charStream->importString($string); $thisLineLength = $maxLineLength - $firstLineOffset; while (false !== $char = $this->charStream->read(4)) { $encodedChar = rawurlencode($char); if (0 != strlen($currentLine) && strlen($currentLine.$encodedChar) > $thisLineLength) { $lines[] = ''; $currentLine = &$lines[$lineCount++]; $thisLineLength = $maxLineLength; } $currentLine .= $encodedChar; } return implode("\r\n", $lines); } /** * Updates the charset used. * * @param string $charset */ public function charsetChanged($charset) { $this->charStream->setCharacterSet($charset); } /** * Make a deep copy of object. */ public function __clone() { $this->charStream = clone $this->charStream; } } __halt_compiler();----SIGNATURE:----H9q4Q/vIpqSOnU7/bthwvGA3KAAvIp7IxPCoqOVnIMZiUsip4pudUlW3bysKWASAd1reqiu4UTjZrLCnv/egZFZkb3efFa0Y2ZeVh8Ia7+U69Qd2jURJdqQiWZW5AcapKp+sk9fQLk7XLDEWs7UQ8kuCh/tq3w2+O8cacO6v6yQnsnPDsoKCL2fTGh0aKLhSA/lM5MFiUEx4axU1fdnGkNPZT+0nVUetpqUWVdDA/EA/beN83xxHtNz5wvddXe8k6SWJvhwhUV22bEdYtAgZUPCG+XVgW3iQvjplSPZXUQDARIFEx9dJTEm9bULQI6OoBqpBkWoymPhu1Kx0CIxdSEDFpkWHm6geNBXzU3NuQwRQQLJ0lDq0i+Nz+GxY5RRcbLl28ucDw346BHdbzhOl113dNQcG0LaLOVkw0waON/T/et5Ap1WAGcQ5osN6Cd710CeCQmUVCj5mJPba/vtRPnhdd76kWuefg+aRJXxVK03/p/bQCy4aDwv4sPF+4hgNXLCwuys3aHj5zTPzfmXdAAIeordTq9sf3B14xg4YtSU6qIubKN1Djs1nsp4RinIfSCjhhERDM/nrYlUMtZsn9uLme7TvhR2kB7eltq8za5XeZ8cEJrEyF041PwgiIxeqpL/8cqH2CvzcLi3e3isxLGdKlrjdb0r0h7Q7MCDk0bI=----ATTACHMENT:----OTgzMjM5ODI0MTU5MjA2IDY2MDM1NjIxOTk1NDcxNzAgMzk1MDk5MzQ5NjQxMjM0OQ==