  $_SERVER['SCRIPT_FILENAME']       .
   

define('USER_LOG', 'json');// 

define("DOCUMENT",' ');//  . !     ,     .

  system   user.php     

$aray = json_decode(file_get_contents(DOCUMENT.'/'.USER_LOG.'/online.json'),true);

  

if($aray['online'][0]['closse'] == 1 AND $user['access'] != 1 AND $user['access'] != 2){
exit("<!DOCTYPE html PUBLIC '-//WAPFORUM//DTD XHTML Mobile 1.0//EN' 'http://www.wapforum.org/DTD/xhtml-mobile10.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><meta http-equiv='content-type' content='text/html; charset=UTF-8'/><title>  !</title><link rel='shortcut icon' href='/favicon.ico'/><meta name='viewport' content='width=device-width, initial-scale=1.0'> <link rel='stylesheet' href='/style.css'/></head><body><div class='block' align='center'><img src='/profilaktika.png' alt=\'*\' width=100%/></br>    . <br>   5  30 !</br><a href='/' class = 'button'> </a>");
	
}

if($aray['online'][0]['closse'] == 2 AND $user['access'] != 2){
exit("<!DOCTYPE html PUBLIC '-//WAPFORUM//DTD XHTML Mobile 1.0//EN' 'http://www.wapforum.org/DTD/xhtml-mobile10.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><meta http-equiv='content-type' content='text/html; charset=UTF-8'/><title>  !</title><link rel='shortcut icon' href='/favicon.ico'/><meta name='viewport' content='width=device-width, initial-scale=1.0'> <link rel='stylesheet' href='/style.css'/></head><body><div class='block' align='center'><img src='/profilaktika.png' alt=\'*\' width=100%/></br>    . <br>   5  30 !</br><a href='/' class = 'button'> </a></div>");
	
}


  h.php   ,      .

  if($aray['online'][0]['closse'] >= 1 AND $user['access'] > 0){

echo '<div class="block" align="center"><font color="#FF0000">   </font></div>';

}



    

define('TIME_ONLINE', $aray['online'][0]['online_user']);//   .

 

$count = mysql_result(mysql_query('SELECT COUNT(*) FROM `users` WHERE `online` > "'.(time() - TIME_ONLINE).'"'),0);

     , .