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