Indentation
This commit is contained in:
parent
be1b8483c5
commit
161ea28556
@ -115,21 +115,21 @@ class CMailFile
|
|||||||
// This is not in all PHP versions so I define one here manuall.
|
// This is not in all PHP versions so I define one here manuall.
|
||||||
function my_chunk_split($str)
|
function my_chunk_split($str)
|
||||||
{
|
{
|
||||||
$stmp = $str;
|
$stmp = $str;
|
||||||
$len = strlen($stmp);
|
$len = strlen($stmp);
|
||||||
$out = "";
|
$out = "";
|
||||||
while ($len > 0) {
|
while ($len > 0) {
|
||||||
if ($len >= 76) {
|
if ($len >= 76) {
|
||||||
$out = $out . substr($stmp, 0, 76) . "\r\n";
|
$out = $out . substr($stmp, 0, 76) . "\r\n";
|
||||||
$stmp = substr($stmp, 76);
|
$stmp = substr($stmp, 76);
|
||||||
$len = $len - 76;
|
$len = $len - 76;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$out = $out . $stmp . "\r\n";
|
$out = $out . $stmp . "\r\n";
|
||||||
$stmp = ""; $len = 0;
|
$stmp = ""; $len = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
// end script
|
// end script
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user