<?php /* <Orion, a web development framework for RK.> Copyright (C) <2011> <Orion> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ define('IN_APP', true); require_once('./interfase/common.php'); require_once(ROOT . 'objects/community.php'); $user->init(); $user->setup(); $community = new community(); $community->run(); page_layout('COMMUNITY', 'community', false, false);
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (!defined('IN_APP')) exit; require_once(ROOT . 'objects/community.php'); $user->setup(); $comm = new community(); $comm->recent_members(); $current_time = time(); // // Online // $sql = 'SELECT u.user_id, u.username, u.username_base, u.user_type, u.user_hideuser, s.session_ip FROM _members u, _sessions s WHERE s.session_time >= ?? AND u.user_id = s.session_user_id ORDER BY u.username ASC, s.session_ip ASC'; $comm->online(sql_filter($sql, ($current_time - (5 * 60))), 'online', 'MEMBERS_ONLINE'); // // Today Online