diff options
Diffstat (limited to 'admin/inc/auth.inc.php')
-rw-r--r-- | admin/inc/auth.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/inc/auth.inc.php b/admin/inc/auth.inc.php index db6e571..0acf934 100644 --- a/admin/inc/auth.inc.php +++ b/admin/inc/auth.inc.php @@ -1,7 +1,10 @@ <?php include dirname(__FILE__).'/pwd.inc.php'; -require_once __DIR__.'/../../app/classes/Planet.class.php'; + +if (!class_exists('Planet')) { + require __DIR__.'/../../vendor/autoload.php'; +} if (!Planet::authenticateUser($_COOKIE['auth'], $password)) { setcookie('auth', '', time() - 3600); |