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

include dirname(__FILE__).'/pwd.inc.php';
require_once __DIR__.'/../../app/classes/Planet.class.php';

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