Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //echo base64_decode("dXNlcjpwYXNz");
- session_start();
- //echo 'proba is:', $_SESSION["proba"];
- //$_SESSION["proba"] ='working';
- if($_SESSION['user']=='goshko'){
- echo "ohay";
- }else{
- if((@$_POST['usr']=='goshko' && @$_POST['pwd']=='peshko')){
- echo "Hello goshko!"."<br/>";
- $_SESSION['user']='goshko';
- }
- else {
- if(count(@$_POST)>0){
- echo "Wrong user or password!"."<br/>";
- }
- ?>
- <form action="session.php" method="POST">
- Username: <input type="text" name="usr"><br/>
- Username: <input type="password" name="pwd"><br/>
- <input type="submit">
- </form>
- <?php
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment