<?php
header("Content-Type: text/plain; charset=utf-8"); ?>
<?php
$text = 'В российском сегменте';
$circleRadius = $len / 2.5;
$txt = preg_split("//u", $text, null, PREG_SPLIT_NO_EMPTY
);
for ($i = 0; $i <= $len * 4; $i++) {
for ($k = 0; $k <= $len * 4; $k++) {
$screen[$i][$k] = ' ';
}
}
$corner = round(360 / $len, 2); $c = $corner;
$i = 0;
foreach ($txt as $letter) {
$x = (round(cos($c * M_PI
/ 180) * $circleRadius) + $circleRadius) * 2.4; $y = round(sin($c * M_PI
/ 180) * $circleRadius) + $circleRadius;
$screen[$y][$x] = $letter;
$c += $corner;
}
foreach ($screen as $v) {
}
PD9waHAKaGVhZGVyKCJDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9dXRmLTgiKTsKPz4gCjw/cGhwCgplcnJvcl9yZXBvcnRpbmcoLTEpOwptYl9pbnRlcm5hbF9lbmNvZGluZygndXRmLTgnKTsKJHRleHQgPSAn0JIg0YDQvtGB0YHQuNC50YHQutC+0Lwg0YHQtdCz0LzQtdC90YLQtSc7CgoKCiRsZW4gICAgICAgICAgPSBtYl9zdHJsZW4oJHRleHQpOwokY2lyY2xlUmFkaXVzID0gJGxlbiAvIDIuNTsKJHR4dCAgICAgICAgICA9IHByZWdfc3BsaXQoIi8vdSIsICR0ZXh0LCBudWxsLCBQUkVHX1NQTElUX05PX0VNUFRZKTsKCgokc2NyZWVuID0gYXJyYXkoKTsKZm9yICgkaSA9IDA7ICRpIDw9ICRsZW4gKiA0OyAkaSsrKSB7CiAgICBmb3IgKCRrID0gMDsgJGsgPD0gJGxlbiAqIDQ7ICRrKyspIHsKICAgICAgICAkc2NyZWVuWyRpXVska10gPSAnICc7CiAgICB9CiAgICAKfQoKJGNvcm5lcnMgPSBhcnJheSgpOwokY29ybmVyICA9IHJvdW5kKDM2MCAvICRsZW4sIDIpOwokYyAgICAgICA9ICRjb3JuZXI7CgoKJGkgPSAwOwpmb3JlYWNoICgkdHh0IGFzICRsZX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