]> git.wh0rd.org - tt-rss.git/blob - classes/backend.php
implement digestTest back
[tt-rss.git] / classes / backend.php
1 <?php
2 class Backend extends Handler {
3
4 function loading() {
5 header("Content-type: text/html");
6 print __("Loading, please wait...") . " " .
7 "<img src='images/indicator_tiny.gif'>";
8 }
9
10 function digestSend() {
11 define('PREFS_NO_CACHE', true);
12
13 send_headlines_digests($this->link);
14 }
15
16 function digestTest() {
17 header("Content-type: text/html");
18
19 $rv = prepare_headlines_digest($this->link, $_SESSION['uid'], 1, 1000);
20
21 $rv[3] = "<pre>" . $rv[3] . "</pre>";
22
23 print_r($rv);
24 }
25
26 function help() {
27 $topic = basename($_REQUEST["topic"]);
28
29 if (file_exists("help/$topic.php")) {
30 include("help/$topic.php");
31 } else {
32 print "<p>".__("Help topic not found.")."</p>";
33 }
34 /* print "<div align='center'>
35 <button onclick=\"javascript:window.close()\">".
36 __('Close this window')."</button></div>"; */
37
38 }
39 }
40 ?>