View file modules/kabinet/copybox_count.php

File size: 283B
  1. <?php
  2. $outbox_f_1 = @file($dob_url.'/data/copybox/'.$login.'.php');
  3.  
  4. if(!empty($outbox_f_1))
  5. {
  6. array_splice($outbox_f_1, 0, 2);
  7. array_splice($outbox_f_1, -2, 2);
  8. $outbox_count_1 = count($outbox_f_1);
  9. }
  10. else
  11. {
  12. $outbox_count_1 = 0;
  13. }
  14.  
  15. echo $outbox_count_1;
  16. ?>