1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 02:01:28 +00:00

move db-prefs to OO

This commit is contained in:
Andrew Dolgov
2013-04-18 12:00:01 +04:00
parent c1e45a87b2
commit 52d88392da
7 changed files with 192 additions and 190 deletions

View File

@@ -744,12 +744,9 @@
}
function login_sequence() {
$_SESSION["prefs_cache"] = false;
if (SINGLE_USER_MODE) {
@session_start();
authenticate_user("admin", null);
cache_prefs();
load_user_plugins($_SESSION["uid"]);
} else {
if (!validate_session()) $_SESSION["uid"] = false;
@@ -783,7 +780,6 @@
}
if ($_SESSION["uid"]) {
cache_prefs();
load_user_plugins($_SESSION["uid"]);
/* cleanup ccache */