<?php require_once('includes/requirecompere.inc.php'); $lctr_id=TGET('lctr_id'); $mb_id=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); $reservation=db_load_reservation($DBConn,$lctr_id,$st_id,$mb_id); $lecture=db_load_lecture_by_id($DBConn,$lctr_id); $course=db_load_course_by_id($DBConn,$lecture['cs_id']); if (!$reservation || !$course || $course['mb_id_owner']!=$mb_id_owner) { redirect("./"); return; } if ($course['cs_autoconfirm']=='ALLBUTONE') $id_participants=db_load_lecture_participant_ids($DBConn,$lctr_id); else $id_participants=array($mb_id); $participants=db_load_members($DBConn,$id_participants); $dataset['lctr_id']=$lctr_id; $dataset['mb_id']=$mb_id; $dataset['st_id']=$st_id; $dataset+=$course; $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['since_weekday']=datetime_to_weekday($lecture['lctr_since'],$timezone_bias_seconds); $dataset['expire_weekday']=datetime_to_weekday($lecture['lctr_expire'],$timezone_bias_seconds); $dataset['PARTICIPANT']=$participants; ?>