HOME


Mini Shell 1.0
DIR: /proc/self/root/home/islapiiu/sites/faithlinkint/control-panel/post-and-get/
Upload File :
Current File : //proc/self/root/home/islapiiu/sites/faithlinkint/control-panel/post-and-get/login.php
<?php

include_once(dirname(__FILE__) . '/../../class/include.php');



$USER = new User(NULL);



$username = filter_var($_POST['username'], FILTER_SANITIZE_STRING);

$password = filter_var($_POST['password'], FILTER_SANITIZE_STRING);





if (empty($username) || empty($password)) {

    header('Location: ../login.php?message=6');

    exit();
}



if ($USER->login($username, $password)) {

    header('Location: ../?message=5');

    exit();
} else {

    header('Location: ../login.php?message=7');

    exit();
}