mobile: add support for publishing articles
This commit is contained in:
parent
85233b8ea0
commit
510ac75fa0
|
@ -459,6 +459,12 @@
|
||||||
$marked_pic = "<img class='marked' src=\"../images/mark_unset.png\">";
|
$marked_pic = "<img class='marked' src=\"../images/mark_unset.png\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($line["published"] == "t" || $line["published"] == "1") {
|
||||||
|
$published_pic = "<img class='marked' src=\"../images/pub_set.gif\">";
|
||||||
|
} else {
|
||||||
|
$published_pic = "<img class='marked' src=\"../images/pub_unset.gif\">";
|
||||||
|
}
|
||||||
|
|
||||||
$content_link = "<a href=\"?go=view&id=$id&ret_feed=$feed&feed=$feed_id\">" .
|
$content_link = "<a href=\"?go=view&id=$id&ret_feed=$feed&feed=$feed_id\">" .
|
||||||
$line["title"] . "</a>";
|
$line["title"] . "</a>";
|
||||||
|
|
||||||
|
@ -472,6 +478,7 @@
|
||||||
print "<li class='$class'>";
|
print "<li class='$class'>";
|
||||||
|
|
||||||
print "<a href=\"?go=vf&id=$feed&ts=$id\">$marked_pic</a>";
|
print "<a href=\"?go=vf&id=$feed&ts=$id\">$marked_pic</a>";
|
||||||
|
print "<a href=\"?go=vf&id=$feed&tp=$id\">$published_pic</a>";
|
||||||
|
|
||||||
print $content_link;
|
print $content_link;
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,17 @@
|
||||||
header("Location: tt-rss.php?$query_string");
|
header("Location: tt-rss.php?$query_string");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$tp_id = db_escape_string($_GET["tp"]);
|
||||||
|
|
||||||
|
if ($go == "vf" && $tp_id) {
|
||||||
|
$result = db_query($link, "UPDATE ttrss_user_entries SET published = NOT published
|
||||||
|
WHERE ref_id = '$tp_id' AND owner_uid = " . $_SESSION["uid"]);
|
||||||
|
$query_string = preg_replace("/&tp=[0-9]*/", "", $_SERVER["QUERY_STRING"]);
|
||||||
|
header("Location: tt-rss.php?$query_string");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
|
Loading…
Reference in New Issue