예제 #1
0
        $navigation[$course->shortname] = "{$CFG->wwwroot}/course/view.php?id={$course->id}";
    }
    $navigation[$strliveclassrooms] = "";
    $urls = array();
    foreach ($navigation as $text => $href) {
        if (empty($href)) {
            $urls[] = $text;
        } else {
            $urls[] = '<a href="' . $href . '">' . $text . '</a>';
        }
    }
    $breadcrumb = implode(' -> ', $urls);
    print_header("{$course->shortname}", "{$course->fullname}", $breadcrumb, "", "", true, "", navmenu($course));
}
/// Get all the appropriate data
$url = liveclassroom_get_url_params($course->id);
?>

<div align="center">
    <iframe id="iframeW" width="702px" height="502px" name="frameWidget" frameborder="0" scrolling="no" align="middle" style="margin-top:50px">
      <p>Sorry your navigator can't display this iframe
    </iframe>
</div>

<script>
	document.getElementById("iframeW").src='<?php 
echo "welcome.php?id=" . $id . "&" . $url . "&time=" . time();
?>
'
</script>
            break;
        case "saveSettings":
            $id = $api->createRoom($roomId, "true");
            echo "good";
            exit;
            break;
        case "getMp3Status":
            $audioFileStatus = $api->getMp3Status($rid_audio);
            if ($audioFileStatus === false || $audioFileStatus->getStatus() == "") {
                echo "error_server";
            } else {
                echo $audioFileStatus->getStatus() . ";" . $audioFileStatus->getUri() . ";";
            }
            exit;
            break;
        case "getMp4Status":
            $audioFileStatus = $api->getMp4Status($rid_audio);
            if ($audioFileStatus === false || $audioFileStatus->getStatus() == "") {
                echo "error_server";
            } else {
                echo $audioFileStatus->getStatus() . ";" . $audioFileStatus->getUri() . ";";
            }
            exit;
            break;
    }
    if ($action != "getDialInformation") {
        redirection('welcome.php?' . 'id=' . $session->getCourseId() . '&' . $session->url_params . '&time=' . $session->timeOfLoad . '&messageAction=' . $messageAction . '&messageProduct=' . $messageProduct);
    }
} else {
    redirection('welcome.php?' . 'id=' . $params["enc_course_id"] . '&' . liveclassroom_get_url_params($params["enc_course_id"]) . '&time=' . $session->timeOfLoad . '&error=session');
}