"; $page->assign("headers", $load_script); $page->assign("title", "Camping & Campsites - Your account"); $page->assign("meta_description", "Your account page. Log in to edit you details and your campsite's details"); $page->sub_template("menu.tpl", "menu"); $page->assign("account_link", "menu_selected"); $page->assign("rel_path", './'); if($_GET["mode"]=='logout') { // End session management $user->session_kill(); } if($_POST["login"]=="true") { // Start session management $auth->acl($user->data); $user->setup(); if($user->data['is_registered']) { //User is already logged in } else { $username = request_var('username', '', true); $password = request_var('password', '', true); $autologin = (!empty($_POST['autologin'])) ? true : false; $result = $auth->login($username, $password, $autologin); if ($result['status'] == LOGIN_SUCCESS) { //User was successfully logged into phpBB $redirect = request_var('redirect', "{$phpbb_root_path}index.$phpEx"); // append/replace SID $redirect = reapply_sid($redirect); meta_refresh(0, $redirect); } else { //User's login failed header("Location: account.php?e=1"); exit; } } } switch($_GET["e"]) { case 1: $error = 'Username and password combination not found, please try again or sign up if you require a new account.'; break; } if ($user->data['user_id'] == ANONYMOUS) { //User is Not Logged In // $content .= '
'; /*

Existing user login


If you haven\'t already registered with us the you can do so by filling in the simple form to the right.

Members benefits include:
- Access to posting and replying to messages in the forums
- You can add reviews for campsites that you loved or hated
- Bookmarked campsites that help you quickly find your favourites

... and many more benefits planned for the future!

*/ $content .= '


'; if($error) { $err_msg .= '
'.$error.'


'; } $content .= '










Forgotten your password? '.$err_msg.'


'; $content .= '

Username
'.form_guide("username", "Please choose a new username. This will be your identity on the site and the fora.").' Password

Confirm password

Email address





'; $content .= '



'; } else { $page->sub_template("account.tpl", "content"); } $breadcrumbs = array( array("name" => 'Account', "link" => '') ); $page->add_breadcrumbs($breadcrumbs); $page->assign("content", $content); $page->display(); ?>