Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class user {
- public $login;
- function login($user,$pass) {
- if (($user == "arbetare") && ($pass == "facket")) {
- $this->login = $_SESSION['Logged_On'] = "true";
- echo 'Authenticated.<br />
- Welcome, Overlord.<br />
- Are you ready to take over the world?';
- echo "<br />" . $_SESSION['Logged_On'];
- }
- else
- {
- echo 'Didn\'t authenticate.';
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement