php-password-store/check_user.php

10 lines
203 B
PHP
Raw Normal View History

<?php
require 'config.php';
include_once 'class.db.php';
if (!array_key_exists('loginuser', $_SESSION) || !pwsdbh($dbDSN)->userExists($_SESSION['loginuser']))
{
header('Location: login.php');
exit;
}