]> git.mjollnir.org Git - moodle.git/commitdiff
First pass at a simple help system
authormartin <martin>
Mon, 11 Mar 2002 03:18:13 +0000 (03:18 +0000)
committermartin <martin>
Mon, 11 Mar 2002 03:18:13 +0000 (03:18 +0000)
help.php [new file with mode: 0644]

diff --git a/help.php b/help.php
new file mode 100644 (file)
index 0000000..cf835ac
--- /dev/null
+++ b/help.php
@@ -0,0 +1,23 @@
+<?PHP
+  /// help.php - prints a very simple page and includes a
+  ///            page content or a string from elsewhere
+  ///            Usually this will appear in a popup 
+  ///            See help() in lib/moodlelib.php
+
+  include("config.php");
+
+  if (ereg("\\.\\.", $file)) {
+      error("Error: Filenames can not contain \"..\"");
+  }
+
+
+?>
+<HTML>
+<HEAD>
+<LINK rel="stylesheet" href="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme?>/styles.css">
+</HEAD>
+<BODY BGCOLOR="<?=$THEME->body ?>">
+<? include("lang/$CFG->lang/$file"); ?>
+</BODY>
+</HTML>
+