Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('IN_PHPBB', true);
- $phpbb_root_path = 'forums/';
- $phpEx = substr(strrchr(__FILE__, '.'), 1);
- include($phpbb_root_path . 'common.' . $phpEx);
- // Start session management
- $user->session_begin();
- $auth->acl($user->data);
- $user->setup();
- ?>
- <?php
- if($user->data['is_registered'])
- {
- echo '<font color=red size=3>Welcome back, ' . $user->data['username'] . '</font><br /><br />';
- echo '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx") . '">' . $user->lang['PROFILE'] . '</a><br />';
- $l_message_new = ($user->data['user_new_privmsg'] == 1) ? $user->lang['NEW_PM'] : $user->lang['NEW_PMS'];
- $l_privmsgs_text = sprintf($l_message_new, $user->data['user_new_privmsg']);
- echo '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox') . '">' . $l_privmsgs_text . '</a><br />';
- echo '<a href="' . append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=newposts') . '">' . $user->lang['SEARCH_NEW'] . '</a><br />';
- }
- else
- {
- $path = pathinfo($_SERVER['SCRIPT_FILENAME']);
- echo '<font color=red size=3>Please Log In:<br></font><br />';
- echo '<form method="POST" action="' . $phpbb_root_path . 'ucp.php?mode=login">
- Username: <input type="text" name="username" size="20"><br />
- Password: <input type="password" name="password" size="20"><br />
- Remember Me?: <input type="checkbox" name="autologin"><br />
- <input type="submit" value="Login" name="login">
- <input type="hidden" name="redirect" value="./../' . $path['basename'] . '">
- </form>
- <br />';
- echo '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register') . '">' . $user->lang['REGISTER'] . '</a> ';
- echo '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=sendpassword') . '">Forgot Password?</a>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement