wwwroot/admin/"); } if ($USER) { $headerbutton = update_course_icon($site->id); } else { $headerbutton = "Log in"; } print_header("$site->fullname", "$site->fullname", "", "", "summary))."\">", true, $headerbutton); ?>
format > 0 or $readings or $USER->editing) { print_simple_box("Main Menu", $align="CENTER", $width="100%", $color="$THEME->cellheading"); if ($site->format > 0 ) { echo "
  • Courses
  • "; } if ($readings) { foreach ($readings as $reading) { echo "
  • $reading"; } } if ($USER->editing) { echo "

    wwwroot/course/mod.php?id=$site->id&week=0&add=reading\">Add Reading...

    "; } else { echo "

    "; } } if (isadmin()) { print_simple_box("Admin", $align="CENTER", $width="100%", $color="$THEME->cellheading"); echo "
  • wwwroot/admin/\">Admin Page...
  • "; echo "
  • wwwroot/course/log.php?id=$site->id\">Site logs...
  • "; echo "
  • wwwroot/admin/site.php\">Site settings...
  • "; } ?>
    format == 0 ) { print_simple_box("Available Courses", $align="CENTER", $width="100%", $color="$THEME->cellheading"); echo "\"\"
    "; print_all_courses(); } else { if (! $newsforum = get_course_news_forum($site->id)) { error("Could not find or create a main forum for the site"); } if ($USER) { $SESSION->fromdiscuss = "$CFG->wwwroot"; if (is_subscribed($USER->id, $newsforum->id)) { $subtext = "Unsubscribe from news"; } else { $subtext = "Subscribe me by mail"; } $headertext = "
    Site News id\">$subtext
    "; } else { $headertext = "Site News"; } print_simple_box("$headertext", $align="CENTER", $width="100%", $color="$THEME->cellheading"); echo "\"\"
    "; forum_latest_topics($newsforum->id, $site->format); } ?>
    editing) { $site->summary .= "
    "; } print_simple_box($site->summary, $align="", $width="100%", $color="$THEME->cellheading"); ?>
    dirroot/theme/$CFG->theme/footer.html"); ?>