From a6ada9598a44560e161b724d653c00bc9e659a07 Mon Sep 17 00:00:00 2001 From: jerome mouneyrac Date: Wed, 2 Jun 2010 07:07:27 +0000 Subject: [PATCH] registration MDL-19313 delete old registration page --- admin/register.php | 181 --------------------------------------------- 1 file changed, 181 deletions(-) delete mode 100644 admin/register.php diff --git a/admin/register.php b/admin/register.php deleted file mode 100644 index be78389d6c6..00000000000 --- a/admin/register.php +++ /dev/null @@ -1,181 +0,0 @@ -libdir.'/adminlib.php'); - - require_login(); - - require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)); - - - admin_externalpage_setup('adminregistration'); - - $site = get_site(); - - if (!$admin = get_admin()) { - print_error('noadmins', 'error'); - } - - if (!$admin->country and $CFG->country) { - $admin->country = $CFG->country; - } - -/// Print the header stuff - echo $OUTPUT->header(); - -/// Print headings - $stradministration = get_string("administration"); - $strregistration = get_string("registration"); - $strregistrationinfo = get_string("registrationinfo"); - - echo $OUTPUT->heading($strregistration); - - echo $OUTPUT->box($strregistrationinfo); - - -/// Print the form - - echo "
\n"; - echo '
'; - echo ''.get_string("registrationinfotitle").''; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "wwwroot\" />\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "version\" />\n"; - echo "release\" />\n"; - - echo '
'; - echo '
'; - echo '
'.$CFG->wwwroot.'
'; - echo '
'; - - echo '
'; - echo '
'; - echo '
'."$CFG->release ($CFG->version)".'
'; - echo '
'; - - echo '
'; - echo '
'; - echo '
'; - echo ''; - echo '
'; - echo '
'; - - echo '
'; - echo '
'; - echo '
'; - echo html_writer::select(get_string_manager()->get_list_of_countries(), "country", $admin->country, array(''=>get_string("selectacountry")."...")); - echo '
'; - echo '
'; - - echo '
'; - echo ''; - echo '
'; - $options = array(); - $options[0] = get_string("publicdirectory0"); - $options[1] = get_string("publicdirectory1"); - $options[2] = get_string("publicdirectory2"); - echo html_writer::select($options, "public", "2", false); - echo '
'; - echo '
'; - - echo '
'; - echo '
'; - echo '
'; - $options = array(); - $options[0] = get_string("registrationcontactno"); - $options[1] = get_string("registrationcontactyes"); - echo html_writer::select($options, "contact", "1", false); - echo '
'; - echo '
'; - - echo '
'; - echo '
'; - echo '
'; - - $count = $DB->count_records('course')-1; - echo get_string("courses").": ".$count; - echo "\n"; - echo '
'; - - $count = $DB->count_records('user', array('deleted'=>0)); - echo get_string("users").": ".$count; - echo "\n"; - echo '
'; - - // total number of role assignments - $count = $DB->count_records('role_assignments'); - echo get_string('roleassignments', 'role').": ".$count; - echo "\n"; - echo '
'; - - // first find all distinct roles with mod/course:update - // please change the name and strings to something appropriate to reflect the new data collected - $sql = "SELECT COUNT(DISTINCT u.id) - FROM {role_capabilities} rc, - {role_assignments} ra, - {user} u - WHERE (rc.capability = ?) - AND rc.roleid = ra.roleid - AND u.id = ra.userid"; - - $count = $DB->count_records_sql($sql, array('moodle/course:update')); - echo get_string("teachers").": ".$count; - echo "\n"; - echo '
'; - - $count = $DB->count_records('forum_posts'); - echo get_string("posts", 'forum').": ".$count; - echo "\n"; - echo '
'; - - $count = $DB->count_records('question'); - echo get_string("questions", 'quiz').": ".$count; - echo "\n"; - echo '
'; - - $count = $DB->count_records('resource'); - echo get_string("modulenameplural", "resource").": ".$count; - echo "\n"; - echo '
'; - echo '
'; - - echo '
'; - echo '
'; - echo '
'; - echo ""; - echo '
'; - echo '
'; - - echo '
'; - echo '
'; - echo '
'; - echo "email\" />"; - echo '
'; - echo '
'; - - echo '
'; - echo '
'; - echo '
'; - $options = array(); - $options[0] = get_string("registrationno"); - $options[1] = get_string("registrationyes"); - echo html_writer::select($options, "mailme", "1", false); - echo '
'; - echo '
'; - - echo '
'; - - echo "
\n"; - - echo "
\n"; - -/// Print footer - echo $OUTPUT->footer();