]> git.wh0rd.org - tt-rss.git/blame - modules/help.php
help uses popup window, recolor infoBox, use subscribe dialog in prefs
[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>
442d77f1 7 <link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">
ef8be8ea
AD
8 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
9 </head><body>";
10 }
11
12 $tid = sprintf("%d", $_GET["tid"]);
13
ef8be8ea
AD
14 if (file_exists("help/$tid.php")) {
15 include("help/$tid.php");
16 } else {
31cc42f6 17 print "<p>".__("Help topic not found.")."</p>";
ef8be8ea 18 }
ef8be8ea
AD
19 print "<div align='center'>
20 <input type='submit' class='button'
442d77f1
AD
21 onclick=\"javascript:window.close()\"
22 value=\"".__('Close this window')."\"></div>";
ef8be8ea
AD
23
24 if (!$_GET["noheaders"]) {
25 print "</body></html>";
26 }
27 }
28?>