1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-02 08:07:10 +00:00

implement preferred time for sending out digests

This commit is contained in:
Andrew Dolgov
2012-01-30 16:34:45 +04:00
parent 33f0fdd0a2
commit 61c1812f29
10 changed files with 83 additions and 51 deletions

View File

@@ -2,7 +2,7 @@
require_once "config.php";
require_once "db.php";
if (!defined('DISABLE_SESSIONS')) {
if (!defined('DISABLE_SESSIONS') && !defined('PREFS_NO_CACHE')) {
if (!$_SESSION["prefs_cache"])
$_SESSION["prefs_cache"] = array();
}
@@ -21,7 +21,7 @@
//$prefs_cache = false;
}
if ($prefs_cache && !defined('DISABLE_SESSIONS')) {
if ($prefs_cache && !defined('DISABLE_SESSIONS') && !defined('PREFS_NO_CACHE')) {
if ($_SESSION["prefs_cache"] && @$_SESSION["prefs_cache"][$pref_name]) {
$tuple = $_SESSION["prefs_cache"][$pref_name];
return convert_pref_type($tuple["value"], $tuple["type"]);
@@ -102,7 +102,7 @@
$type_name = "";
$current_value = "";
if (!defined('DISABLE_SESSIONS')) {
if (!defined('DISABLE_SESSIONS') && !defined('PREFS_NO_CACHE')) {
if ($_SESSION["prefs_cache"] && @$_SESSION["prefs_cache"][$pref_name]) {
$type_name = $_SESSION["prefs_cache"][$pref_name]["type"];
$current_value = $_SESSION["prefs_cache"][$pref_name]["value"];