From: Andrew Dolgov Date: Thu, 28 Jan 2010 15:49:17 +0000 (+0300) Subject: theme_image: do not display themed image if noone is logged in X-Git-Tag: 1.4.1~28^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0b9751cd650c917d3e7f5dc5493483f8b026bf21;p=tt-rss.git theme_image: do not display themed image if noone is logged in --- diff --git a/functions.php b/functions.php index 6a18ffbf..27c07fda 100644 --- a/functions.php +++ b/functions.php @@ -2047,7 +2047,7 @@ function get_user_theme($link) { - if (get_schema_version($link) >= 63) { + if (get_schema_version($link) >= 63 && $_SESSION["uid"]) { $theme_name = get_pref($link, "_THEME_ID"); if (is_dir("themes/$theme_name")) { return $theme_name; @@ -2062,7 +2062,7 @@ function get_user_theme_path($link) { - if (get_schema_version($link) >= 63) { + if (get_schema_version($link) >= 63 && $_SESSION["uid"]) { $theme_name = get_pref($link, "_THEME_ID"); if ($theme_name && is_dir("themes/$theme_name")) { @@ -3751,7 +3751,7 @@ $res = preg_replace('/]+>/is', '', $res); } - if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW', $owner)) { + if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) { $res = preg_replace("/href=/i", "target=\"_blank\" href=", $res); } diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index b55799ba..a806e0c7 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -575,8 +575,9 @@ print "
"; - print ""; + print ""; print "
"; diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 59159733..0329a129 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1192,24 +1192,27 @@ print " "; - if (defined('_ENABLE_FEED_DEBUGGING')) { - - print ""; +/* print ""; */ + +/* if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { + print " "; + } */ + $feeds_sort = db_escape_string($_REQUEST["sort"]); if (!$feeds_sort || $feeds_sort == "undefined") { diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 5c71fcb0..50120a2e 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -215,8 +215,6 @@ } if ($subop == "remove") { - - if ($memcache) $memcache->flush(); $ids = split(",", db_escape_string($_REQUEST["ids"])); @@ -226,9 +224,7 @@ } if ($subop == "add") { - - if ($memcache) $memcache->flush(); - + $regexp = db_escape_string(trim($_REQUEST["reg_exp"])); $filter_type = db_escape_string(trim($_REQUEST["filter_type"])); $feed_id = db_escape_string($_REQUEST["feed_id"]);