View file modules/admin/count.php

File size: 1.33Kb
<?php
$adm_log = file($dob_url.'/data/adm_log.php');
array_splice($adm_log, 0, 2);
array_splice($adm_log, -2, 2);
$adm_log_kol = count($adm_log);//счетчик лог действий

$antimat = file($dob_url.'/data/antimat.txt');
$antimat_kol = count($antimat);//счетчик антиспама и антимата

$ban = file($dob_url.'/data/ban.txt');
$ban_kol = count($ban);//счетчик банов IP

$time = date ("YmdHis", time() + ($sdvigclock*3600));

$users_f = file('../../data/banned.php');
  array_splice($users_f, 0, 2);
  array_splice($users_f, -2, 2);

$users_count = count($users_f);
for($ii = 0; $ii <= $users_count; $ii++)
   {
    $user_n = explode('|', $users_f[$ii]);
if($user_n['2'] > $time)
	 {
	  $users_arr[] = $users_f[$ii];
	 }
   }
  $users_f = $users_arr;
  $banned_kol = count($users_f);//счетчик забаненных

$ref = file($dob_url.'/data/log_stat.txt');
$ref_kol = count($ref);//счетчик лог посещений

$story = file('../../data/banned.php');
  array_splice($story, 0, 2);
  array_splice($story, -2, 2);
$story_kol = count($story);//счетчик истории банов

$users_f = file('../../data/complaints/msg.php');
  array_splice($users_f, 0, 2);
  array_splice($users_f, -2, 2);
$msg_kol = count($users_f);//счетчик жалоб в почте
?>