View file www/onl/sp_onl.php

File size: 919B
<?php

          // проверка пользователей
         $dire = opendir ($cms.'onl/user/');
          while ($filee = readdir ($dire))
         { if (( $filee != ".") && ($filee != ".."))
          {
           if (ceil(time()/60)-trim(file_get_contents($cms.'onl/user/'.$filee)) > 3)
           {

          	 f_refr($cms.'onl/on_user.txt',-1);
			 @unlink($cms.'onl/user/'.$filee);
           }
          }
         }
          closedir ($dire);

         // проверка гостей
         $dire = opendir ($cms.'onl/quest/');
          while ($filee = readdir ($dire))
         { if (( $filee != ".") && ($filee != ".."))
          {
           if (ceil(time()/60)-trim(file_get_contents($cms.'onl/quest/'.$filee)) > 3)
           {

          	 f_refr($cms.'onl/on_quest.txt',-1);
			 @unlink($cms.'onl/quest/'.$filee);
           }
          }
         }
          closedir ($dire);




?>