0) { $output .= "\015".$str[$i++]; $length--; $lp = 0; continue; } if ( ctype_cntrl($c) OR (ord($c) === 0x7f) OR (ord($c) & 0x80) OR ($c === '=') OR ($c === ' ' && isset($str[$i]) && $str[$i] === "\015") ) { if ( (($lp += 3) > 75 && ord($c) <= 0x7f) OR (ord($c) > 0x7f && ord($c) <= 0xdf && ($lp + 3) > 75) OR (ord($c) > 0xdf && ord($c) <= 0xef && ($lp + 6) > 75) OR (ord($c) > 0xef && ord($c) <= 0xf4 && ($lp + 9) > 75) ) { $output .= "=\015\012"; $lp = 3; } $output .= '='.$hex[ord($c) >> 4].$hex[ord($c) & 0xf]; continue; } if ((++$lp) > 75) { $output .= "=\015\012"; $lp = 1; } $output .= $c; } return $output; } } /* End of file standard.php */ /* Location: ./system/core/compat/standard.php */