Wiki for more details.'; if (isset($_POST['submit_button'])) { // If password match, then set login if ($_POST['login'] == $username && $_POST['password'] == $password && $password) { // Set session session_start(); $_SESSION['isLoggedIn'] = true; $_SESSION['user'] = $_POST['login']; // Override any config option //$_SESSION['imagemanager.filesystem.rootpath'] = 'some path'; //$_SESSION['filemanager.filesystem.rootpath'] = 'some path'; // Redirect header("location: " . $_POST['return_url']); die; } else $msg = "Wrong username/password."; } ?> Sample login page
" />
Example login
" />
" />