View file modules/kabinet/copybox_count.php
<?php $outbox_f_1 = @file($dob_url.'/data/copybox/'.$login.'.php'); if(!empty($outbox_f_1)) { array_splice($outbox_f_1, 0, 2); array_splice($outbox_f_1, -2, 2); $outbox_count_1 = count($outbox_f_1); } else { $outbox_count_1 = 0; } echo $outbox_count_1; ?>