]> git.wh0rd.org - tt-rss.git/blame - modules/help.php
experimental split of public calls into public.php (refs #389)
[tt-rss.git] / modules / help.php
CommitLineData
ef8be8ea
AD
1<?php
2 function module_help($link) {
3
b4e75b2a 4 if (!$_REQUEST["noheaders"]) {
ef8be8ea 5 print "<html><head>
2a52d96f 6 <title>".__('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
b4e75b2a 12 $tid = sprintf("%d", $_REQUEST["tid"]);
ef8be8ea 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 19 print "<div align='center'>
f88c7814
AD
20 <button onclick=\"javascript:window.close()\">".
21 __('Close this window')."</button></div>";
ef8be8ea 22
b4e75b2a 23 if (!$_REQUEST["noheaders"]) {
ef8be8ea
AD
24 print "</body></html>";
25 }
26 }
27?>