presento/public/admin/auth.php

19 lines
487 B
PHP
Raw Normal View History

2021-01-27 19:23:49 +00:00
<?php
error_reporting(E_ERROR | E_PARSE);
session_start();
$config = include("../../config.php");
if (isset($_SESSION['password']) && isset($_SESSION['username']))
{
if ($_SESSION['password'] !== $config['password'] ||
$_SESSION['username'] !== $config['username'])
{
$_SESSION['admin'] = false;
}
}
if (isset($_SESSION['username']) || isset($_SESSION ['password'])) {
$error = "Konto opplysningene dine har blitt endret. Vennligst logg inn igjen.";
}