View sourcecode

The following files exists in this folder. Click to view.

login.php

18 lines ASCII Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
    session_start
();

    
$username "Intentionally removed by CSource";
    
$password "Intentionally removed by CSource";

    if(isset(
$_POST['username']) and isset($_POST['password'])){
        if(
$_POST['username'] == $username and $_POST['password'] == $password){
            
$_SESSION['user'] = "Intentionally removed by CSource";
            
header('location: admin.php');
            exit();
        }
        else{
            
header('location: index.php?mess=wrong');
            exit();
        }
    }
?>