summaryrefslogtreecommitdiff
path: root/modules/help.php
blob: 716a756dcabb1e1a214e400428be028f19064977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
	function module_help($link) {

		if (!$_REQUEST["noheaders"]) {
			print "<html><head>
				<title>".__('Help')."</title>
				<link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">
				<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
				</head><body>";
		}

		$tid = sprintf("%d", $_REQUEST["tid"]);

		if (file_exists("help/$tid.php")) {
			include("help/$tid.php");
		} else {
			print "<p>".__("Help topic not found.")."</p>";
		}
		print "<div align='center'>
			<button onclick=\"javascript:window.close()\">".
			__('Close this window')."</button></div>";

		if (!$_REQUEST["noheaders"]) { 
			print "</body></html>";
		}
	}
?>