<?php include $_SERVER['DOCUMENT_ROOT'] . "/classes/access_user/access_user_class.php"; $update_member = new Access_user(); // $new_member->language = "de"; // use this selector to get messages in other languages $update_member->access_page(); // protect this page too. $update_member->get_user_info(); // call this method to get all other information if (isset($_POST['Submit'])) { $update_member->update_user($_POST['password'], $_POST['confirm'], $_POST['name'], $_POST['info'], $_POST['email']); // the update method } $error = $update_member->the_msg; // error message ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Update page example</title> <style type="text/css"> <!-- label { display: block; float: left; width: 120px; } --> </style> </head>
<?php include $_SERVER['DOCUMENT_ROOT'] . "/classes/access_user/access_user_class.php"; $page_protect = new Access_user(); // $page_protect->login_page = "login.php"; // change this only if your login is on another page $page_protect->access_page(); // only set this this method to protect your page $page_protect->get_user_info(); $hello_name = $page_protect->user_full_name != "" ? $page_protect->user_full_name : $page_protect->user; if (isset($_GET['action']) && $_GET['action'] == "log_out") { $page_protect->log_out(); // the method to log off } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Account page</title> <link rel="stylesheet" type="text/css" href="/css/main.css"/> </head> <body> <?php include_once "analyticstracking.php"; ?> <div id="main-con"> <div id="header-con"> <div id="img"></div> <div id="title"><h1>mirador</h1></div> </div>