$remoteuser = (object) $mnetrequest->response;
} else {
foreach ($mnetrequest->error as $code => $errormessage) {
- $message .= "ERROR $code:<br>$errormessage<br>";
+ $message .= "ERROR $code:<br/>$errormessage<br/>";
}
- error("RPC auth/mnet/user_authorise:<br>$message");
+ error("RPC auth/mnet/user_authorise:<br/>$message");
}
if (empty($remoteuser) or empty($remoteuser->username)) {
require_once 'Auth/RADIUS.php';
// Added by Clive on 7th May for test purposes
- // printf("Username: $username <br>");
- // printf("Password: $password <br>");
- // printf("host: $this->config->host <br>");
- // printf("nasport: $this->config->nasport <br>");
- // printf("secret: $this->config->secret <br>");
+ // printf("Username: $username <br/>");
+ // printf("Password: $password <br/>");
+ // printf("host: $this->config->host <br/>");
+ // printf("nasport: $this->config->nasport <br/>");
+ // printf("secret: $this->config->secret <br/>");
$rauth = new Auth_RADIUS_PAP($username, $password);
$rauth->addServer($this->config->host, $this->config->nasport, $this->config->secret);
if (!$rauth->start()) {
- printf("Radius start: %s<br>\n", $rauth->getError());
+ printf("Radius start: %s<br/>\n", $rauth->getError());
exit;
}
$result = $rauth->send();
if (PEAR::isError($result)) {
- printf("Radius send failed: %s<br>\n", $result->getMessage());
+ printf("Radius send failed: %s<br/>\n", $result->getMessage());
exit;
} else if ($result === true) {
- // printf("Radius Auth succeeded<br>\n");
+ // printf("Radius Auth succeeded<br/>\n");
return true;
} else {
- // printf("Radius Auth rejected<br>\n");
+ // printf("Radius Auth rejected<br/>\n");
return false;
}
// get attributes, even if auth failed
if (!$rauth->getAttributes()) {
- printf("Radius getAttributes: %s<br>\n", $rauth->getError());
+ printf("Radius getAttributes: %s<br/>\n", $rauth->getError());
} else {
$rauth->dumpAttributes();
}
<?php
if ($config->convert_data and $config->convert_data != '' and !is_readable($config->convert_data)) {
- echo '<br><font color="red">';
+ echo '<br/><font color="red">';
print_string("auth_shib_convert_data_warning", "auth");
echo '</font>';
}
$status = zip_files($files, "$basedir/$name");
- //echo "<br>Status: ".$status; //Debug
+ //echo "<br/>Status: ".$status; //Debug
return $status;
}
fwrite ($restorelog_file,"<head>");
fwrite ($restorelog_file,$stylesheetshtml);
fwrite ($restorelog_file,"<title>".$course_header->course_shortname." Restored </title>");
- fwrite ($restorelog_file,"</head><body><br><h1>The following changes were made during the Restoration of this Course.</h1><br><br>");
- fwrite ($restorelog_file,"The Course ShortName is now - ".$course_header->course_shortname." The FullName is now - ".$course_header->course_fullname."<br><br>");
+ fwrite ($restorelog_file,"</head><body><br/><h1>The following changes were made during the Restoration of this Course.</h1><br/><br/>");
+ fwrite ($restorelog_file,"The Course ShortName is now - ".$course_header->course_shortname." The FullName is now - ".$course_header->course_fullname."<br/><br/>");
$startdate = addslashes($course_header->course_startdate);
$date = usergetdate($startdate);
fwrite ($restorelog_file,"The Originating Courses Start Date was " .$date['weekday'].", ".$date['mday']." ".$date['month']." ".$date['year']."");
$startdate += $restore->course_startdateoffset;
$date = usergetdate($startdate);
- fwrite ($restorelog_file," This Courses Start Date is now " .$date['weekday'].", ".$date['mday']." ".$date['month']." ".$date['year']."<br><br>");
+ fwrite ($restorelog_file," This Courses Start Date is now " .$date['weekday'].", ".$date['mday']." ".$date['month']." ".$date['year']."<br/><br/>");
if ($status) {
return $restorelog_file;
$status = check_dir_exists($dest_dir, true, true);
$restorelog_file = fopen("$dest_dir/restorelog.html","a");
//Write the footer to close the logging file
- fwrite ($restorelog_file,"<br>This file was written to directly by each modules restore process.");
- fwrite ($restorelog_file,"<br><br>Log complete.</body></html>");
+ fwrite ($restorelog_file,"<br/>This file was written to directly by each modules restore process.");
+ fwrite ($restorelog_file,"<br/><br/>Log complete.</body></html>");
if ($status) {
return $restorelog_file;
p($CFG->block_search_text);
} else {
p("Search Moodle");
- } ?>"/><br>
+ } ?>"/><br/>
<label for="block_search_button">Button label</label>
<input type="text" name="block_search_button" value="<?php
p($CFG->block_search_button);
} else {
p("Go");
- } ?>"/><br><br>
+ } ?>"/><br/><br/>
<input type="submit" value="<?php print_string('savechanges'); ?>" />
</div>
\ No newline at end of file
'<td class="activity forum">'.
'<table align="center" width="100%" class="noticebox" border="0" cellpadding="15" cellspacing="0">'.
'<tr><td bgcolor="#FFAAAA" class="noticeboxcontent">'.
- '<h3 class="main">All the LAMS module settings have not been set up!<BR> Please contact your administrator.</h3>'.
+ '<h3 class="main">All the LAMS module settings have not been set up!<br/> Please contact your administrator.</h3>'.
'</td></tr></table>'.
'</td>'.
'</tr>'.
<?php print_string("no") ?></option>
<option value="1" <?php echo ($frm->enrol_ldap_course_idnumber_updatelocal ? 'selected="yes"' : '') ?> >
<?php print_string("yes") ?></option>
- </select><BR>
+ </select><br/>
<?php print_string("enrol_ldap_editlock", "enrol_ldap") ?>
<select name="enrol_ldap_course_idnumber_editlock">
<option value="0" <?php echo ($frm->enrol_ldap_course_idnumber_editlock ? '' : 'selected="yes"') ?> >
<?php print_string("no") ?></option>
<option value="1" <?php echo ($frm->enrol_ldap_course_shortname_updatelocal ? 'selected="yes"' : '') ?> >
<?php print_string("yes") ?></option>
- </select><BR>
+ </select><br/>
<?php print_string("enrol_ldap_editlock", "enrol_ldap") ?>
<select name="enrol_ldap_course_shortname_editlock">
<option value="0" <?php echo ($frm->enrol_ldap_course_shortname_editlock ? '' : 'selected="yes"') ?> >
<?php print_string("no") ?></option>
<option value="1" <?php echo ($frm->enrol_ldap_course_fullname_updatelocal ? 'selected="yes"' : '') ?> >
<?php print_string("yes") ?></option>
- </select><BR>
+ </select><br/>
<?php print_string("enrol_ldap_editlock", "enrol_ldap") ?>
<select name="enrol_ldap_course_idnumber_editlock">
<option value="0" <?php echo ($frm->enrol_ldap_course_fullname_editlock ? '' : 'selected="yes"') ?> >
<?php print_string("no") ?></option>
<option value="1" <?php echo ($frm->enrol_ldap_course_summary_updatelocal ? 'selected="yes"' : '') ?> >
<?php print_string("yes") ?></option>
- </select><BR>
+ </select><br/>
<?php print_string("enrol_ldap_editlock", "enrol_ldap") ?>
<select name="enrol_ldap_course_summary_editlock">
<option value="0" <?php echo ($frm->enrol_ldap_course_summary_editlock ? '' : 'selected="yes"') ?> >
</tr>
<tr valign="top">
<td align="left" colspan="3">
- <a href="<?php echo $CFG->wwwroot .'/enrol/mnet/remote_hosts.php?sesskey=' . sesskey(); ?>" >Manage Moodle Network Enrolments.</a><br>
+ <a href="<?php echo $CFG->wwwroot .'/enrol/mnet/remote_hosts.php?sesskey=' . sesskey(); ?>" >Manage Moodle Network Enrolments.</a><br/>
Servers configured: <?php echo count(array_keys($mnethosts)); ?>
</td>
return $courses;
} else {
foreach ($mnetrequest->error as $code => $errormessage) {
- $message .= "ERROR $code:<br>$errormessage<br>";
+ $message .= "ERROR $code:<br/>$errormessage<br/>";
}
- error("RPC enrol/mnet/available_courses:<br>$message");
+ error("RPC enrol/mnet/available_courses:<br/>$message");
}
return false;
}
$cmd = "cd $CFG->dirroot\\$CFG->algebrafilterdirwin & algebra2tex.pl x/2";
$test = `$cmd`;
if ($test != '\frac{x}{2}') {
- echo "There is a problem with either Perl or the script algebra2tex.pl<br>";
+ echo "There is a problem with either Perl or the script algebra2tex.pl<br/>";
$ecmd = $cmd . " 2>&1";
- echo `$ecmd` . "<br>\n";
- echo "The shell command<br>$cmd<br>returned status = $status<br>\n";
+ echo `$ecmd` . "<br/>\n";
+ echo "The shell command<br/>$cmd<br/>returned status = $status<br/>\n";
$commandpath = "$CFG->dirroot\\$CFG->algebrafilterdirwin\\algebra2tex.pl";
if (file_exists($commandpath)) {
- echo "The file permissions of algebra2tex.pl are: " . decoct(fileperms($commandpath)) . "<br>";
+ echo "The file permissions of algebra2tex.pl are: " . decoct(fileperms($commandpath)) . "<br/>";
}
die;
}
$cmd = "cd $CFG->dirroot/$CFG->algebrafilterdir; ./algebra2tex.pl x/2";
$test = `$cmd`;
if ($test != '\frac{x}{2}') {
- echo "There is a problem with either Perl or the script algebra2tex.pl<br>";
+ echo "There is a problem with either Perl or the script algebra2tex.pl<br/>";
$ecmd = $cmd . " 2>&1";
- echo `$ecmd` . "<br>\n";
- echo "The shell command<br>$cmd<br>returned status = $status<br>\n";
+ echo `$ecmd` . "<br/>\n";
+ echo "The shell command<br/>$cmd<br/>returned status = $status<br/>\n";
$commandpath = "$CFG->dirroot/$CFG->algebrafilterdir/algebra2tex.pl";
if (file_exists($commandpath)) {
- echo "The file permissions of algebra2tex.pl are: " . decoct(fileperms($commandpath)) . "<br>";
+ echo "The file permissions of algebra2tex.pl are: " . decoct(fileperms($commandpath)) . "<br/>";
}
die;
}
if ($modgrades = $gradefunction($mod->instance)) {
$itemcount++;
//modgrades contains student information with associated grade
- //echo "<b>modname: $mod->modname id: $mod->id course: $mod->course</b><br>";
+ //echo "<b>modname: $mod->modname id: $mod->id course: $mod->course</b><br/>";
// get instance name from db.
$instance = get_record($mod->modname, 'id', $mod->instance);
// see if the item is already in the category table and if it is call category select with the id so it is selected
if (! $userid = clean_param($userid, PARAM_INT)) {
continue;
}
- //echo "Try user $userid, group $groupid<br>\n";
+ //echo "Try user $userid, group $groupid<br/>\n";
$success = groups_add_member($groupid, $userid);
if (! $success) {
print_error('Failed to add user $userid to group.');
$fp = fsockopen ($firewall_host, $firewall_port, $errno, $errstr, 30) or die("Could not open socket to proxy");
if (!$fp) {
- echo "$errstr ($errno)<br>\n";
+ echo "$errstr ($errno)<br/>\n";
} else {
fputs ($fp, "GET http://netgeo.caida.org/perl/netgeo.cgi?target=$ip HTTP/1.0\r\nHost: netgeo.caida.org\r\n\r\n") or die("Could not write to socket");
while (!feof($fp)) {
$fp = fsockopen ("netgeo.caida.org", 80, $errno, $errstr, 30) or die("Could not open socket to caida.org");
if (!$fp) {
- echo "$errstr ($errno)<br>\n";
+ echo "$errstr ($errno)<br/>\n";
} else {
fputs ($fp, "GET /perl/netgeo.cgi?target=$ip HTTP/1.0\r\nHost: netgeo.caida.org\r\n\r\n") or die("Could not write to socket");
while (!feof($fp)) {
$string['auth_radiussecret'] = 'Shared secret';
// Shibboleth plugin
-$string['auth_shibbolethdescription'] = 'Using this method users are created and authenticated using <a href=\"http://shibboleth.internet2.edu/\" target=\"_blank\">Shibboleth</a>.<br>Be sure to read the <a href=\"../auth/shibboleth/README.txt\" target=\"_blank\">README</a> for Shibboleth on how to set up your Moodle with Shibboleth';
+$string['auth_shibbolethdescription'] = 'Using this method users are created and authenticated using <a href=\"http://shibboleth.internet2.edu/\" target=\"_blank\">Shibboleth</a>.<br/>Be sure to read the <a href=\"../auth/shibboleth/README.txt\" target=\"_blank\">README</a> for Shibboleth on how to set up your Moodle with Shibboleth';
$string['auth_shibbolethtitle'] = 'Shibboleth';
$string['auth_shibboleth_login'] = 'Shibboleth Login';
$string['auth_shibboleth_manual_login'] = 'Manual Login';
$string['nocoursesdefined'] = 'No courses found. Define new courses <a href=\"$a\">here</a>.';
$string['allowedcourseslinktext'] = 'Edit allowed courses and categories here.';
$string['mnet_enrol_name'] = 'Moodle Networked Enrolment';
-$string['mnet_enrol_description'] = 'Publish this service to allow administrators at $a to enrol their students in courses you have created on your server.<br>' .
+$string['mnet_enrol_description'] = 'Publish this service to allow administrators at $a to enrol their students in courses you have created on your server.<br/>' .
'<ul><li><em>Dependency</em>: You must also <strong>publish</strong> the SSO (Service Provider) service to $a.</li>'.
- '<li><em>Dependency</em>: You must also <strong>subscribe</strong> to the SSO (Identity Provider) service on $a.</li></ul><br>'.
- 'Subscribe to this service to be able to enrol your students in courses on $a.<br>'.
+ '<li><em>Dependency</em>: You must also <strong>subscribe</strong> to the SSO (Identity Provider) service on $a.</li></ul><br/>'.
+ 'Subscribe to this service to be able to enrol your students in courses on $a.<br/>'.
'<ul><li><em>Dependency</em>: You must also <strong>subscribe</strong> to the SSO (Service Provider) service on $a.</li>'.
- '<li><em>Dependency</em>: You must also <strong>publish</strong> the SSO (Identity Provider) service to $a.</li></ul><br>';
+ '<li><em>Dependency</em>: You must also <strong>publish</strong> the SSO (Identity Provider) service to $a.</li></ul><br/>';
?>
FI = (X<sub>average</sub>) / X<sub>max</sub>
<br />
-where X<sub>average</sub> is the mean credit obtained by all users attempting the item, <br>
-and X<sub>max</sub> is the maximum credit achievable for that item.<br>
+where X<sub>average</sub> is the mean credit obtained by all users attempting the item, <br/>
+and X<sub>max</sub> is the maximum credit achievable for that item.<br/>
If questions can be distributed dicotomically into correct / uncorrect categories,
this parameter coincides with the percentage of users that answer the question correctly. </p>
<br/>
DC = Sum(xy)/ (N * s<sub>x</sub> * s<sub>y</sub>)
<br/>
-where Sum(xy) is the sum of the products of deviations for item scores and overall quiz scores, <br>
+where Sum(xy) is the sum of the products of deviations for item scores and overall quiz scores, <br/>
N is the number of responses given to this question<br/>
s<sub>x</sub> is the standard deviation of fractional scores for this question and, <br/>
s<sub>y</sub> is the standard deviation of scores at the quiz as a whole.
$string['displayleftmenu'] = 'Display left menu';
$string['displayofgrade'] = 'Display of grade (for students only)';
$string['displayreview'] = 'Display review button';
-$string['displayscorewithessays'] = 'You earned $a->score out of $a->tempmaxgrade for the automatically graded questions.<br>Your $a->essayquestions essay question(s) will be graded and added<br />into your final score at a later date.<br /><br />Your current grade without the essay question(s) is $a->score out of $a->grade';
+$string['displayscorewithessays'] = 'You earned $a->score out of $a->tempmaxgrade for the automatically graded questions.<br/>Your $a->essayquestions essay question(s) will be graded and added<br />into your final score at a later date.<br /><br />Your current grade without the essay question(s) is $a->score out of $a->grade';
$string['displayscorewithoutessays'] = 'Your score is $a->score (out of $a->grade).';
$string['editlesson'] = 'Edit $a';
$string['editlessonsettings'] = 'Edit lesson settings';
*
* Prints out a translated string using the return value from the {@link get_string()} function.
*
- * Example usage of this function when the string is in the moodle.php file:<br>
+ * Example usage of this function when the string is in the moodle.php file:<br/>
* <code>
* echo '<strong>';
* print_string('wordforstudent');
* echo '</strong>';
* </code>
*
- * Example usage of this function when the string is not in the moodle.php file:<br>
+ * Example usage of this function when the string is not in the moodle.php file:<br/>
* <code>
* echo '<h1>';
* print_string('typecourse', 'calendar');
*
* Example usage of this function involves finding the string you would
* like a local equivalent of and using its identifier and module information
- * to retrive it.<br>
+ * to retrive it.<br/>
* If you open moodle/lang/en/moodle.php and look near line 1031
* you will find a string to prompt a user for their word for student
* <code>
if ($choice->limitanswers && !$optionid==0) {
echo get_string("taken", "choice").":";
echo $countans;
- echo "<br>";
+ echo "<br/>";
echo get_string("limit", "choice").":";
$choice_option = get_record("choice_options", "id", $optionid);
echo $choice_option->maxanswers;
if ($choice->limitanswers && !$optionid==0) {
echo get_string("taken", "choice").":";
echo $column[$optionid];
- echo "<br>";
+ echo "<br/>";
echo get_string("limit", "choice").":";
$choice_option = get_record("choice_options", "id", $optionid);
echo $choice_option->maxanswers;
$exercise->maxbytes = backup_todb($info['MOD']['#']['MAXBYTES']['0']['#']);
$exercise->deadline = backup_todb($info['MOD']['#']['DEADLINE']['0']['#']);
$date = usergetdate($exercise->deadline);
- fwrite ($restorelog_file,"<br>The Exercise - ".$exercise->name." <br>");
+ fwrite ($restorelog_file,"<br/>The Exercise - ".$exercise->name." <br/>");
fwrite ($restorelog_file,"The DEADLINE was " .$date['weekday'].", ".$date['mday']." ".$date['month']." ".$date['year']."");
$exercise->deadline += $restore->course_startdateoffset;
$date = usergetdate($exercise->deadline);
- fwrite ($restorelog_file," the DEADLINE is now " .$date['weekday'].", ".$date['mday']." ".$date['month']." ".$date['year']."<br>");
+ fwrite ($restorelog_file," the DEADLINE is now " .$date['weekday'].", ".$date['mday']." ".$date['month']." ".$date['year']."<br/>");
$exercise->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
$exercise->grade = backup_todb($info['MOD']['#']['GRADE']['0']['#']);
$exercise->gradinggrade = backup_todb($info['MOD']['#']['GRADINGGRADE']['0']['#']);
echo "<p align=\"center\">" . get_string("delete"). " " . get_string("category","glossary") . "<font size=\"3\">";
print_simple_box_start("center","40%", "#FFBBBB");
- echo "<center><b>".format_text($category->name)."</b><br>";
+ echo "<center><b>".format_text($category->name)."</b><br/>";
$num_entries = count_records("glossary_entries_categories","categoryid",$category->id);
if ( $num_entries ) {
$attempt->details = '<?xml version="1.0"?><hpjsresult><fields>'.$attempt->details.'</fields></hpjsresult>';
}
-// print "forcing status to in progress ..<br>\n";
+// print "forcing status to in progress ..<br/>\n";
// $attempt->status = HOTPOT_STATUS_INPROGRESS;
}
if ($records) {
$keys = implode(',', array_keys($records));
- print "removing orphan record(s) from {$CFG->prefix}$secondarytable<br>";
+ print "removing orphan record(s) from {$CFG->prefix}$secondarytable<br/>";
$ok = $ok && execute_sql("DELETE FROM {$CFG->prefix}$secondarytable WHERE $secondarykeyfield IN ($keys)");
}
if (hotpot_rm("$CFG->dirroot{$ds}$dir", false)) {
print get_string('success');
} else {
- print "failed<br>Please remove '$CFG->dirroot{$ds}$dir' manually";
+ print "failed<br/>Please remove '$CFG->dirroot{$ds}$dir' manually";
}
print "<br />\n";
}
} else {
// foreign key could not be updated
if (!defined('RESTORE_SILENTLY')) {
- print "<ul><li><b>Warning:</b><br>Foreign key could not be updated:<br>";
- print "'$key_table' record (old id=$old_id) is missing from backup data<br>";
+ print "<ul><li><b>Warning:</b><br/>Foreign key could not be updated:<br/>";
+ print "'$key_table' record (old id=$old_id) is missing from backup data<br/>";
print "'$table' record ";
if (isset($record->id)) {
print "(old id=$record->id) ";
/// Given an object containing all the necessary data,
/// (defined by the form in mod.html) this function
/// will update an existing instance with new data.
- //echo "enter lams_update_instance<BR>";
+ //echo "enter lams_update_instance<br/>";
$lams->timemodified = time();
$lams->id = $lams->instance;
lams_delete_lesson($USER->username,$lams->learning_session_id);
return false;
}
# May have to add extra stuff in here #
- //echo $lams->id."<BR>";
- //echo $lams->sequence."<BR>";
- //echo $lams->course."<BR>";
- //echo $lams->name."<BR>";
- //echo $lams->introduction."<BR>";
- //echo $lams->learning_session_id."<BR>";
- //echo "exit lams_update_instance<BR>";
+ //echo $lams->id."<br/>";
+ //echo $lams->sequence."<br/>";
+ //echo $lams->course."<br/>";
+ //echo $lams->name."<br/>";
+ //echo $lams->introduction."<br/>";
+ //echo $lams->learning_session_id."<br/>";
+ //echo "exit lams_update_instance<br/>";
return update_record("lams", $lams);
}
* @return int lesson id
*/
function lams_get_lesson($username,$ldid,$courseid,$title,$desc,$type) {
- //echo "enter lams_get_lesson<BR>";
+ //echo "enter lams_get_lesson<br/>";
global $CFG,$USER;
if(!isset($CFG->lams_serverid)||!isset($CFG->lams_serverkey))
{
- //echo "serverid or serverkey is not set<BR>";
+ //echo "serverid or serverkey is not set<br/>";
return NULL;
}
$relativeurl="/services/LearningSessionService?wsdl";
$s = lams_get_soap_client($relativeurl);
if(is_null($s)){
- //echo "soap client is null<BR>";
+ //echo "soap client is null<br/>";
return NULL;
}
$datetime = date("F d,Y g:i a");
//echo $hashvalue;
$parameters = array($CFG->lams_serverid,$datetime,$hashvalue,$username,$ldid,$courseid,$title,$desc,$type);
$result = $s->call('createLearningSession',$parameters);
- //echo "result:".$result."<BR>";
- //echo "exit lams_get_lesson<BR>";
+ //echo "result:".$result."<br/>";
+ //echo "exit lams_get_lesson<br/>";
if($s->getError()){
$result = $s->getError();
}
* @return true or false
*/
function lams_delete_lesson($username,$lsid) {
- //echo "enter lams_get_lesson<BR>";
+ //echo "enter lams_get_lesson<br/>";
global $CFG,$USER;
if(!isset($CFG->lams_serverid)||!isset($CFG->lams_serverkey))
{
/*
function lams_get_class($courseid) {
global $CFG,$USER;
- //echo "enter lams_get_class"."<BR>";
+ //echo "enter lams_get_class"."<br/>";
$orgId = lams_get_organisation();
if(empty($orgId)){
return NULL;
$result = $s->call('createClass',$parameters);
//echo "<xmp/>".$s->request."</xmp>";
//echo "<xmp/>".$s->response."</xmp>";
- //echo "result:".$result."<BR>";
+ //echo "result:".$result."<br/>";
$lams_course->course = $courseid;
$lams_course->classid = $result;
insert_record("lams_course",$lams_course);
- //echo "exit lams_get_class"."<BR>";
+ //echo "exit lams_get_class"."<br/>";
return $result;
}else{
- //echo "exit lams_get_class"."<BR>";
+ //echo "exit lams_get_class"."<br/>";
return $lams_course->classid;
}
}
/*
function lams_get_organisation() {
global $CFG,$USER;
- //echo "enter lams_get_organisaiton"."<BR>";
+ //echo "enter lams_get_organisaiton"."<br/>";
if(!isset($CFG->lams_serverid)||!isset($CFG->lams_serverkey))
{
return NULL;
//echo "<xmp/>".$s->request."</xmp>";
//echo "<xmp/>".$s->response."</xmp>";
set_config("lams_orgid",$result);
- //echo "result:".$result."<BR>";
- //echo "exit lams_get_organisaiton"."<BR>";
+ //echo "result:".$result."<br/>";
+ //echo "exit lams_get_organisaiton"."<br/>";
return $result;
}else{
- //echo "exit lams_get_organisaiton"."<BR>";
+ //echo "exit lams_get_organisaiton"."<br/>";
return $CFG->lams_orgid;
}
}
/*
function lams_get_user($username,$courseid) {
global $CFG,$USER;
- //echo "enter lams_get_user"."<BR>";
+ //echo "enter lams_get_user"."<br/>";
if(!isset($CFG->lams_serverid)||!isset($CFG->lams_serverkey))
{
return NULL;
$lams_user->username = $username;
$lams_user->login = $result;
insert_record("lams_user",$lams_user);
- //echo "result:".$result."<BR>";
- //echo "exit lams_get_user"."<BR>";
+ //echo "result:".$result."<br/>";
+ //echo "exit lams_get_user"."<br/>";
return $result;
}else{
- //echo "exit lams_get_user"."<BR>";
+ //echo "exit lams_get_user"."<br/>";
return $lams_user->login;
}
}
$roles .= "|"."learner";
}
}
- //echo $roles."<BR>";
+ //echo $roles."<br/>";
return $roles;
}
*/
"<p>Select an existing sequence or create a new sequence.</p>";
}else if(req.status == 504){//gateway timeout. probabaly LAMS server is not available.
document.getElementById("message").innerHTML =
- '<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">It seems the LAMS server is not available!<BR> Please contact your administrator.</h4></td></tr></table>';
+ '<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">It seems the LAMS server is not available!<br/> Please contact your administrator.</h4></td></tr></table>';
}else if(req.status == 401){//AuthenticationException thrown by LAMS server.
document.getElementById("message").innerHTML =
- '<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">This moodle server is not authenticated by LAMS!<BR> Please contact your administrator.</h4></td></tr></table>';
+ '<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">This moodle server is not authenticated by LAMS!<br/> Please contact your administrator.</h4></td></tr></table>';
}else if(req.status == 502){//Unknow exception thrown by LAMS server
document.getElementById("message").innerHTML =
'<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">An unexpected error returned from LAMS server:'+req.responseText+'! Please contact your administrator.</h4></td></tr></table>';
}else if(req.status == 417){//ServerNotFound exception thrown by LAMS server
document.getElementById("message").innerHTML =
- '<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">This moodle server has not registered in LAMS!<BR> Please contact your administrator.</h4></td></tr></table>';
+ '<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">This moodle server has not registered in LAMS!<br/> Please contact your administrator.</h4></td></tr></table>';
}else if(req.status == 402){//All LAMS module settings have not not been set up
document.getElementById("message").innerHTML =
- '<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">All the LAMS module settings have not been set up!<BR> Please contact your administrator.</h4></td></tr></table>';
+ '<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">All the LAMS module settings have not been set up!<br/> Please contact your administrator.</h4></td></tr></table>';
}else{//this error should come from moodle server itself
document.getElementById("message").innerHTML =
'<table align="center" width="57%" class="noticebox" border="0" cellpadding="15" cellspacing="0"><tr><td bgcolor="#FFAAAA" class="noticeboxcontent"><h4 class="main">It should be a moodle server error:'+req.status + ' ' + req.statusText+'! Please contact your administrator.</h4></td></tr></table>';
**/
function removedoublecr($filename) {
-// This function will adjust a file in roughly Aiken style by replacing extra newlines with <BR> tags
+// This function will adjust a file in roughly Aiken style by replacing extra newlines with <br/> tags
// so that instructors can have newlines wherever they like as long as the overall format is in Aiken
$filearray = file($filename);
if (count($outarray) ) {
// get the last item in the outarray
$cur_pos = (count($outarray) - 1);
- $outarray[$cur_pos] = trim($outarray[$cur_pos])."<br>\n";
+ $outarray[$cur_pos] = trim($outarray[$cur_pos])."<br/>\n";
}
}
else {
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 200 == 0) {
- echo "<br>";
+ echo "<br/>";
}
}
backup_flush(300);
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 200 == 0) {
- echo "<br>";
+ echo "<br/>";
}
}
backup_flush(300);
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
- echo "<br>";
+ echo "<br/>";
}
}
backup_flush(300);
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
- echo "<br>";
+ echo "<br/>";
}
}
backup_flush(300);
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
- echo "<br>";
+ echo "<br/>";
}
}
backup_flush(300);
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
- echo "<br>";
+ echo "<br/>";
}
}
backup_flush(300);
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
- echo "<br>";
+ echo "<br/>";
}
}
backup_flush(300);
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
- echo "<br>";
+ echo "<br/>";
}
}
backup_flush(300);
break;
default:
if (!defined('RESTORE_SILENTLY')) {
- echo "action (".$log->module."-".$log->action.") unknown. Not restored<br>"; //Debug
+ echo "action (".$log->module."-".$log->action.") unknown. Not restored<br/>"; //Debug
}
break;
}
$path = $dirpath.'/'.$filename;
if (is_dir($path) && file_exists("$path/imsmanifest.xml")) {
if ($all == 'force' || !file_exists("$path/moodle_inx.ser")) {
- echo "DEPLOYING $path<br>";
+ echo "DEPLOYING $path<br/>";
ims_deploy_file($file.'/'.$filename, $all);
}
}
else if (is_dir($path)) {
- echo "DEPLOYING $path<br>";
+ echo "DEPLOYING $path<br/>";
ims_deploy_folder($file.'/'.$filename, $all);
}
else {
- echo "WONT DEPLOY $path<br>";
+ echo "WONT DEPLOY $path<br/>";
}
}
}
"file://" );
// allowed wikinames
-//define( "EWIKI_CHARS_L", "a-zäöüß_µ¤$" );
-//define( "EWIKI_CHARS_U", "A-ZÄÖÜ" );
+//define( "EWIKI_CHARS_L", "a-z����_��$" );
+//define( "EWIKI_CHARS_U", "A-Z���" );
function wiki_format( $wiki_source,
$strip_slashes = true,
$syn_htmlentities = array( "&" => "&",
">" => ">",
"<" => "<",
- "%%%" => "<br>" );
+ "%%%" => "<br/>" );
$wm_list = array( "-" => array('ul type="square"', "", "li"),
"*" => array('ul type="circle"', "", "li"),
// "###" => array("<big><b>", "</b></big>"),
"**" => array("<b>", "</b>"),
"##" => array("<big>", "</big>"),
- "µµ" => array("<small>", "</small>") );
+ "��" => array("<small>", "</small>") );
$link_regex = "#(!?\[[^[\]\n]+\])|((?:!?[a-z]{2,6}://|mailto:)[^\s\[\]\'\"\)\,<]+)#";
//now blocks...
//
- mtrace(".<br><a href='index.php'>Back to query page</a>.");
+ mtrace(".<br/><a href='index.php'>Back to query page</a>.");
mtrace('</pre>');
//finished, turn busy flag off
if (is_array($str) or is_object($str)) {
print_r($str);
} else if ($str) {
- print $str."<br>";
+ print $str."<br/>";
} //if
exit(0);
?>
</form>
-<br>
+<br/>
<?php
//now blocks...
//
- mtrace("<br><a href='../index.php'>Back to query page</a> or <a href='../indexersplash.php'>Start indexing</a>.");
+ mtrace("<br/><a href='../index.php'>Back to query page</a> or <a href='../indexersplash.php'>Start indexing</a>.");
mtrace('</pre>');
?>
\ No newline at end of file