View sourcecode

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

check_login.php

10 lines ASCII Unix (LF)
1
2
3
4
5
6
7
8
9
10
<?php
    
if(isset($_SESSION['user'])){
        
$file_in "accounts/".$_SESSION['user'].".json";
        
$userfile json_decode(file_get_contents($file_in), true);
    }
    else{
        
header('location: index.php?action=login&mess=error');
        exit();
    }
?>