From 9c883208331e2e950cd5a8260b711021c34bc098 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 27 Oct 2009 15:27:09 +0300 Subject: [PATCH] backend: force login on init when in single user mode --- backend.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend.php b/backend.php index 925f81087..aa8edb7ba 100644 --- a/backend.php +++ b/backend.php @@ -75,7 +75,11 @@ header("Content-Type: application/xml"); print_error_xml(7); exit; } - + + if (SINGLE_USER_MODE) { + authenticate_user($link, "admin", null); + } + if (!($_SESSION["uid"] && validate_session($link)) && $op != "globalUpdateFeeds" && $op != "rss" && $op != "getUnread" && $op != "publish") {