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 helpbutton() in lib/moodlelib.php
9 optional_variable($file, "");
10 optional_variable($text, "No text to display");
11 optional_variable($module, "moodle");
13 if (ereg("\\.\\.", $file)) {
14 error("Error: Filenames can not contain \"..\"");
20 <LINK rel
="stylesheet" href
="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme?>/styles.css">
22 <BODY BGCOLOR
="<?=$THEME->body ?>">
24 if ($module == "moodle") {
25 $langpath = "$CFG->dirroot/lang";
27 $langpath = "$CFG->dirroot/mod/$module/lang";
30 if (file_exists("$langpath/$CFG->lang/page/$file")) {
31 include("$langpath/$CFG->lang/page/$file");
33 include("$langpath/en/page/$file");