<?php require_once('includes/requirecompere.inc.php'); require_once('includes/courseinfo.inc.php'); $CMD_TMPL_NAME='courseinfo'; $dataset['ADDNEW']=array(0); $dataset['ENTERING']=array(0); $dataset['MANAGABLE']=array(0); $DBConn->connect(true); if (TGET('op')=='revise' && $_SESSION['reserv.inputcache.domain']=='course') { $dataset+=course_info_prepare_dataset($DBConn,$_SESSION['reserv.inputcache.data']); $dataset+=$_SESSION['reserv.inputcache.errorareas']; } else { $dataset+=course_info_prepare_dataset($DBConn); } $mb_id=current_mb_id(); $c_count=db_count_course($DBConn,$mb_id); $dataset['ERROR-COUNT-LIMIT']=$c_count>=get_compere_limit($DBConn,$mb_id,'course.count')?array(0):array(); $dataset+=prepare_wizard_dataset(); ?>