]> git.mjollnir.org Git - moodle.git/commitdiff
Made an "Admin" section on the frojnt page
authormartin <martin>
Tue, 11 Dec 2001 04:30:58 +0000 (04:30 +0000)
committermartin <martin>
Tue, 11 Dec 2001 04:30:58 +0000 (04:30 +0000)
index.php

index 7f9fa8b2969b40e4d5fcecd6a1573e145153a367..8b45088e39748d20e3837de6a9682000e6699f2c 100644 (file)
--- a/index.php
+++ b/index.php
 
       <? include("mod/reading/lib.php"); 
          list_all_readings();
-         echo "<P>";
-         print_editing_switch($site->id); 
+      ?>
+
+        <BR><BR>
+
+      <?
+         if (isadmin()) {
+             print_simple_box("Admin", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+             echo "<LI><A HREF=\"$CFG->wwwroot/admin/\">Admin Page</A></LI>";
+             echo "<LI>";
+             print_editing_switch($site->id); 
+         }
       ?>
 
     </TD>