]> git.wh0rd.org Git - tt-rss.git/blob - modules/help.php
schema: mysql: remove foreign key to ttrss_themes before dropping theme_id from ttrss...
[tt-rss.git] / modules / help.php
1 <?php
2         function module_help($link) {
3
4                 if (!$_REQUEST["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", $_REQUEST["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                         <button onclick=\"javascript:window.close()\">".
21                         __('Close this window')."</button></div>";
22
23                 if (!$_REQUEST["noheaders"]) { 
24                         print "</body></html>";
25                 }
26         }
27 ?>