if (set_config('mnet_dispatcher_mode', $form->mode)) {
redirect('index.php', get_string('changessaved'));
} else {
- print_error('Invalid action parameter.', '', 'index.php');
+ print_error('invalidaction', '', 'index.php');
}
}
} elseif (!empty($form->submit) && $form->submit == get_string('delete')) {
/// Define variables used in page
if (!$site = get_site()) {
- print_error("No site found!");
+ print_error("siteisnotdefined");
}
$authsequence = get_enabled_auth_plugins(true); // auths, in sequence
-?>
\ No newline at end of file
+?>
/// Define variables used in page
if (!$site = get_site()) {
- print_error("No site found!");
+ print_error("siteisnotdefined", 'debug');
}
$authsequence = get_enabled_auth_plugins(true); // auths, in sequence
redirect($CFG->wwwroot . '/login/index.php?authldap_skipntlmsso=1',
get_string('ntlmsso_failed','auth'), 3);
}
-?>
\ No newline at end of file
+?>
* @return bool Authentication success or failure.
*/
function user_login($username, $password) {
- return false; // print_error("Remote MNET users cannot login locally.");
+ return false; // print_error("mnetlocal");
}
/**
}
$message .= "ERROR $code:<br/>$errormessage<br/>";
}
- print_error("RPC auth/mnet/user_authorise:<br/>$message");
+ print_error("rpcerror", '', '', $message");
}
unset($mnetrequest);
if (!$bool) {
// TODO: Jonathan to clean up mess
// Actually, this should never happen (modulo race conditions) - ML
- print_error("updating user failed in mnet/auth/confirm_mnet_session ");
+ print_error("cannotupdateuser");
}
// set up the session
require_login();
if (!is_enabled_auth('mnet')) {
- print_error('mnet is disabled');
+ print_error('mnetdisable');
}
// grab the GET params - wantsurl could be anything - take it
}
if (!is_enabled_auth('mnet')) {
- print_error('mnet is disabled');
+ print_error('mnetdisable');
}
// grab the GET params
$token = required_param('token', PARAM_BASE64);
/// Define variables used in page
if (!$site = get_site()) {
- print_error("No site found!");
+ print_error("siteisnotdefined", 'debug');
}
if (empty($CFG->langmenu)) {
$string['cannotupdatelevel'] = 'Could not update the indent level on that course module';
$string['cannotupdaterole'] = 'Cannot update role!';
$string['cannotupdatemod'] = 'Could not update the $a';
+$string['cannotupdateuser'] = 'updating user failed';
$stirng['cannotupdaterss'] = 'Cannot update rss';
$string['cannotupdatesummary'] = 'Could not update the summary!';
$string['cannotupdatesubcate'] = 'Could not update a child category!';
$string['missingrequiredfield'] = 'Some required field is missing';
$string['mimetexisnotexist'] = 'Your system is not configured to run mimeTeX. You need to download the appropriate executable for you PHP_OS platform from <a href=\"http://moodle.org/download/mimetex/\">http://moodle.org/download/mimetex/</a>, or obtain the C source from <a href=\"http://www.forkosh.com/mimetex.zip\"> http://www.forkosh.com/mimetex.zip</a>, compile it and put the executable into your moodle/filter/tex/ directory.';
$string['mimetexnotexecutable'] = 'Custom mimetex is not executable!';
+$string['mnetdisable'] = 'mnet is disabled';
+$string['mnetlocal'] = 'Remote MNET users cannot login locally.';
$string['moduledoesnotexist'] = 'This module does not exist';
$string['moduleinstancedoesnotexist'] = 'The instance of this module does not exist';
$string['moduledisable'] = 'This module ($a) has been disabled for this particular course';
$string['remotedownloaderror'] = 'Download of component to your server failed, please verify proxy settings, PHP cURL extension is highly recommended.<br /><br />You must download the <a href=\"$a->url\">$a->url</a> file manually, copy it to \"$a->dest\" in your server and unzip it there.';
$string['remotedownloadnotallowed'] = 'Download of components to your server isn\'t allowed (allow_url_fopen is disabled).<br /><br />You must download the <a href=\"$a->url\">$a->url</a> file manually, copy it to \"$a->dest\" in your server and unzip it there.';
$string['restricteduser'] = 'Sorry, but your current account \"$a\" is restricted from doing that.';
-$string['rpcerror'] = 'RPC enrol/mnet/available_courses:<br/> ($a)';
+$string['rpcerror'] = 'RPC enrol/mnet/available_courses: ($a)';
$string['scheduledbackupsdisabled'] = 'Scheduled backups have been disabled by the server admin';
$string['sectionnotexist'] = 'This section does not exist';
$string['sendmessage'] = 'Send Message';