]>
git.wh0rd.org - tt-rss.git/blob - classes/backend.php
6fa31864d6bcc507c7e801ad7eb7c57cde2386e3
2 class Backend
extends Handler
{
4 header("Content-type: text/html");
5 print __("Loading, please wait...") . " " .
6 "<img src='images/indicator_tiny.gif'>";
9 function digestTest() {
10 header("Content-type: text/html");
12 require_once "digest.php";
14 $rv = prepare_headlines_digest($this->link
, $_SESSION['uid'], 1, 1000);
16 $rv[3] = "<pre>" . $rv[3] . "</pre>";
21 private function display_main_help() {
22 $info = get_hotkeys_info($this->link
);
23 $imap = get_hotkeys_map($this->link
);
31 foreach ($imap[1] as $sequence => $action) {
32 if (!isset($omap[$action])) {
33 $omap[$action] = isset($tinycharmap[$sequence]) ?
$tinycharmap[$sequence] :
38 print "<ul class='helpKbList' id='helpKbList'>";
40 print "<h2>" . __("Keyboard Shortcuts") . "</h2>";
42 foreach ($info as $section => $hotkeys) {
44 print "<li><h3>" . $section . "</h3></li>";
46 foreach ($hotkeys as $action => $description) {
48 print "<span class='hksequence'>" . $omap[$action] . "</span>";
57 print "<p><a target=\"_blank\" href=\"http://tt-rss.org/wiki/InterfaceTips\">".
58 __("Other interface tips are available in the Tiny Tiny RSS wiki.") .
63 $topic = basename($_REQUEST["topic"]);
67 $this->display_main_help();
70 //$this->display_prefs_help();
73 print "<p>".__("Help topic not found.")."</p>";
76 print "<div align='center'>";
77 print "<button dojoType=\"dijit.form.Button\"
78 onclick=\"return dijit.byId('helpDlg').hide()\">".
79 __('Close this window')."</button>";
82 /* if (file_exists("help/$topic.php")) {
83 include("help/$topic.php");
85 print "<p>".__("Help topic not found.")."</p>";
87 /* print "<div align='center'>
88 <button onclick=\"javascript:window.close()\">".
89 __('Close this window')."</button></div>"; */