summaryrefslogtreecommitdiff
path: root/modules/help.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-10-01 11:05:20 +0100
committerAndrew Dolgov <[email protected]>2006-10-01 11:05:20 +0100
commitef8be8ea8da90596d321bc25e88c48121715ed18 (patch)
tree72a50c5f16ada4380942824280ed7859527cfa03 /modules/help.php
parent10b443bd5932dd3b88113b03b4182b3c7f4d49df (diff)
split backend.php into modules, backend cleanups
Diffstat (limited to 'modules/help.php')
-rw-r--r--modules/help.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/help.php b/modules/help.php
new file mode 100644
index 000000000..90c63cfb8
--- /dev/null
+++ b/modules/help.php
@@ -0,0 +1,36 @@
+<?php
+ function module_help($link) {
+
+ if (!$_GET["noheaders"]) {
+ print "<html><head>
+ <title>Tiny Tiny RSS : Help</title>
+ <link rel=\"stylesheet\" href=\"tt-rss.css\" type=\"text/css\">
+ <script type=\"text/javascript\" src=\"prototype.js\"></script>
+ <script type=\"text/javascript\" src=\"functions.js?$script_dt_add\"></script>
+ <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
+ </head><body>";
+ }
+
+ $tid = sprintf("%d", $_GET["tid"]);
+
+ print "<div id=\"infoBoxTitle\">Help</div>";
+
+ print "<div class='infoBoxContents'>";
+
+ if (file_exists("help/$tid.php")) {
+ include("help/$tid.php");
+ } else {
+ print "<p>Help topic not found.</p>";
+ }
+
+ print "</div>";
+
+ print "<div align='center'>
+ <input type='submit' class='button'
+ onclick=\"closeInfoBox()\" value=\"Close this window\"></div>";
+
+ if (!$_GET["noheaders"]) {
+ print "</body></html>";
+ }
+ }
+?>