]> git.wh0rd.org - tt-rss.git/blame - modules/help.php
release 1.2.7
[tt-rss.git] / modules / help.php
CommitLineData
ef8be8ea
AD
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?>