Incorrect accessYou cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'."; exit(); } class ppi_online_users extends public_portal_portal_portal { /** * Initialize module * * @access public * @return void */ public function init() { } /** * Show the online users * * @access public * @return string HTML content to replace tag with */ public function online_users_show() { //----------------------------------------- // Get the users from the DB //----------------------------------------- require_once( IPSLib::getAppDir( 'forums', 'forums' ) . '/boards.php' ); $boards = new public_forums_forums_boards(); $boards->makeRegistryShortcuts( $this->registry ); $active = $boards->getActiveUserDetails(); $active['visitors'] = $active['GUESTS'] + $active['ANON']; $active['members'] = $active['MEMBERS']; return $this->registry->getClass('output')->getTemplate('portal')->onlineUsers( $active ); } }