<?php require_once('includes/courseinfo.inc.php'); require_once('includes/options.inc.php'); require_once('includes/reservation.inc.php'); require_once('includes/question.inc.php'); $lctr_id=0+TGET('lctr_id'); $op=TGET('op'); $mb_id=current_mb_id(); $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']); $circlepart=db_load_course_circle($DBConn,$cs_id,current_mb_id()); if ($course['cs_visibleto']=='CIRCLE' && !$circlepart) { redirect("./"); return; } if (!db_is_compere_qualified($DBConn,$course['mb_id_owner'])) { redirect("./"); return; } if (!questionnaire_reserve_guide($DBConn,$lecture['cs_id'],array('redirect'=>true))) return; $USE_THEME_BY_USER_ID=$course['mb_id_owner']; if ($op=='revise' && $_SESSION['reserv.inputcache.domain']=='reserve.lecture') { $inputdata=$_SESSION['reserv.inputcache.data']; $dataset+=$_SESSION['reserv.inputcache.data']; $dataset+=$_SESSION['reserv.inputcache.errorareas']; } else { $inputdata=array(); $_SESSION['reserv.inputcache.domain']=null; } $dataset+=prepare_lecture_reserve_dataset($DBConn,$lecture,$course,true,false,$inputdata); $reservation_count=db_count_reservations_of_compere($DBConn,$course['mb_id_owner']); $dataset['ERROR-COUNT-LIMIT']=$reservation_count>=get_compere_limit($DBConn,$course['mb_id_owner'],'reservation.count')?array(0):array(); $dataset+=prepare_answer_set_dataset($DBConn,null,retrieve_transfered_answer_data($DBConn,$lecture['cs_id'])); $dataset['DISPLAY-ANSWER-SET']=$dataset['ANSWER-SET']?array(0):array(); ?>