]> git.mjollnir.org Git - moodle.git/commitdiff
More accessible log in button up top
authormartin <martin>
Sun, 16 Jun 2002 03:25:10 +0000 (03:25 +0000)
committermartin <martin>
Sun, 16 Jun 2002 03:25:10 +0000 (03:25 +0000)
index.php

index ed9dadb374b04dafb510d3b450341701adb5c209..7df04482d9f47eb8c9a44c72f1081e58dbb1da72 100644 (file)
--- a/index.php
+++ b/index.php
@@ -8,9 +8,14 @@
         redirect("$CFG->wwwroot/admin/");
     }
 
+    if ($USER) {
+        $headerbutton = update_course_icon($site->id);
+    } else {
+        $headerbutton = "<FONT SIZE=2><A HREF=\"login/\">Log in</A></FONT>";
+    }
     print_header("$site->fullname", "$site->fullname", "", "",
                  "<META NAME=\"Description\" CONTENT=\"".stripslashes(strip_tags($site->summary))."\">",
-                 true, update_course_icon($site->id));
+                 true, $headerbutton);
 
 
 ?>