mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 22:51:48 +00:00
Revert "theme_image: do not display themed image if noone is logged in"
bad patch
This reverts commit 0b9751cd65.
This commit is contained in:
@@ -2047,7 +2047,7 @@
|
|||||||
|
|
||||||
function get_user_theme($link) {
|
function get_user_theme($link) {
|
||||||
|
|
||||||
if (get_schema_version($link) >= 63 && $_SESSION["uid"]) {
|
if (get_schema_version($link) >= 63) {
|
||||||
$theme_name = get_pref($link, "_THEME_ID");
|
$theme_name = get_pref($link, "_THEME_ID");
|
||||||
if (is_dir("themes/$theme_name")) {
|
if (is_dir("themes/$theme_name")) {
|
||||||
return $theme_name;
|
return $theme_name;
|
||||||
@@ -2062,7 +2062,7 @@
|
|||||||
|
|
||||||
function get_user_theme_path($link) {
|
function get_user_theme_path($link) {
|
||||||
|
|
||||||
if (get_schema_version($link) >= 63 && $_SESSION["uid"]) {
|
if (get_schema_version($link) >= 63) {
|
||||||
$theme_name = get_pref($link, "_THEME_ID");
|
$theme_name = get_pref($link, "_THEME_ID");
|
||||||
|
|
||||||
if ($theme_name && is_dir("themes/$theme_name")) {
|
if ($theme_name && is_dir("themes/$theme_name")) {
|
||||||
@@ -3751,7 +3751,7 @@
|
|||||||
$res = preg_replace('/<img[^>]+>/is', '', $res);
|
$res = preg_replace('/<img[^>]+>/is', '', $res);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
|
if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW', $owner)) {
|
||||||
$res = preg_replace("/href=/i", "target=\"_blank\" href=", $res);
|
$res = preg_replace("/href=/i", "target=\"_blank\" href=", $res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -575,9 +575,8 @@
|
|||||||
|
|
||||||
print "<div align='center'>";
|
print "<div align='center'>";
|
||||||
|
|
||||||
print "<input class=\"button\"
|
print "<button onclick=\"return closeInfoBox()\">".
|
||||||
type=\"submit\" onclick=\"return closeInfoBox()\"
|
__('Close this window')."</button>";
|
||||||
value=\"".__('Close')."\">";
|
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
|
|||||||
@@ -1192,27 +1192,24 @@
|
|||||||
print "<button onclick=\"javascript:removeSelectedFeeds()\">"
|
print "<button onclick=\"javascript:removeSelectedFeeds()\">"
|
||||||
.__('Unsubscribe')."</button> ";
|
.__('Unsubscribe')."</button> ";
|
||||||
|
|
||||||
/* print "<select id=\"feedActionChooser\" onchange=\"feedActionChange()\">
|
if (defined('_ENABLE_FEED_DEBUGGING')) {
|
||||||
<option value=\"facDefault\" selected>".__('Other actions...')."</option>";
|
|
||||||
|
print "<select id=\"feedActionChooser\" onchange=\"feedActionChange()\">
|
||||||
|
<option value=\"facDefault\" selected>".__('More actions...')."</option>";
|
||||||
|
|
||||||
|
if (FORCE_ARTICLE_PURGE == 0) {
|
||||||
|
print
|
||||||
|
"<option value=\"facPurge\">".__('Manual purge')."</option>";
|
||||||
|
}
|
||||||
|
|
||||||
|
print "
|
||||||
|
<option value=\"facClear\">".__('Clear feed data')."</option>
|
||||||
|
<option value=\"facRescore\">".__('Rescore articles')."</option>";
|
||||||
|
|
||||||
|
print "</select>";
|
||||||
|
|
||||||
if (FORCE_ARTICLE_PURGE == 0) {
|
|
||||||
print
|
|
||||||
"<option value=\"facPurge\">".__('Manual purge')."</option>";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print "
|
|
||||||
<option value=\"facClear\">".__('Clear feed data')."</option>
|
|
||||||
<option value=\"facRescore\">".__('Rescore articles')."</option>
|
|
||||||
<option value=\"facUnsubscribe\">".__('Unsubscribe')."</option>";
|
|
||||||
|
|
||||||
print "</select>"; */
|
|
||||||
|
|
||||||
/* if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) {
|
|
||||||
print " <input type=\"submit\" class=\"button\"
|
|
||||||
id=\"top25_feeds_btn\"
|
|
||||||
onclick=\"javascript:browseFeeds()\" value=\"".__('More feeds')."\">";
|
|
||||||
} */
|
|
||||||
|
|
||||||
$feeds_sort = db_escape_string($_REQUEST["sort"]);
|
$feeds_sort = db_escape_string($_REQUEST["sort"]);
|
||||||
|
|
||||||
if (!$feeds_sort || $feeds_sort == "undefined") {
|
if (!$feeds_sort || $feeds_sort == "undefined") {
|
||||||
|
|||||||
@@ -215,6 +215,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($subop == "remove") {
|
if ($subop == "remove") {
|
||||||
|
|
||||||
|
if ($memcache) $memcache->flush();
|
||||||
|
|
||||||
$ids = split(",", db_escape_string($_REQUEST["ids"]));
|
$ids = split(",", db_escape_string($_REQUEST["ids"]));
|
||||||
|
|
||||||
@@ -224,7 +226,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($subop == "add") {
|
if ($subop == "add") {
|
||||||
|
|
||||||
|
if ($memcache) $memcache->flush();
|
||||||
|
|
||||||
$regexp = db_escape_string(trim($_REQUEST["reg_exp"]));
|
$regexp = db_escape_string(trim($_REQUEST["reg_exp"]));
|
||||||
$filter_type = db_escape_string(trim($_REQUEST["filter_type"]));
|
$filter_type = db_escape_string(trim($_REQUEST["filter_type"]));
|
||||||
$feed_id = db_escape_string($_REQUEST["feed_id"]);
|
$feed_id = db_escape_string($_REQUEST["feed_id"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user