<?php require_once('includes/requirecompere.inc.php'); $lctr_id=TGET('lctr_id'); $mb_id_participant=TGET('mb_id'); $st_id=TGET('st_id'); $mb_id_owner=current_mb_id(); $timezone_bias_seconds=get_user_time_zone()*60; $DBConn->connect(true); $lecture=db_load_lecture_by_id($DBConn,$lctr_id); if (!$lecture) { redirect("./"); return; } $course=db_load_course_by_id($DBConn,$lecture['cs_id']); if ($course['mb_id_owner']!=$mb_id_owner) { redirect("./"); return; } if (seconds_to_datetime()>=$lecture['lctr_expire']) $dataset['TIMEOVER']=array(0); else $dataset['CANCELLABLE']=array(0); $dataset+=db_load_member($DBConn,$mb_id_participant); $dataset+=db_load_classroom($DBConn,$lecture['clsr_id']); $dataset+=db_load_seat($DBConn,$st_id); $dataset+=array_key_prepend(split_datetime($lecture['lctr_since'],$timezone_bias_seconds),'since_'); $dataset+=array_key_prepend(split_datetime($lecture['lctr_expire'],$timezone_bias_seconds),'expire_'); $dataset+=$course; $dataset['lctr_id']=$lctr_id; $dataset['mb_id']=$mb_id_participant; $dataset['st_id']=$st_id; ?>