1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-29 22:57:12 +00:00

merge logout.php inside backend.php

This commit is contained in:
Andrew Dolgov
2011-04-20 00:14:37 +04:00
parent e31ed61af3
commit 1ca77e0acd
6 changed files with 25 additions and 26 deletions

View File

@@ -60,7 +60,7 @@
if (!($_SESSION["uid"] && validate_session($link)) && $op != "globalUpdateFeeds" &&
$op != "rss" && $op != "getUnread" && $op != "getProfiles" &&
$op != "pubsub") {
$op != "logout" && $op != "pubsub") {
header("Content-Type: text/plain");
print json_encode(array("error" => array("code" => 6)));
@@ -571,6 +571,16 @@
}
break;
case "logout":
logout_user();
header("Location: tt-rss.php");
break;
default:
header("Content-Type: text/plain");
print json_encode(array("error" => array("code" => 7)));
break;
} // Select action according to $op value.
// We close the connection to database.