// STARTED : Tue Jan 1, 2004 // COPYRIGHT : © 2003, 2004 Project Minerva Team // : © 2001, 2003 The phpBB Group // : © 2003 Thoul // WWW : http://www.project-minerva.org/ // LICENCE : GPL v2.0 [ see /docs/COPYING ] // //-------------------------------------------------------------------------------------------------- if (!defined('IN_PHPBB') || !defined('IN_PRILLIAN')) { die('Hacking attempt'); } $die_string = 'None'; // Session update to delete old sessions $userdata = array(); $im_userdata['refresh_rate'] = $prill_config['refresh_rate']; im_session_update(true, false, true); $sql = 'SELECT u.username, u.user_id FROM ' . USERS_TABLE . ' u, ' . IM_SESSIONS_TABLE . ' s WHERE u.user_id = s.session_user_id AND u.user_allow_viewonline = 1 ORDER BY u.username ASC'; if (!($result = $db->sql_query($sql))) { exit_the_network('Could not obtain user/online information', $sql); } $prillian_online = array(); $prev_user_id = 0; while ($row = $db->sql_fetchrow($result)) { // Skip multiple sessions for one user if ($row['user_id'] != $prev_user_id) { $prillian_online[] = $row; $prev_user_id = $row['user_id']; } } $db->sql_freeresult($result); // Send Prillian version number to template
case 'post': case 'reply': // Send or reply to a message include_once $phpbb_root_path . 'includes/functions_post.' . $phpEx; include_once PRILL_PATH . 'im_send.' . $phpEx; break; case WIDE_MODE: case MAIN_MODE: // Start and/or update IM Client sessions im_session_update(); // Main IM Client or Who's Online Client include_once PRILL_PATH . 'im_main.' . $phpEx; break; case MINI_MODE: // Start and/or update IM Client sessions im_session_update(); // And I shall call him... mini mode! include_once PRILL_PATH . 'im_mini.' . $phpEx; // I've never actually seen that movie. break; case 'log': // View the Message Log include_once PRILL_PATH . 'im_log.' . $phpEx; break; case 'profile': // View a Mini-Profile include_once PRILL_PATH . 'profile.' . $phpEx; break; } $template->pparse('body'); include_once PRILL_PATH . 'prill_footer.' . $phpEx;