<?php $cs_id=TGET('cs_id'); if (!$cs_id) redirect("qx-cmd-course.publishwizard.start.html"); else { $DBConn->connect(true); $course=db_load_course_by_id($DBConn,$cs_id); if (!$course) redirect("qx-cmd-course.publishwizard.start.html"); elseif ($course['cs_initby']=='OWNER') redirect("qx-cmd-course.publishwizard.done-cs_id-".$cs_id.".html"); elseif ($course['cs_initby']=='PARTICIPANT') redirect("qx-cmd-timeavail.addnew-cs_id-".$cs_id."-wizard-publishcourse.html"); } ?>