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