<?php include $_SERVER['DOCUMENT_ROOT'] . "/classes/access_user/access_user_class.php"; $my_access = new Access_user(false); // $my_access->language = "de"; // use this selector to get messages in other languages if (isset($_GET['activate']) && isset($_GET['ident'])) { // this two variables are required for activating/updating the account/password $my_access->auto_activation = true; // use this (true/false) to stop the automatic activation $my_access->activate_account($_GET['activate'], $_GET['ident']); // the activation method } if (isset($_GET['validate']) && isset($_GET['id'])) { // this two variables are required for activating/updating the new e-mail address $my_access->validate_email($_GET['validate'], $_GET['id']); // the validation method } if (isset($_POST['Submit'])) { $my_access->save_login = isset($_POST['remember']) ? $_POST['remember'] : "no"; // use a cookie to remember the login $my_access->count_visit = false; // if this is true then the last visitdate is saved in the database (field extra info) $my_access->login_user($_POST['login'], $_POST['password']); // call the login method } $error = $my_access->the_msg; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>
<?php include $_SERVER['DOCUMENT_ROOT'] . "/classes/access_user/access_user_class.php"; // this simple example will show you the access level functionality $test_access_level = new Access_user(); $test_access_level->access_page($_SERVER['PHP_SELF'], "", 5); // change this value to test differnet access levels (default: 1 = low and 10 high) $hello_name = $test_access_level->user_full_name != "" ? $test_access_level->user_full_name : $test_access_level->user; if (isset($_GET['action']) && $_GET['action'] == "log_out") { $test_access_level->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>Test page "access levels"</title> </head> <body> <h2><?php echo "Hello " . $hello_name . " !"; ?> </h2> <p>According the access level from your account it's allowed to view this page!</p> <p> </p> <p><a href="<?php echo START_PAGE;
<?php include $_SERVER['DOCUMENT_ROOT'] . "/classes/access_user/access_user_class.php"; $act_password = new Access_user(); if (!empty($_GET['activate'])) { // this two variables are required for activating/updating the account/password if ($act_password->check_activation_password($_GET['activate'])) { // the activation/validation method $_SESSION['activation'] = $_GET['activate']; // put the activation string into a session or into a hdden field } } if (isset($_POST['Submit'])) { if ($act_password->activate_new_password($_POST['password'], $_POST['confirm'], $_SESSION['activation'])) { // this will change the password unset($_SESSION['activation']); } $act_password->user = $_POST['user']; // to hold the user name in this screen (new in version > 1.77) } $error = $act_password->the_msg; ?> <!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>Reset password</title> <link rel="stylesheet" type="text/css" href="/css/main.css"/> </head>
<?php include $_SERVER['DOCUMENT_ROOT'] . "/classes/access_user/access_user_class.php"; // call this page to test referer function // test this page like "testpage.php?var=test" if you are using a querystring $test_page_protect = new Access_user(); // $test_page_protect->login_page = "login.php"; // change this only if your login is on another page $test_page_protect->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING']); // set this method, including the server vars to protect your page and get redirected to here after login $hello_name = $test_page_protect->user_full_name != "" ? $test_page_protect->user_full_name : $test_page_protect->user; if (isset($_GET['action']) && $_GET['action'] == "log_out") { $test_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>Test page "access_user Class"</title> </head> <body> <?php include_once "analyticstracking.php"; ?> <h2><?php echo "Hello " . $hello_name . " !"; ?> </h2> <p>Now you have access to this testpage.</p>
<?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"; $renew_password = new Access_user(); if (isset($_POST['Submit'])) { $renew_password->forgot_password($_POST['email']); } $error = $renew_password->the_msg; ?> <!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>Forgot password page example</title> <style type="text/css"> <!-- label { display: block; float: left; width: 110px; } --> </style> </head> <body bgcolor="#000000" text="#FFFFBF" vlink="#990002" link="#990001"> <h2>Forgot your password/login?</h2> <p>Please enter the e-mail address what you have used during registration and a link to change your password will be provided.</p> <form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF'];
<?php include "/home/mysensev/mysenseval.com/weka-online/classes/access_user/access_user_class.php"; // ($_SERVER['DOCUMENT_ROOT']." $new_member = new Access_user(); // $new_member->language = "de"; // use this selector to get messages in other languages if (isset($_POST['Submit'])) { // the confirm variable is new since ver. 1.84 // if you don't like the confirm feature use a copy of the password variable $new_member->register_user($_POST['login'], $_POST['password'], $_POST['confirm'], $_POST['name'], $_POST['info'], $_POST['email']); // the register method } $error = $new_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>Register page example</title> <style type="text/css"> <!-- label { display: block; float: left; width: 130px; } --> </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>