summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@gmail.com>2022-01-11 11:49:53 +0100
committerRomain d'Alverny <rdalverny@gmail.com>2022-01-11 11:49:53 +0100
commit45fc21386a05eef391ce1469e5a40b521fe94e7f (patch)
treea72121ef68bc246558abb1065cad0a8d51ddc993
parent81e974e61ab010e12e60174be4e07f9bdeb933f9 (diff)
downloadplanet-45fc21386a05eef391ce1469e5a40b521fe94e7f.tar
planet-45fc21386a05eef391ce1469e5a40b521fe94e7f.tar.gz
planet-45fc21386a05eef391ce1469e5a40b521fe94e7f.tar.bz2
planet-45fc21386a05eef391ce1469e5a40b521fe94e7f.tar.xz
planet-45fc21386a05eef391ce1469e5a40b521fe94e7f.zip
Fix include path & bug
-rw-r--r--admin/inc/auth.inc.php2
-rw-r--r--atom.php2
-rwxr-xr-xindex.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/admin/inc/auth.inc.php b/admin/inc/auth.inc.php
index 0acf934..0305b13 100644
--- a/admin/inc/auth.inc.php
+++ b/admin/inc/auth.inc.php
@@ -6,7 +6,7 @@ if (!class_exists('Planet')) {
require __DIR__.'/../../vendor/autoload.php';
}
-if (!Planet::authenticateUser($_COOKIE['auth'], $password)) {
+if (!Planet::authenticateUser($_COOKIE['auth'] ?? '', $password)) {
setcookie('auth', '', time() - 3600);
header('Location: login.php');
die();
diff --git a/atom.php b/atom.php
index c80d987..3af030d 100644
--- a/atom.php
+++ b/atom.php
@@ -1,6 +1,6 @@
<?php
include_once(__DIR__.'/app/app.php');
-include_once(__DIR__.'/app/lib/Cache.php');
+include_once(__DIR__.'/app/classes/Cache.php');
if ($Planet->loadOpml(__DIR__.'/custom/people.opml') == 0) exit;
diff --git a/index.php b/index.php
index 3a2c1e4..af37b7c 100755
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
<?php
include_once(__DIR__.'/app/app.php');
-include_once(__DIR__.'/app/lib/Cache.php');
+include_once(__DIR__.'/app/classes/Cache.php');
//Installed ?
if (!isset($Planet)) {