<?php require_once('includes/requirecompere.inc.php'); $op=TGET('op'); if ($op=='lecture.addnew') { $mb_id_owner=current_mb_id(); $DBConn->connect(true); $courses=db_load_course_by_owner($DBConn,$mb_id_owner); $dataset['COURSE']=$courses; $dataset['ADD-LECTURE']=array(0); } else exit; ?>