Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // phpBB initialization
- define('IN_PHPBB', true);
- $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
- $phpEx = substr(strrchr(__FILE__, '.'), 1);
- include($phpbb_root_path . 'common.' . $phpEx);
- $user->session_begin();
- $auth->acl($user->data);
- $user->setup();
- // require user to be logged in
- if (!$auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
- {
- if ($user->data['user_id'] != ANONYMOUS)
- {
- trigger_error('NO_VIEW_USERS');
- }
- login_box('', ((isset($user->lang['LOGIN_EXPLAIN_' . strtoupper($mode)])) ? $user->lang['LOGIN_EXPLAIN_' . strtoupper($mode)] : $user->lang['LOGIN_EXPLAIN_MEMBERLIST']));
- }
- // here we build the actual contents
- $title = 'Hello '.$user->data['username'];
- $body = 'You are user number '.$user->data['user_id'];
- // finally put them into a standard page template
- $template->assign_vars(array('MESSAGE_TITLE' => $title, 'MESSAGE_TEXT' => $body));
- page_header($title, false);
- $template->set_filenames(array('body' => 'message_body.html'));
- page_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement