License: http://www.gnu.org/copyleft/gpl.html GNU/GPL 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 . */ global $phpbb_link, $phpbb_root_path, $phpEx, $user, $db, $config, $cache, $template, $auth; define('IN_PHPBB', true); $phpbb_root_path = '/home/yourusername/path/to/root_of_forum/'; //Path to forum $phpbb_link = 'http://forum.example.org/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($phpbb_root_path . 'common.'.$phpEx); //include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); if($user->data['is_registered']) { echo "Welcome " . $user->data['username']; //User is already logged in } else { echo '



' . $user->lang['REGISTER'] . ' ' . $user->lang['FORGOT_PASS'] . ''; } ?>