Example #1
0
function liveclassroom_get_url_params($courseid)
{
    global $USER;
    global $CFG;
    $context = get_context_instance(CONTEXT_COURSE, $courseid);
    $role = liveclassroom_getRole($context);
    $signature = md5($courseid . $USER->email . $USER->firstname . $USER->lastname . $role);
    $url_params = "enc_course_id=" . rawurlencode($courseid) . "&enc_email=" . rawurlencode($USER->email) . "&enc_firstname=" . rawurlencode($USER->firstname) . "&enc_lastname=" . rawurlencode($USER->lastname) . "&enc_role=" . rawurlencode($role) . "&signature=" . rawurlencode($signature);
    return $url_params;
}
Example #2
0
p($authToken);
?>
'); 
}
</script>

<div style="border:solid 1px #808080;width:700px;height:400px;background-color:white;margin-left:20%;margin-top:5%"  class="general_font">
    <div class="headerBar">
        <div class="headerBarLeft" >
            <span>Wimba</span>
        </div>
    </div>
     <div style="height:340px;width:700px;">
        <span style="display:block;padding-top:150px;padding-left:200px">
                	<?php 
if ($room->isPreview() == false || liveclassroom_getRole($context) == "Instructor") {
    ?>
	                	<script>startLiveClassroom()</script>
	                   <?php 
    echo get_string('lcpopupshouldappear.1', 'liveclassroom');
    ?>
					    <a href="javascript:startLiveClassroom ();">
						<?php 
    echo get_string('lcpopupshouldappear.2', 'liveclassroom');
    ?>
						</a>
					   <?php 
    echo get_string('lcpopupshouldappear.3', 'liveclassroom');
} else {
    echo get_string('activity_tools_not_available', 'liveclassroom');
}