add catchall backend class
This commit is contained in:
parent
1f203144a2
commit
611efae712
|
@ -181,10 +181,6 @@
|
|||
module_pref_instances($link);
|
||||
break; // pref-instances
|
||||
|
||||
case "digestTest":
|
||||
print_r(prepare_headlines_digest($link, $_SESSION["uid"]));
|
||||
break; // digestTest
|
||||
|
||||
case "digestSend":
|
||||
send_headlines_digests($link);
|
||||
break; // digestSend
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
class Article extends Handler {
|
||||
|
||||
function index() {
|
||||
function redirect() {
|
||||
$id = db_escape_string($_REQUEST['id']);
|
||||
|
||||
$result = db_query($this->link, "SELECT link FROM ttrss_entries, ttrss_user_entries
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
class Backend extends Handler {
|
||||
|
||||
function loading() {
|
||||
header("Content-type: text/html");
|
||||
print __("Loading, please wait...") . " " .
|
||||
"<img src='images/indicator_tiny.gif'>";
|
||||
}
|
||||
}
|
||||
?>
|
|
@ -805,7 +805,7 @@ function tweet_article(id) {
|
|||
var d = new Date();
|
||||
var ts = d.getTime();
|
||||
|
||||
var w = window.open('backend.php?op=loading', 'ttrss_tweet',
|
||||
var w = window.open('backend.php?op=backend&method=loading', 'ttrss_tweet',
|
||||
"status=0,toolbar=0,location=0,width=500,height=400,scrollbars=1,menubar=0");
|
||||
|
||||
new Ajax.Request("backend.php", {
|
||||
|
|
|
@ -1770,7 +1770,7 @@ function getLastVisibleHeadlineId() {
|
|||
|
||||
function openArticleInNewWindow(id) {
|
||||
toggleUnread(id, 0, false);
|
||||
window.open("backend.php?op=article&id=" + id);
|
||||
window.open("backend.php?op=article&method=redirect&id=" + id);
|
||||
}
|
||||
|
||||
function isCdmMode() {
|
||||
|
@ -2003,7 +2003,7 @@ function tweetArticle(id) {
|
|||
var d = new Date();
|
||||
var ts = d.getTime();
|
||||
|
||||
var w = window.open('backend.php?op=loading', 'ttrss_tweet',
|
||||
var w = window.open('backend.php?op=backend&method=loading', 'ttrss_tweet',
|
||||
"status=0,toolbar=0,location=0,width=500,height=400,scrollbars=1,menubar=0");
|
||||
|
||||
new Ajax.Request("backend.php", {
|
||||
|
|
Loading…
Reference in New Issue