<?php require_once('includes/requirelogin.inc.php'); $cs_id=TGET('cs_id'); $dataset['BEFORE-JOIN']=array(0); $DBConn->connect(true); $course=db_load_course_by_id($DBConn,$cs_id); if (!$course) { redirect("./"); return; } $dataset+=$course; $dataset['cs_desc']=strip_tags($dataset['cs_desc']); $IDR_fields=db_get_course_info_requests($DBConn,$cs_id); $IDFmap=loadInfoDisclosureFields(); $dataset['IDR-FIELD']=array(); foreach ($IDR_fields as $field) array_push($dataset['IDR-FIELD'],array('text'=>$IDFmap[$field['id_field']])); $dataset['IDR-REQUIRED']=$dataset['IDR-FIELD']?array(0):array(); $dataset['IDR-NONE']=$dataset['IDR-FIELD']?array():array(0); ?>