First pass at a simple help system
[moodle.git] / help.php
CommitLineData
229b6580 1<?PHP
2 /// help.php - prints a very simple page and includes a
3 /// page content or a string from elsewhere
4 /// Usually this will appear in a popup
5 /// See help() in lib/moodlelib.php
6
7 include("config.php");
8
9 if (ereg("\\.\\.", $file)) {
10 error("Error: Filenames can not contain \"..\"");
11 }
12
13
14?>
15<HTML>
16<HEAD>
17<LINK rel="stylesheet" href="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme?>/styles.css">
18</HEAD>
19<BODY BGCOLOR="<?=$THEME->body ?>">
20<? include("lang/$CFG->lang/$file"); ?>
21</BODY>
22</HTML>
23