]> git.wh0rd.org - tt-rss.git/blame - classes/backend.php
only enable ob_gzhandler if it exists
[tt-rss.git] / classes / backend.php
CommitLineData
611efae7
AD
1<?php
2class 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 }
4f09f594
AD
9
10 function digestSend() {
61c1812f
AD
11 define('PREFS_NO_CACHE', true);
12
8437c066
AD
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);
4f09f594
AD
24 }
25
26 function help() {
66be620a 27 $topic = basename($_REQUEST["topic"]);
4f09f594 28
66be620a
AD
29 if (file_exists("help/$topic.php")) {
30 include("help/$topic.php");
4f09f594
AD
31 } else {
32 print "<p>".__("Help topic not found.")."</p>";
33 }
66be620a 34 /* print "<div align='center'>
4f09f594 35 <button onclick=\"javascript:window.close()\">".
66be620a 36 __('Close this window')."</button></div>"; */
4f09f594
AD
37
38 }
611efae7
AD
39}
40?>