query("select * from session where user_action='forum' and user_action_id='$node_id' and user_mode!='invisible' group by user_name"); echo ""; while ($set->next()) { echo ""; } echo "
",$set->getString(
"; } else { include ("count.inc"); $set=$kyberia->query("select (time_to_sec(NOW())-time_to_sec(user_idle)) as idle,session.* from session group by session.user_id order by session.user_name"); // jay is the beeest, fooking good, i love the woooorld //prevedie udaje do arrays, aby sa dali viac krat pouzit while ($set->next()) { $active_array_name[]=$set->getString('user_name'); $active_array_user[]=$set->getString('user_id'); $active_array_idle[]=$set->getString('idle'); } echo "
"; echo "
"; echo "~~~ friends ~~~

"; echo "
"; //toto je prva cast, kde sa vypisuju friendi for ($i=0;$i
"; echo "".$active_name."
"; echo ""; }else{ } } // iba nicky else { if ($friend_array[$active_user]){ echo "
"; echo "".$active_name." "; $time=$active_idle; if ($time<0) $time+=(60*1440); // echo floor($time/60),":",($time%60); echo ""; echo "
"; }else{ } } } echo "
"; echo "
~~~ friends ~~~


"; echo "
"; //a tu je ostatok activov for ($i=0;$i
"; echo "".$active_name."
"; echo ""; } } // iba nicky else { if ($friend_array[$active_user]){ }else{ echo "
"; echo "".$active_name." "; $time=$active_idle; if ($time<0) $time+=(60*1440); // echo floor($time/60),":",($time%60); echo ""; echo "
"; } } } echo "
"; echo "
"; }