<?php/* phpBB3 Login Form Copyright (C) 2008,2009 Savvas Radevic <vicedar@gmail.com> 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 <http://www.gnu.org/licenses/>.*/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 '<form class="phpbblogin" action="' . $phpbb_link . 'ucp.php?mode=login" method="post"> <label for="username">' . $user->lang['USERNAME'] . ': </label><input type="text" name="username" /><br /> <label for="password">' . $user->lang['PASSWORD'] . ': </label><input type="password" name="password" /><br /> <input type="hidden" name="redirect" value="/joomla.php" /> <input type="hidden" name="sid" value="' . $user->data["session_id"] . '" /> <input type="checkbox" name="autologin" id="autologin" class="checkbox" /><label for="autologin">' . $user->lang['LOG_ME_IN'] . ':</label> <br/> <input type="submit" value="' . $user->lang['LOGIN'] . '" name="login" /></form><span class="registernow"><a href="' . $phpbb_link . 'ucp.php?mode=register">' . $user->lang['REGISTER'] . '</a> <a href="' . $phpbb_link . 'ucp.php?mode=sendpassword">' . $user->lang['FORGOT_PASS'] . '</a></span>'; }?>