ttrss/modules/help.php

28 lines
674 B
PHP
Raw Normal View History

<?php
function module_help($link) {
if (!$_REQUEST["noheaders"]) {
print "<html><head>
2009-01-25 17:19:09 +00:00
<title>".__('Help')."</title>
<link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
</head><body>";
}
$tid = sprintf("%d", $_REQUEST["tid"]);
if (file_exists("help/$tid.php")) {
include("help/$tid.php");
} else {
2007-03-05 09:37:40 +00:00
print "<p>".__("Help topic not found.")."</p>";
}
print "<div align='center'>
2010-01-12 11:44:41 +00:00
<button onclick=\"javascript:window.close()\">".
__('Close this window')."</button></div>";
if (!$_REQUEST["noheaders"]) {
print "</body></html>";
}
}
?>