From: moodler Date: Sat, 21 Aug 2004 17:15:07 +0000 (+0000) Subject: Here finally is an admin interface for controlling the new enrolment plugins. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0f093efab2411a95c8c01e74398c4161b4750f1c;p=moodle.git Here finally is an admin interface for controlling the new enrolment plugins. It's not at all well-tested yet (I made a lot of changes to it just tonight) but it's late and I am literally sick (with flu) and tired so I'm checking this in and going to bed. Please fix all the bugs for me. ;-) --- diff --git a/admin/enrol.php b/admin/enrol.php index d95d8fe36e..c43986c110 100644 --- a/admin/enrol.php +++ b/admin/enrol.php @@ -4,6 +4,7 @@ include("../config.php"); require_login(); + optional_variable($enrol, $CFG->enrol); if (!$site = get_site()) { redirect("index.php"); @@ -13,61 +14,66 @@ error("Only the admin can use this page"); } - if (isset($_GET['enrolment'])) { - $enrolname = $_GET['enrol']; - } else { - $enrolname = $CFG->enrol; - } - - require_once("$CFG->dirroot/enrol/$enrolname/enrol.php"); /// Open the class + require_once("$CFG->dirroot/enrol/$enrol/enrol.php"); /// Open the class $enrolment = new enrolment_plugin(); /// If data submitted, then process and store. - if ($config = data_submitted()) { - if ($enrolment->process_config($config)) { + if ($frm = data_submitted()) { + if ($enrolment->process_config($frm)) { + set_config('enrol', $frm->enrol); redirect("enrol.php", get_string("changessaved"), 1); } - } + } else { + $frm = $CFG; + } /// Otherwise fill and print the form. - $str = get_strings(array('enrolments', 'users', 'administration')); + /// get language strings + $str = get_strings(array('enrolments', 'users', 'administration', 'settings')); - if (empty($config)) { - $page->config = $CFG; - } else { - $page->config = $config; - } $modules = get_list_of_plugins("enrol"); foreach ($modules as $module) { - $page->options[$module] = get_string("enrolname", "enrol_$module"); + $options[$module] = get_string("enrolname", "enrol_$module"); } - asort($page->options); - - $form = $enrolment->config_form($page); + asort($options); print_header("$site->shortname: $str->enrolments", "$site->fullname", "$str->administration -> $str->users -> $str->enrolments"); - print_heading($page->options[$CFG->enrol]); + echo "
framename}\" name=\"enrolmenu\" method=\"post\" action=\"enrol.php\">"; + echo "

"; + - echo "

"; - echo "NOT COMPLETE"; - echo "

"; - echo "framename}\" NAME=\"authmenu\" method=\"post\" action=\"auth.php\">"; - print_string("chooseauthmethod","auth"); +/// Choose an enrolment method + echo get_string('chooseenrolmethod').': '; + choose_from_menu ($options, "enrol", $enrol, "", + "document.location='enrol.php?enrol='+document.enrolmenu.enrol.options[document.enrolmenu.enrol.selectedIndex].value", ""); - choose_from_menu ($options, "auth", $auth, "","document.location='auth.php?auth='+document.authmenu.auth.options[document.authmenu.auth.selectedIndex].value", ""); + echo "

"; + +/// Print current enrolment type description + print_simple_box_start("center", "80%", "$THEME->cellheading"); + print_heading($options[$enrol]); - echo "

"; - + print_simple_box_start("center", "60%", "$THEME->cellcontent"); + print_string("description", "enrol_$enrol"); + print_simple_box_end(); + echo "
"; + // print_heading($str->settings); + $enrolment->config_form($frm); + + echo "

\n"; + echo ""; + + print_simple_box_end(); print_footer(); diff --git a/admin/users.php b/admin/users.php index ade66ef70f..a7b29f1d41 100644 --- a/admin/users.php +++ b/admin/users.php @@ -33,7 +33,7 @@ $table->data[] = array("wwwroot/$CFG->admin/uploaduser.php\">".get_string("uploadusers")."", get_string("adminhelpuploadusers")); } - $table->data[] = array('', ''); + $table->data[] = array('', '
'); $table->data[] = array("".get_string("enrolments")."", get_string("adminhelpenrolments")); $table->data[] = array("".get_string("assignstudents")."", diff --git a/enrol/database/config.html b/enrol/database/config.html new file mode 100644 index 0000000000..847f827069 --- /dev/null +++ b/enrol/database/config.html @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

enrol_dbtype:

+ enrol_dbtype, '', '', ''); + ?> + + + +

enrol_dbhost:

+ + + +

enrol_dbuser:

+ + + +

enrol_dbpass:

+ + + +

enrol_dbname:

+ + + +

enrol_dbtable:

+ + + +

enrol_localcoursefield:

+ + + +

enrol_localuserfield:

+ + + +

enrol_remotecoursefield:

+ + + +

enrol_remoteuserfield:

+ + + +

enrol_allowinternal:

+ enrol_allowinternal) echo "checked=\"true\"" ?> /> + + +
diff --git a/enrol/database/enrol.php b/enrol/database/enrol.php index 608bb561a5..8cf26caea5 100644 --- a/enrol/database/enrol.php +++ b/enrol/database/enrol.php @@ -1,23 +1,6 @@ -dirroot/enrol/enrol.class.php"); - -/** - * - * $CFG->enrol_dbtype - * $CFG->enrol_dbhost - * $CFG->enrol_dbname - * $CFG->enrol_dbuser - * $CFG->enrol_dbpass - * $CFG->enrol_dbtable - * $CFG->enrol_localcoursefield - * $CFG->enrol_localuserfield - * $CFG->enrol_remotecoursefield - * $CFG->enrol_remoteuserfield - */ - - - +dirroot/enrol/enrol.class.php"); class enrolment_plugin extends enrolment_base { @@ -59,7 +42,7 @@ function get_student_courses(&$user) { /// to the respective remote fields $rs = $enroldb->Execute("SELECT * FROM $CFG->enrol_dbtable WHERE $CFG->enrol_remotecoursefield = '$localcoursevalue' - AND $CFG->enrol_remoteuserfield = '$user->{$CFG->enrol_localuserfield}' "); + AND $CFG->enrol_remoteuserfield = '{$user->$CFG->enrol_localuserfield}' "); /// If no records existed then student has been unenrolled externally. /// Unenrol locally and remove entry from the $user->student array @@ -80,7 +63,7 @@ function get_student_courses(&$user) { function print_entry($course) { global $CFG; - if (! empty($CFG->enrol_flatfileallowinternal) ) { + if (! empty($CFG->enrol_allowinternal) ) { parent::print_entry($course); } else { print_header(); @@ -93,7 +76,7 @@ function print_entry($course) { function check_entry($form, $course) { global $CFG; - if (! empty($CFG->enrol_flatfileallowinternal) ) { + if (! empty($CFG->enrol_allowinternal) ) { parent::check_entry($form, $course); } } @@ -104,8 +87,73 @@ function get_access_icons($course) { } +/// Overrise the base config_form() function +function config_form($frm) { + global $CFG; + include("$CFG->dirroot/enrol/database/config.html"); +} + +/// Override the base process_config() function +function process_config($config) { + + if (!isset($config->enrol_dbtype)) { + $config->enrol_dbtype = 'mysql'; + } + set_config('enrol_dbtype', $config->enrol_dbtype); + + if (!isset($config->enrol_dbhost)) { + $config->enrol_dbhost = ''; + } + set_config('enrol_dbhost', $config->enrol_dbhost); + + if (!isset($config->enrol_dbuser)) { + $config->enrol_dbuser = ''; + } + set_config('enrol_dbuser', $config->enrol_dbuser); + if (!isset($config->enrol_dbpass)) { + $config->enrol_dbpass = ''; + } + set_config('enrol_dbpass', $config->enrol_dbpass); + if (!isset($config->enrol_dbname)) { + $config->enrol_dbname = ''; + } + set_config('enrol_dbname', $config->enrol_dbname); + + if (!isset($config->enrol_dbtable)) { + $config->enrol_dbtable = ''; + } + set_config('enrol_dbtable', $config->enrol_dbtable); + + if (!isset($config->enrol_localcoursefield)) { + $config->enrol_localcoursefield = ''; + } + set_config('enrol_localcoursefield', $config->enrol_localcoursefield); + + if (!isset($config->enrol_localuserfield)) { + $config->enrol_localuserfield = ''; + } + set_config('enrol_localuserfield', $config->enrol_localuserfield); + + if (!isset($config->enrol_remotecoursefield)) { + $config->enrol_remotecoursefield = ''; + } + set_config('enrol_remotecoursefield', $config->enrol_remotecoursefield); + + if (!isset($config->enrol_remoteuserfield)) { + $config->enrol_remoteuserfield = ''; + } + set_config('enrol_remoteuserfield', $config->enrol_remoteuserfield); + + if (!isset($config->enrol_allowinternal)) { + $config->enrol_allowinternal = ''; + } + set_config('enrol_allowinternal', $config->enrol_allowinternal); + + return true; + +} } // end of class diff --git a/enrol/enrol.class.php b/enrol/enrol.class.php index 602f25a93b..2576510383 100644 --- a/enrol/enrol.class.php +++ b/enrol/enrol.class.php @@ -246,9 +246,7 @@ function check_entry($form, $course) { * @param page an object containing all the data for this page */ function config_form($page) { - - return ""; - + } @@ -261,8 +259,17 @@ function config_form($page) { */ function process_config($config) { - return true; + $return = true; + + print_object($config); + + foreach ($config as $name => $value) { + if (!set_config($name, $value)) { + $return = false; + } + } + return $return; } diff --git a/enrol/flatfile/config.html b/enrol/flatfile/config.html new file mode 100644 index 0000000000..2002d0bcca --- /dev/null +++ b/enrol/flatfile/config.html @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

enrol_flatfilelocation:

+ + + +

enrol_mailstudents:

+ enrol_mailstudents) echo "checked=\"true\"" ?> /> + + +

enrol_mailteachers:

+ enrol_mailteachers) echo "checked=\"true\"" ?> /> + + +

enrol_mailadmins:

+ enrol_mailadmins) echo "checked=\"true\"" ?> /> + + +

enrol_allowinternal:

+ enrol_allowinternal) echo "checked=\"true\"" ?> /> + + +
diff --git a/enrol/flatfile/enrol.php b/enrol/flatfile/enrol.php index 73f58f7ddb..e26cef732e 100644 --- a/enrol/flatfile/enrol.php +++ b/enrol/flatfile/enrol.php @@ -3,10 +3,10 @@ require_once("$CFG->dirroot/enrol/enrol.class.php"); // The following flags are set in the configuration // $CFG->enrol_flatfilelocation: where is the file we are looking for? -// $CFG->enrol_flatfilemailusers: send email to users when they are enrolled in a course -// $CFG->enrol_flatfilemailadmin: email the log from the cron job to the admin -// $CFG->enrol_flatfileallowinternal: allow internal enrolment in courses - +// $CFG->enrol_allowinternal: allow internal enrolment in courses +// $CFG->enrol_emailstudents: send email to students when they are enrolled in a course +// $CFG->enrol_emailteachers: send email to teachers when they are enrolled in a course +// $CFG->enrol_emailadmins: email the log from the cron job to the admin @@ -18,7 +18,7 @@ class enrolment_plugin extends enrolment_base { function print_entry($course) { global $CFG; - if (! empty($CFG->enrol_flatfileallowinternal) ) { + if (! empty($CFG->enrol_allowinternal) ) { parent::print_entry($course); } else { print_header(); @@ -31,12 +31,50 @@ function print_entry($course) { function check_entry($form, $course) { global $CFG; - if (! empty($CFG->enrol_flatfileallowinternal) ) { + if (! empty($CFG->enrol_allowinternal) ) { parent::check_entry($form, $course); } } +/// Override the base config_form() function +function config_form($frm) { + global $CFG; + include ("$CFG->dirroot/enrol/flatfile/config.html"); +} + + +/// Override the base process_config() function +function process_config($config) { + + if (!isset($config->enrol_flatfilelocation)) { + $config->enrol_flatfilelocation = ''; + } + set_config('enrol_flatfilelocation', $config->enrol_flatfilelocation); + + if (!isset($config->enrol_mailstudents)) { + $config->enrol_mailstudents = ''; + } + set_config('enrol_mailstudents', $config->enrol_mailstudents); + + if (!isset($config->enrol_mailteachers)) { + $config->enrol_mailteachers = ''; + } + set_config('enrol_mailteachers', $config->enrol_mailteachers); + + if (!isset($config->enrol_mailadmins)) { + $config->enrol_mailadmins = ''; + } + set_config('enrol_mailadmins', $config->enrol_mailadmins); + + if (!isset($config->enrol_allowinternal)) { + $config->enrol_allowinternal = ''; + } + set_config('enrol_allowinternal', $config->enrol_allowinternal); + + return true; + +} /** * Override the base cron() function to read in a file @@ -181,12 +219,8 @@ function check_entry($form, $course) { - if ( (! empty($CFG->enrol_flatfilemailusers)) and empty($elog) and ($fields[0] == "add") ) { - $subject = get_string("welcometocourse", "", $course->fullname); - $a->coursename = $course->fullname; - $a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id"; - $message = get_string("welcometocoursetext", "", $a); - + if ( empty($elog) and ($fields[0] == "add") ) { + if ($fields[1] == "student") { if (! $teacher = get_teacher($course->id)) { $teacher = get_admin(); @@ -195,9 +229,20 @@ function check_entry($form, $course) { $teacher = get_admin(); } - email_to_user($user, $teacher, $subject, $message); - } + if (!empty($CFG->enrol_mailstudents)) { + $a->coursename = "$course->fullname"; + $a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id"; + email_to_user($user, $teacher, get_string("enrolmentnew", '', $course->shortname), + get_string('welcometocoursetext', '', $a)); + } + if (!empty($CFG->enrol_mailteachers)) { + $a->course = "$course->fullname"; + $a->user = fullname($user); + email_to_user($teacher, $user, get_string("enrolmentnew", '', $course->shortname), + get_string('enrolmentnewuser', '', $a)); + } + } if (empty($elog)) { @@ -215,7 +260,7 @@ function check_entry($form, $course) { $this->log .= "Error unlinking file $filename\n"; } - if (! empty($CFG->enrol_flatfilemailadmin)) { + if (!empty($CFG->enrol_mailadmins)) { email_to_user(get_admin(), get_admin(), "Flatfile Enrolment Log", $this->log); } diff --git a/enrol/paypal/config.html b/enrol/paypal/config.html new file mode 100644 index 0000000000..5e72888180 --- /dev/null +++ b/enrol/paypal/config.html @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

enrol_cost:

+ + + +

enrol_currency:

+ enrol_currency, "","", "") ?> + + +

enrol_paypalbusiness:

+ + + +

enrol_mailstudents:

+ enrol_mailstudents) echo "checked=\"true\"" ?> /> + + +

enrol_mailteachers:

+ enrol_mailteachers) echo "checked=\"true\"" ?> /> + + +

enrol_mailadmins:

+ enrol_mailadmins) echo "checked=\"true\"" ?> /> + + +
diff --git a/enrol/paypal/enrol.html b/enrol/paypal/enrol.html index 7d59f3ad2d..71dcd93998 100644 --- a/enrol/paypal/enrol.html +++ b/enrol/paypal/enrol.html @@ -1,7 +1,7 @@

-

enrol_paypalcurrency $cost"; ?>

+

enrol_currency $cost"; ?>

@@ -15,7 +15,7 @@ id-$course->id" ?>"> - + diff --git a/enrol/paypal/enrol.php b/enrol/paypal/enrol.php index 5c0790f762..a322f93063 100644 --- a/enrol/paypal/enrol.php +++ b/enrol/paypal/enrol.php @@ -1,4 +1,5 @@ -dirroot/enrol/enrol.class.php"); @@ -40,7 +41,6 @@ function print_entry($course) { include("$CFG->dirroot/enrol/paypal/enrol.html"); - echo "
"; print_simple_box_end(); print_footer(); @@ -78,11 +78,11 @@ function get_access_icons($course) { $strrequirespayment = get_string("requirespayment"); $strcost = get_string("cost"); - if (empty($CFG->enrol_paypalcurrency)) { - $CFG->enrol_paypalcurrency = 'USD'; + if (empty($CFG->enrol_currency)) { + set_config('enrol_currency', 'USD'); } - switch ($CFG->enrol_paypalcurrency) { + switch ($CFG->enrol_currency) { case 'EUR': $currency = '€'; break; case 'CAD': $currency = '$'; break; case 'GBP': $currency = '£'; break; @@ -90,7 +90,8 @@ function get_access_icons($course) { default: $currency = '$'; break; } - $str .= "

$strcost: wwwroot/course/view.php?id=$course->id\">"; + $str .= "

$strcost: ". + "wwwroot/course/view.php?id=$course->id\">"; $str .= "$currency".format_float($cost,2).'

'; } @@ -99,5 +100,55 @@ function get_access_icons($course) { } +/// Override the base class config_form() function +function config_form($frm) { + global $CFG; + + $paypalcurrencies = array( 'USD' => 'US Dollars', + 'EUR' => 'Euros', + 'JPY' => 'Japanese Yen', + 'GBP' => 'British Pounds', + 'CAD' => 'Canadian Dollars' + ); + + include("$CFG->dirroot/enrol/paypal/config.html"); +} + +function process_config($config) { + + if (!isset($config->enrol_cost)) { + $config->enrol_cost = 0; + } + set_config('enrol_cost', $config->enrol_cost); + + if (!isset($config->enrol_currency)) { + $config->enrol_currency = 'USD'; + } + set_config('enrol_currency', $config->enrol_currency); + + if (!isset($config->enrol_paypalbusiness)) { + $config->enrol_paypalbusiness = ''; + } + set_config('enrol_paypalbusiness', $config->enrol_paypalbusiness); + + if (!isset($config->enrol_mailstudents)) { + $config->enrol_mailstudents = ''; + } + set_config('enrol_mailstudents', $config->enrol_mailstudents); + + if (!isset($config->enrol_mailteachers)) { + $config->enrol_mailteachers = ''; + } + set_config('enrol_mailteachers', $config->enrol_mailteachers); + + if (!isset($config->enrol_mailadmins)) { + $config->enrol_mailadmins = ''; + } + set_config('enrol_mailadmins', $config->enrol_mailadmins); + + return true; + +} + } // end of class definition diff --git a/enrol/paypal/ipn.php b/enrol/paypal/ipn.php index f12609f2e7..1212bed72b 100644 --- a/enrol/paypal/ipn.php +++ b/enrol/paypal/ipn.php @@ -156,15 +156,30 @@ } else { $teacher = get_teacher($course->id); - if (!empty($CFG->enrol_paypalmailstudents)) { + if (!empty($CFG->enrol_mailstudents)) { $a->coursename = "$course->fullname"; $a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id"; - email_to_user($user, $teacher, get_string("enrolmentnew", '', $course->shortname), get_string('welcometocoursetext', '', $a)); + email_to_user($user, $teacher, get_string("enrolmentnew", '', $course->shortname), + get_string('welcometocoursetext', '', $a)); } - if (!empty($CFG->enrol_paypalmailteachers)) { - email_to_user($teacher, $user, get_string("enrolmentnew", '', $course->shortname), "I have enrolled in your class via Paypal"); + if (!empty($CFG->enrol_mailteachers)) { + $a->course = "$course->fullname"; + $a->user = fullname($user); + email_to_user($teacher, $user, get_string("enrolmentnew", '', $course->shortname), + get_string('enrolmentnewuser', '', $a)); } + + if (!empty($CFG->enrol_mailadmins)) { + $a->course = "$course->fullname"; + $a->user = fullname($user); + $admins = get_admins(); + foreach ($admins as $admin) { + email_to_user($admin, $user, get_string("enrolmentnew", '', $course->shortname), + get_string('enrolmentnewuser', '', $a)); + } + } + } diff --git a/lang/en/enrol_database.php b/lang/en/enrol_database.php new file mode 100755 index 0000000000..9576a383c0 --- /dev/null +++ b/lang/en/enrol_database.php @@ -0,0 +1,17 @@ + diff --git a/lang/en/enrol_flatfile.php b/lang/en/enrol_flatfile.php index 0f42669fe9..c026da664b 100644 --- a/lang/en/enrol_flatfile.php +++ b/lang/en/enrol_flatfile.php @@ -1,7 +1,22 @@ + add, student, 5, CF101 + add, teacher, 6, CF101 + add, teacheredit, 7, CF101 + del, student, 8, CF101 + del, student, 17, CF101 + add, student, 21, CF101, 1091115000, 1091215000 + +'; + $string['filelockedmailsubject'] = 'Important error: Enrolment file'; $string['filelockedmail'] = 'The text file you are using for file-based enrolments ($a) can not be deleted by the cron process. This usually means the permissions are wrong on it. Please fix the permissions so that Moodle can delete the file, otherwise it might be processed repeatedly.'; +$string['location'] = 'File location'; +$string['mailusers'] = 'Notify users by email'; +$string['mailadmin'] = 'Notify admin by email'; ?> diff --git a/lang/en/enrol_internal.php b/lang/en/enrol_internal.php index ad7139c42c..0f992b0ced 100644 --- a/lang/en/enrol_internal.php +++ b/lang/en/enrol_internal.php @@ -2,4 +2,12 @@ $string['enrolname'] = 'Internal Enrolment'; +$string['description'] = 'This is the default form of enrolment. There are two main ways a student can be enrolled in a particular course. +
    +
  • A teacher or admin can enrol them manually using the link in the Course Administration menu + within the course.
  • +
  • A course can have a password defined, known as an \"enrolment key\". Anyone who knows this key is + able to add themselves to a course.
  • +
'; + ?> diff --git a/lang/en/enrol_paypal.php b/lang/en/enrol_paypal.php index 71baabb6df..95fe7d6786 100644 --- a/lang/en/enrol_paypal.php +++ b/lang/en/enrol_paypal.php @@ -1,6 +1,10 @@ diff --git a/lang/en/install.php b/lang/en/install.php index 6baf2f1b53..ba5a815ec0 100755 --- a/lang/en/install.php +++ b/lang/en/install.php @@ -12,7 +12,7 @@ $string['admindirsetting'] = " $string['caution'] = 'Caution'; $string['chooselanguage'] = 'Choose a language'; $string['compatibilitysettings'] = 'Checking your PHP settings ...'; -$string['configfilenotwritten'] = "The installer script was not able to automatically create a config.php file containing your chosen settings. Please copy the following code into a file named config.php within the root directory of Moodle."; +$string['configfilenotwritten'] = "The installer script was not able to automatically create a config.php file containing your chosen settings, probably because the Moodle directory is not writeable. You can manually copy the following code into a file named config.php within the root directory of Moodle."; $string['configfilewritten'] = "config.php has been successfully created"; $string['configurationcomplete'] = 'Configuration completed'; diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 8dda36bc33..46e39bdc14 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -69,6 +69,7 @@ $string['allgroups'] = 'All groups'; $string['alllogs'] = 'All logs'; $string['allow'] = 'Allow'; $string['allowguests'] = 'This course allows guest users to enter'; +$string['allowinternal'] = 'Allow internal methods as well'; $string['allownot'] = 'Do not allow'; $string['allparticipants'] = 'All participants'; $string['alphabet'] = 'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z'; @@ -132,6 +133,7 @@ $string['checkingsections'] = 'Checking sections'; $string['checklanguage'] = 'Check language'; $string['choose'] = 'Choose'; $string['choosecourse'] = 'Choose a course'; +$string['chooseenrolmethod'] = 'Primary method of enrolment'; $string['chooselivelogs'] = 'Or watch current activity'; $string['chooselogs'] = 'Choose which logs you want to see'; $string['choosereportfilter'] = 'Choose a filter for the report'; @@ -205,6 +207,7 @@ $string['copyinguserfiles'] = 'Copying user files'; $string['copyingzipfile'] = 'Copying zip file'; $string['copyrightnotice'] = 'Copyright notice'; $string['cost'] = 'Cost'; +$string['costdefault'] = 'Default cost'; $string['country'] = 'Country'; $string['course'] = 'Course'; $string['courseavailable'] = 'This course is available to students'; @@ -237,6 +240,7 @@ $string['creatingsections'] = 'Creating sections'; $string['creatingtemporarystructures'] = 'Creating temporary structures'; $string['creatingusers'] = 'Creating users'; $string['creatingxmlfile'] = 'Creating XML file'; +$string['currency'] = 'Currency'; $string['currentcourseadding'] = 'Current course, adding data to it'; $string['currentcoursedeleting'] = 'Current course, deleting it first'; $string['currentlanguage'] = 'Current language'; @@ -381,6 +385,7 @@ password that you should have received from $a'; $string['enrolmentkeyhint'] = 'That enrolment key was incorrect, please try again
(Here\'s a hint - it starts with \'$a\')'; $string['enrolmentnew'] = 'New enrolment in $a'; +$string['enrolmentnewuser'] = '$a->user has enrolled in course \"$a->course\"'; $string['enrolmentnointernal'] = 'Manual enrolments are currently not enabled'; $string['enrolmentnotyet'] = 'Sorry, you can not access this course until
$a'; $string['enrolments'] = 'Enrolments'; @@ -590,6 +595,9 @@ $string['loginto'] = 'Login to $a'; $string['loginusing'] = 'Login here using your username and password'; $string['logout'] = 'Logout'; $string['logs'] = 'Logs'; +$string['mailstudents'] = 'Inform students'; +$string['mailteachers'] = 'Inform teachers'; +$string['mailadmins'] = 'Inform admins'; $string['mainmenu'] = 'Main menu'; $string['makeafolder'] = 'Make a folder'; $string['makeeditable'] = 'If you make \'$a\' editable by the web server process (eg apache) then you could edit this file directly from this page';