2006-10-01 12:05:20 +02:00
|
|
|
<?php
|
|
|
|
function module_help($link) {
|
|
|
|
|
2009-12-29 16:49:27 +01:00
|
|
|
if (!$_REQUEST["noheaders"]) {
|
2006-10-01 12:05:20 +02:00
|
|
|
print "<html><head>
|
2009-01-25 18:19:09 +01:00
|
|
|
<title>".__('Help')."</title>
|
2007-05-14 07:41:04 +02:00
|
|
|
<link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">
|
2006-10-01 12:05:20 +02:00
|
|
|
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
|
|
|
|
</head><body>";
|
|
|
|
}
|
|
|
|
|
2009-12-29 16:49:27 +01:00
|
|
|
$tid = sprintf("%d", $_REQUEST["tid"]);
|
2006-10-01 12:05:20 +02:00
|
|
|
|
|
|
|
if (file_exists("help/$tid.php")) {
|
|
|
|
include("help/$tid.php");
|
|
|
|
} else {
|
2007-03-05 10:37:40 +01:00
|
|
|
print "<p>".__("Help topic not found.")."</p>";
|
2006-10-01 12:05:20 +02:00
|
|
|
}
|
|
|
|
print "<div align='center'>
|
|
|
|
<input type='submit' class='button'
|
2007-05-14 07:41:04 +02:00
|
|
|
onclick=\"javascript:window.close()\"
|
|
|
|
value=\"".__('Close this window')."\"></div>";
|
2006-10-01 12:05:20 +02:00
|
|
|
|
2009-12-29 16:49:27 +01:00
|
|
|
if (!$_REQUEST["noheaders"]) {
|
2006-10-01 12:05:20 +02:00
|
|
|
print "</body></html>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|