summaryrefslogtreecommitdiffstats
path: root/public/admin/inc/auth.inc.php
blob: 32615e75b2e08a46458ce3c025533a5d18e159c2 (plain)
1
2
3
4
5
6
7
8
9
<?php

include config_path('pwd.inc.php');

if (!Planet::authenticateUser($_COOKIE['auth'] ?? '', $password)) {
    setcookie('auth', '', time() - 3600);
    header('Location: login.php');
    die();
}