17 lines
327 B
PHP
17 lines
327 B
PHP
<?php
|
|
require_once 'general.php';
|
|
|
|
returnHeader();
|
|
$config = getConfig();
|
|
|
|
if (isset($_POST['login']) && !empty($_POST['username'])
|
|
&& !empty($_POST['password'])) {
|
|
|
|
if ($_POST['user'] == $config['user'] && $_POST['password'] == $config['password']) {
|
|
$_SESSION['timeout'] = time();
|
|
}
|
|
}
|
|
|
|
returnFooter();
|
|
|
|
?>
|