X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=classes%2Fbackend.php;h=d5d0f5a01ba1b94e9fa2c6ceb57019c091837b6d;hb=07fd4f8d9d4f301f5ad88ff9e80f042fc3eb0c36;hp=4d1e99a613b8cfe07a1ecf089d8433e59e282965;hpb=8437c066e1785511d7baaf3340c950d8ab66229c;p=tt-rss.git diff --git a/classes/backend.php b/classes/backend.php index 4d1e99a6..d5d0f5a0 100644 --- a/classes/backend.php +++ b/classes/backend.php @@ -1,40 +1,116 @@ "; } - function digestSend() { - define('PREFS_NO_CACHE', true); - - send_headlines_digests($this->link); - } - function digestTest() { header("Content-type: text/html"); - $rv = prepare_headlines_digest($this->link, $_SESSION['uid'], 1, 1000); + $rv = Digest::prepare_headlines_digest($_SESSION['uid'], 1, 1000); $rv[3] = "
" . $rv[3] . "
"; print_r($rv); } + private function display_main_help() { + $info = get_hotkeys_info(); + $imap = get_hotkeys_map(); + $omap = array(); + + foreach ($imap[1] as $sequence => $action) { + if (!isset($omap[$action])) $omap[$action] = array(); + + array_push($omap[$action], $sequence); + } + + print_notice("". + __("Other interface tips are available in the Tiny Tiny RSS wiki.") . + ""); + + print ""; + } + function help() { - $topic = basename($_REQUEST["topic"]); + $topic = basename(clean($_REQUEST["topic"])); + + switch ($topic) { + case "main": + $this->display_main_help(); + break; + case "prefs": + //$this->display_prefs_help(); + break; + default: + print "

".__("Help topic not found.")."

"; + } + + print "
"; + print ""; + print "
"; - if (file_exists("help/$topic.php")) { + /* if (file_exists("help/$topic.php")) { include("help/$topic.php"); } else { print "

".__("Help topic not found.")."

"; - } + } */ /* print "
"; */ } -} -?> +} \ No newline at end of file