]> git.wh0rd.org - tt-rss.git/blob - modules/help.php
415870d4597a4c98d8ea900d1b6eadbe3149f1e5
[tt-rss.git] / modules / help.php
1 <?php
2 function module_help($link) {
3
4 if (!$_GET["noheaders"]) {
5 print "<html><head>
6 <title>".__('Help')."</title>
7 <link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">
8 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
9 </head><body>";
10 }
11
12 $tid = sprintf("%d", $_GET["tid"]);
13
14 if (file_exists("help/$tid.php")) {
15 include("help/$tid.php");
16 } else {
17 print "<p>".__("Help topic not found.")."</p>";
18 }
19 print "<div align='center'>
20 <input type='submit' class='button'
21 onclick=\"javascript:window.close()\"
22 value=\"".__('Close this window')."\"></div>";
23
24 if (!$_GET["noheaders"]) {
25 print "</body></html>";
26 }
27 }
28 ?>