]> git.wh0rd.org - tt-rss.git/blobdiff - classes/backend.php
move authentication modules to plugins/
[tt-rss.git] / classes / backend.php
index 47fc2d826e5a3691c1eac1939498ceb96cbad1e6..42dfb54742868e13f3c55a7e6576df4b63f5ca4b 100644 (file)
@@ -1,10 +1,35 @@
 <?php
 class Backend extends Handler {
-
        function loading() {
                header("Content-type: text/html");
                print __("Loading, please wait...") . " " .
                        "<img src='images/indicator_tiny.gif'>";
        }
+
+       function digestTest() {
+               header("Content-type: text/html");
+
+               require_once "digest.php";
+
+               $rv = prepare_headlines_digest($this->link, $_SESSION['uid'], 1, 1000);
+
+               $rv[3] = "<pre>" . $rv[3] . "</pre>";
+
+               print_r($rv);
+       }
+
+       function help() {
+               $topic = basename($_REQUEST["topic"]);
+
+               if (file_exists("help/$topic.php")) {
+                       include("help/$topic.php");
+               } else {
+                       print "<p>".__("Help topic not found.")."</p>";
+               }
+               /* print "<div align='center'>
+                       <button onclick=\"javascript:window.close()\">".
+                       __('Close this window')."</button></div>"; */
+
+       }
 }
 ?>