Some blank index.html files to prevent browsing
[moodle.git] / error / index.php
index a0717d4..3728e31 100644 (file)
     
     print_header("$site->fullname:Error", "$site->fullname: Error 404", "", "form.text");
 
-    print_simple_box("An unusual error occurred (tried to reach a page that doesn't exist).<P align=center>$REQUEST_URI", "center", "", "$THEME->cellheading");
+    print_simple_box("An unusual error occurred (tried to reach a page that doesn't exist).<P align=center>$REDIRECT_URL", "center", "", "$THEME->cellheading");
   
 ?>
   
   <CENTER>
   <P>If you have time, please let us know what you were trying 
      to do when the error occurred:
-  <P><FORM action="<?=$CFG->wwwroot ?>/error/index.php" name=form method=post>
+  <P><FORM action="<?php echo $CFG->wwwroot ?>/error/index.php" name=form method=post>
      <TEXTAREA ROWS=3 COLS=50 NAME=text></TEXTAREA><BR>
-     <INPUT TYPE=hidden NAME=referer VALUE="<?=$HTTP_REFERER ?>">
-     <INPUT TYPE=hidden NAME=requested VALUE="<?=$REQUEST_URI ?>">
+     <INPUT TYPE=hidden NAME=referer VALUE="<?php echo $HTTP_REFERER ?>">
+     <INPUT TYPE=hidden NAME=requested VALUE="<?php echo $REQUEST_URI ?>">
      <INPUT TYPE=submit VALUE="Send this off">
      </FORM>
-<?
+<?php
 
   print_footer();