<?php /* itv, vclub, karaoke */ include "../common.php"; include "../lib/func.php"; echo get_cur_active_playing_type($argv[1]);
{ return Mysql::getInstance()->from('users')->count()->where(array('UNIX_TIMESTAMP(keep_alive)>' => time() - Config::get('watchdog_timeout') * 2))->get()->counter(); } function get_offline_users() { return Mysql::getInstance()->from('users')->count()->where(array('UNIX_TIMESTAMP(keep_alive)<=' => time() - Config::get('watchdog_timeout') * 2))->get()->counter(); } $online = get_online_users(); $offline = get_offline_users(); $cur_tv = get_cur_playing_type('itv'); $cur_vclub = get_cur_active_playing_type('vclub'); $cur_tv_archive = Mysql::getInstance()->from('users')->where(array('UNIX_TIMESTAMP(keep_alive)>' => time() - Config::get('watchdog_timeout') * 2, 'now_playing_type' => 11))->get()->count(); $cur_records = Mysql::getInstance()->from('users')->where(array('UNIX_TIMESTAMP(keep_alive)>' => time() - Config::get('watchdog_timeout') * 2, 'now_playing_type' => 12))->get()->count(); $cur_time_shift = Mysql::getInstance()->from('users')->where(array('UNIX_TIMESTAMP(keep_alive)>' => time() - Config::get('watchdog_timeout') * 2, 'now_playing_type' => 14))->get()->count(); $cur_aclub = get_cur_active_playing_type('aclub'); $cur_karaoke = get_cur_active_playing_type('karaoke'); $cur_radio = get_cur_playing_type('radio'); $cur_infoportal = get_cur_infoportal(); ?> <table width="80%" align="center"> <tr> <td class="other" width="150"> <table width="150" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td class="td_stat" style="color:green" width="80">online:</td> <td class="td_stat"><?php echo $online; ?> </td> </tr> <tr>
function get_cur_playing_type($in_param = '') { return get_cur_active_playing_type($in_param); }