<?php require_once('includes/requirecompere.inc.php'); require_once('includes/courseinfo.inc.php'); $CMD_TMPL_NAME='courseinfo'; $cs_id=0+TGET('cs_id'); $mb_id=current_mb_id(); $dataset['DELETED']=array(0); $dataset['CONFIRMING']=array(0); $dataset['MANAGABLE']=array(0); $DBConn->connect(true); $course=db_load_course_by_id($DBConn,$cs_id); if ($course['mb_id_owner']!=$mb_id) { redirect("./"); return; } $dataset+=course_info_prepare_dataset($DBConn,$course); ?>