MDL-7861 xhtml strict fixes - fixed all <br> in our code

This commit is contained in:
skodak 2007-01-04 23:38:17 +00:00
parent 7bc1c17fef
commit 7150226896
35 changed files with 116 additions and 116 deletions

View File

@ -234,9 +234,9 @@ class auth_plugin_mnet
$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)) {

View File

@ -45,35 +45,35 @@ class auth_plugin_radius {
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();
}

View File

@ -49,7 +49,7 @@
<?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>';
}

View File

@ -1943,7 +1943,7 @@
$status = zip_files($files, "$basedir/$name");
//echo "<br>Status: ".$status; //Debug
//echo "<br/>Status: ".$status; //Debug
return $status;
}

View File

@ -6111,14 +6111,14 @@
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,"&nbsp;&nbsp;&nbsp;This Courses Start Date is now " .$date['weekday'].", ".$date['mday']." ".$date['month']." ".$date['year']."<br><br>");
fwrite ($restorelog_file,"&nbsp;&nbsp;&nbsp;This Courses Start Date is now " .$date['weekday'].", ".$date['mday']." ".$date['month']." ".$date['year']."<br/><br/>");
if ($status) {
return $restorelog_file;
@ -6139,8 +6139,8 @@
$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;

View File

@ -5,7 +5,7 @@
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
@ -13,7 +13,7 @@
p($CFG->block_search_button);
} else {
p("Go");
} ?>"/><br><br>
} ?>"/><br/><br/>
<input type="submit" value="<?php print_string('savechanges'); ?>" />
</div>

View File

@ -115,7 +115,7 @@ if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
'<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>'.

View File

@ -254,7 +254,7 @@ if (!isset($frm->enrol_ldap_template)) {
<?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"') ?> >
@ -278,7 +278,7 @@ if (!isset($frm->enrol_ldap_template)) {
<?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"') ?> >
@ -303,7 +303,7 @@ if (!isset($frm->enrol_ldap_template)) {
<?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"') ?> >
@ -328,7 +328,7 @@ if (!isset($frm->enrol_ldap_template)) {
<?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"') ?> >

View File

@ -5,7 +5,7 @@
</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>

View File

@ -436,9 +436,9 @@ class enrolment_plugin_mnet {
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;
}

View File

@ -105,13 +105,13 @@ function algebra2tex($algebra) {
$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;
}
@ -121,13 +121,13 @@ function algebra2tex($algebra) {
$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;
}

View File

@ -790,7 +790,7 @@ function grade_set_uncategorized() {
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

View File

@ -47,7 +47,7 @@ if ($success) {
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.');

View File

@ -92,7 +92,7 @@ if ($use_firewall) {
$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)) {
@ -106,7 +106,7 @@ if ($use_firewall) {
$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)) {

View File

@ -148,7 +148,7 @@ $string['auth_radiusnasport'] = 'Port to use to connect';
$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';

View File

@ -12,11 +12,11 @@ $string['allowedcourses'] = '$a allowed courses';
$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/>';
?>

View File

@ -11,8 +11,8 @@ It is calculated as:
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>
@ -47,7 +47,7 @@ The discrimination coefficient is a correlation coefficient between scores at th
<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.

View File

@ -77,7 +77,7 @@ $string['displayleftif'] = 'and only display if $a has grade greater than:';
$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';

View File

@ -4001,14 +4001,14 @@ function current_charset($ignorecache = false) {
*
* 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');
@ -4064,7 +4064,7 @@ function clean_getstring_data( $a ) {
*
* 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>

View File

@ -432,7 +432,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') {
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;
@ -527,7 +527,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') {
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;

View File

@ -69,11 +69,11 @@
$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,"&nbsp;&nbsp;&nbsp;the DEADLINE is now " .$date['weekday'].", ".$date['mday']." ".$date['month']." ".$date['year']."<br>");
fwrite ($restorelog_file,"&nbsp;&nbsp;&nbsp;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']['#']);

View File

@ -97,7 +97,7 @@
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 ) {

View File

@ -576,7 +576,7 @@ function hotpot_set_attempt_details(&$attempt) {
$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;
}

View File

@ -130,7 +130,7 @@ function hotpot_remove_orphans($secondarytable, $secondarykeyfield, $primarytabl
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)");
}
@ -418,7 +418,7 @@ function hotpot_update_to_v2_1() {
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";
}

View File

@ -333,8 +333,8 @@ function hotpot_restore_record(&$restore, $status, &$xml, $table, $foreign_keys,
} 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) ";

View File

@ -22,7 +22,7 @@ function lams_update_instance($lams) {
/// 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);
@ -31,13 +31,13 @@ function lams_update_instance($lams) {
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);
}
@ -203,17 +203,17 @@ function lams_get_sequences($username,$courseid) {
* @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");
@ -226,8 +226,8 @@ function lams_get_lesson($username,$ldid,$courseid,$title,$desc,$type) {
//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();
}
@ -243,7 +243,7 @@ function lams_get_lesson($username,$ldid,$courseid,$title,$desc,$type) {
* @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))
{
@ -281,7 +281,7 @@ function lams_delete_lesson($username,$lsid) {
/*
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;
@ -301,14 +301,14 @@ function lams_get_class($courseid) {
$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;
}
}
@ -322,7 +322,7 @@ function lams_get_class($courseid) {
/*
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;
@ -341,11 +341,11 @@ function lams_get_organisation() {
//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;
}
}
@ -364,7 +364,7 @@ function lams_get_organisation() {
/*
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;
@ -397,11 +397,11 @@ function lams_get_user($username,$courseid) {
$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;
}
}
@ -432,7 +432,7 @@ function lams_get_user_roles($userid=0, $courseid){
$roles .= "|"."learner";
}
}
//echo $roles."<BR>";
//echo $roles."<br/>";
return $roles;
}
*/

View File

@ -291,19 +291,19 @@ function processStateChange() {
"<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>';

View File

@ -8,7 +8,7 @@
**/
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);
@ -27,7 +27,7 @@ function removedoublecr($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 {

View File

@ -194,7 +194,7 @@
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br/>";
}
}
backup_flush(300);
@ -324,7 +324,7 @@
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br/>";
}
}
backup_flush(300);
@ -392,7 +392,7 @@
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br/>";
}
}
backup_flush(300);
@ -445,7 +445,7 @@
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br/>";
}
}
backup_flush(300);
@ -504,7 +504,7 @@
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br/>";
}
}
backup_flush(300);
@ -554,7 +554,7 @@
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br/>";
}
}
backup_flush(300);
@ -609,7 +609,7 @@
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br/>";
}
}
backup_flush(300);
@ -689,7 +689,7 @@
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br/>";
}
}
backup_flush(300);
@ -884,7 +884,7 @@
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;
}

View File

@ -73,16 +73,16 @@
$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/>";
}
}
}

View File

@ -19,8 +19,8 @@ $ewiki_idf_url = array( "http://",
"file://" );
// allowed wikinames
//define( "EWIKI_CHARS_L", "a-zäöüß_µ¤$" );
//define( "EWIKI_CHARS_U", "A-ZÄÖÜ" );
//define( "EWIKI_CHARS_L", "a-z<EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><EFBFBD>$" );
//define( "EWIKI_CHARS_U", "A-Z<EFBFBD><EFBFBD><EFBFBD>" );
function wiki_format( $wiki_source,
$strip_slashes = true,
@ -56,7 +56,7 @@ function wiki_format( $wiki_source,
$syn_htmlentities = array( "&" => "&amp;",
">" => "&gt;",
"<" => "&lt;",
"%%%" => "<br>" );
"%%%" => "<br/>" );
$wm_list = array( "-" => array('ul type="square"', "", "li"),
"*" => array('ul type="circle"', "", "li"),
@ -72,7 +72,7 @@ function wiki_format( $wiki_source,
// "###" => array("<big><b>", "</b></big>"),
"**" => array("<b>", "</b>"),
"##" => array("<big>", "</big>"),
"µµ" => array("<small>", "</small>") );
"<EFBFBD><EFBFBD>" => array("<small>", "</small>") );
$link_regex = "#(!?\[[^[\]\n]+\])|((?:!?[a-z]{2,6}://|mailto:)[^\s\[\]\'\"\)\,<]+)#";

View File

@ -161,7 +161,7 @@
//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

View File

@ -104,7 +104,7 @@
if (is_array($str) or is_object($str)) {
print_r($str);
} else if ($str) {
print $str."<br>";
print $str."<br/>";
} //if
exit(0);

View File

@ -224,7 +224,7 @@
?>
</form>
<br>
<br/>
<?php

View File

@ -90,7 +90,7 @@
//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>');
?>