芝麻web文件管理V1.00
编辑当前文件:/home/jambtst2015/public_html/giraffeng.com/admin/logoutjob.php
0){ while($arr = mysql_fetch_array($qryuser)){ $userId = $arr['user_id']; $online = 0; $last_time = $arr['last_time']; $curTime = time(); $timeDiff = $curTime - $last_time; if($timeDiff > 5){ $sql = sprintf("update `sat_users` set `online`='%s' where `user_id`='%s'",$online,$userId); $qry = mysql_query($sql); } } } /*----get online user-----*/ ///web/cgi-bin/php5 "$HOME/html/AbsiUsaCom_New/qs/logoutjob.php" ?>