";
}
function digestTest() {
header("Content-type: text/html");
require_once "digest.php";
$rv = 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 "";
print "" . __("Keyboard Shortcuts") . "
";
foreach ($info as $section => $hotkeys) {
print "" . $section . "
";
foreach ($hotkeys as $action => $description) {
if (is_array($omap[$action])) {
foreach ($omap[$action] as $sequence) {
if (strpos($sequence, "|") !== FALSE) {
$sequence = substr($sequence,
strpos($sequence, "|")+1,
strlen($sequence));
} else {
$keys = explode(" ", $sequence);
for ($i = 0; $i < count($keys); $i++) {
if (strlen($keys[$i]) > 1) {
$tmp = '';
foreach (str_split($keys[$i]) as $c) {
switch ($c) {
case '*':
$tmp .= __('Shift') . '+';
break;
case '^':
$tmp .= __('Ctrl') . '+';
break;
default:
$tmp .= $c;
}
}
$keys[$i] = $tmp;
}
}
$sequence = join(" ", $keys);
}
print "- ";
print "$sequence";
print $description;
print "
";
}
}
}
}
print "
";
}
function help() {
$topic = basename($_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")) {
include("help/$topic.php");
} else {
print "".__("Help topic not found.")."
";
} */
/* print "
"; */
}
}
?>