Doesn't display discussions AND forums in the Activities
[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 ?>">
ed5ab9f7 20<? if (file_exists("lang/$CFG->lang/page/$file")) {
21 include("lang/$CFG->lang/page/$file");
22 } else {
23 include("lang/en/page/$file");
24 }
25?>
229b6580 26</BODY>
27</HTML>
28