\n"; echo "\n"; echo "\n"; echo "\n"; echo "Test side\n"; echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; if($_SERVER['REQUEST_METHOD'] == 'POST') echo "The specified password is invalid!


\n"; else echo "This page is password protected.


\n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
Login
Password:  
\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "\n"; exit; } ?> 0) { $items = file($database); foreach($items as $line) { list($username, $password, $email, $name, $active) = explode('|', trim($line)); if ($username == $_POST['username'] && $active != "0" && $password == $crypt_pass) { $found = true; $fullname = $name; } } } if($found == false) { header('Location: '.$error_page); exit; } else { session_start(); $_SESSION['username'] = $_POST['username']; $_SESSION['fullname'] = $fullname; $rememberme = isset($_POST['rememberme']) ? true : false; if ($rememberme) { setcookie('username', $_POST['username'], time() + 3600*24*30); setcookie('password', $_POST['password'], time() + 3600*24*30); } header('Location: '.$success_page); exit; } } $username = isset($_COOKIE['username']) ? $_COOKIE['username'] : ''; $password = isset($_COOKIE['password']) ? $_COOKIE['password'] : ''; ?> Test side Pablo Software Solutions
ssdffd
Double click to edit
Welcome !
Log In
User Name:
Password:
 Remember me