function output() { $v = getStatisticsVisitorsOnlineRaw(); if ($v != null) { return modApiFunc("Localization", "num_format", $v); } else { return '0'; } }
function addSeanceInfo($seance_id, $page_url) { $page_id = modApiFunc('Reports', 'getPageURLID', $page_url); $params = array('seance_id' => $seance_id, 'visit_time' => date('Y-m-d H:i:s', $this->getTimestamp()), 'page_url' => $page_id, 'visitors_online' => getStatisticsVisitorsOnlineRaw()); execQuery('INSERT_VISITOR_SEANCE_INFO', $params); }