root/modules/help.php

Revision 1716, 0.7 kB (checked in by Andrew Dolgov <fox@madoka.spb.ru>, 2 years ago)

[project @ help uses popup window, recolor infoBox, use subscribe dialog in prefs]

Line 
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=\"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", $_GET["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             <input type='submit' class='button'           
21             onclick=\"javascript:window.close()\"
22             value=\"".__('Close this window')."\"></div>";
23
24         if (!$_GET["noheaders"]) {
25             print "</body></html>";
26         }
27     }
28 ?>
29
Note: See TracBrowser for help on using the browser.