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