19 lines
487 B
PHP
19 lines
487 B
PHP
|
<?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.";
|
||
|
}
|