country and $CFG->country) { $admin->country = $CFG->country; } if (empty($CFG->siteidentifier)) { // Unique site identification code set_config('siteidentifier', random_string(32)); } /// Print headings $stradministration = get_string("administration"); $strregistration = get_string("registration"); $strregistrationinfo = get_string("registrationinfo"); print_header("$site->shortname: $strregistration", "$site->fullname", "admin/index.php\">$stradministration -> $strregistration"); print_heading($strregistration); print_simple_box($strregistrationinfo, "center", "70%"); echo "
"; /// Print the form print_simple_box_start("center", ""); echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "wwwroot\">\n"; echo "siteidentifier\">\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "version\">\n"; echo "release\">\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
".get_string("location")."
Moodle URL:$CFG->wwwroot
".get_string("currentversion").":$CFG->release ($CFG->version)
".get_string("fullsitename").":fullname\">
".get_string("country").":"; choose_from_menu (get_list_of_countries(), "country", $admin->country, get_string("selectacountry")."...", "", ""); echo "
country\" title=\"See the current list of sites\" target=_blank>".get_string("publicdirectory").":"; $options[0] = get_string("publicdirectory0"); $options[1] = get_string("publicdirectory1"); $options[2] = get_string("publicdirectory2"); choose_from_menu ($options, "public", "2", "", "", ""); unset($options); echo "
".get_string("registrationcontact").":\n"; $options[0] = get_string("registrationcontactno"); $options[1] = get_string("registrationcontactyes"); choose_from_menu ($options, "contact", "1", "", "", ""); unset($options); echo "
".get_string("statistics").":"; echo "
(".get_string("notpublic").')'; echo "
"; $count = count_records('course')-1; echo get_string("courses").": ".$count; echo "\n"; echo '
'; $count = count_records('user')-1; echo get_string("users").": ".$count; echo "\n"; echo '
'; $count = count_records('user_students'); echo get_string("enrolments").": ".$count; echo "\n"; echo '
'; $count = count_records('user_teachers'); echo get_string("teachers").": ".$count; echo "\n"; echo '
'; $count = count_records('forum_posts'); echo get_string("posts", 'forum').": ".$count; echo "\n"; echo '
'; $count = count_records('quiz_questions'); echo get_string("questions", 'quiz').": ".$count; echo "\n"; echo '
'; $count = count_records('resource'); echo get_string("modulenameplural", "resource").": ".$count; echo "\n"; echo '
'; echo "

".get_string("administrator")."
".get_string("administrator").":
".get_string("email").":email\">
".get_string("registrationemail").":\n"; $options[0] = get_string("registrationno"); $options[1] = get_string("registrationyes"); choose_from_menu ($options, "mailme", "1", "", "", ""); unset($options); echo "
 
\n"; echo "
\n"; print_simple_box_end(); echo "
\n"; print_footer(); ?>