$linkobject .= '</span>';
if ($text) {
- $url = '/help.php?module='. $module .'&text='. htmlentities(urlencode($text));
+ $url = '/help.php?module='. $module .'&text='. s(urlencode($text));
} else {
$url = '/help.php?module='. $module .'&file='. $page .'.html';
}
$status = update_record("assignment",$assignment);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("chat",$chat);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("choice",$choice);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("forum_posts",$post);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("forum",$forum);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("glossary_entries",$entry);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("glossary",$glossary);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("label", $label);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$tags = '<div><img>'; // should also allow <b><i>
$string = strip_tags($content,$tags);
- //echo htmlentities($string);
+ //echo s($string);
$matches = array();
// this will look for a non nested tag that is closed
return true;
}
-?>
\ No newline at end of file
+?>
$status = update_record("lesson_pages",$page);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("quiz",$quiz);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("resource",$resource);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content1).'<br />changed to<br />'.htmlentities($result1).'<hr /><br />';
- echo '<br /><hr />'.htmlentities($content2).'<br />changed to<br />'.htmlentities($result2).'<hr /><br />';
- echo '<br /><hr />'.htmlentities($content3).'<br />changed to<br />'.htmlentities($result3).'<hr /><br />';
+ echo '<br /><hr />'.s($content1).'<br />changed to<br />'.s($result1).'<hr /><br />';
+ echo '<br /><hr />'.s($content2).'<br />changed to<br />'.s($result2).'<hr /><br />';
+ echo '<br /><hr />'.s($content3).'<br />changed to<br />'.s($result3).'<hr /><br />';
}
}
}
$status = update_record("scorm",$scorm);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("survey",$survey);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("wiki_pages",$page);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("wiki",$wiki);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}
$status = update_record("workshop",$workshop);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
- echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+ echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}