Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First pass at a simple help system

  • Loading branch information...
commit 229b6580e1026dda0e4a2e5fdb64b2f6f18bdf46 1 parent 97e696e
martin authored
Showing with 23 additions and 0 deletions.
  1. +23 −0 help.php
View
23 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>
+
Please sign in to comment.
Something went wrong with that request. Please try again.