<?php require_once('includes/requirecompere.inc.php'); $cs_id=TGET('cs_id'); if (!$cs_id) { redirect("qx-cmd-course.publishwizard.start.html"); exit; } wizard_clear("publishcourse"); $DBConn->connect(true); $course=db_load_course_by_id($DBConn,$cs_id); $dataset+=$course; $dataset['CIRCLE-ONLY']=$course['cs_visibleto']=='CIRCLE'?array(0):array(); $dataset['PUBLIC-ONLY']=$course['cs_visibleto']=='PUBLIC'?array(0):array(); $dataset['BY-OWNER-ONLY']=$course['cs_initby']=='OWNER'?array(0):array(); $dataset['BY-PARTICIPANT-ONLY']=$course['cs_initby']=='PARTICIPANT'?array(0):array(); ?>