?>
<script type="text/javascript">
<!--
- scroll_active = true;
function empty_field_and_submit() {
document.sendForm.chat_message.value = document.inputForm.chat_message.value;
document.inputForm.chat_message.value = '';
-<html>
-<body>
+<html>\r
+<body>\r
+</body>\r
+</html>\r
<meta http-equiv="content-type" content="text/html; charset=<?php echo get_string('thischarset'); ?>" />
<script type="text/javascript">
<!--
+ if (parent.msg.document.getElementById("msgStarted") == null) {
+ parent.msg.document.open("text/html","replace");
+ parent.msg.document.write("<html><head>");
+ parent.msg.document.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=<?php echo get_string('thischarset'); ?>\" />");
+ parent.msg.document.write("</head><body><div style=\"display: none\" id=\"msgStarted\"> </div>");
+ }
<?php
$beep = false;
$refreshusers = false;
/// This function prepares moodle to operate in given language
/// usable when $nomoodlecookie = true;
/// BEWARE: there must be no $course, $USER or $SESSION
+ global $CFG;
+
if(!empty($CFG->courselang)) {
- uset($CFG->courselang);
+ unset($CFG->courselang);
}
if(!empty($CFG->locale)) {
- uset($CFG->locale);
+ unset($CFG->locale);
}
$CFG->lang = clean_filename($lang);
moodle_setlocale();