<?php require_once('includes/requirecompere.inc.php'); $cs_id=0+TGET('cs_id'); $staff_id=0+TGET('mb_id'); $mb_id=current_mb_id(); $DBConn->connect(); $course=db_load_course_by_id($DBConn,$cs_id); if ($mb_id!=$course['mb_id_owner']) { redirect("./"); return; } db_add_staff_to_course($DBConn,$cs_id,$staff_id); redirect("qx-cmd-course.staff-cs_id-".$cs_id.".html"); ?>