<?php require_once('includes/requirecompere.inc.php'); $CMD_TMPL_NAME='optioninfo'; $cs_id=TGET('cs_id'); $op=TGET('op'); $mb_id=current_mb_id(); $DBConn->connect(true); if ($op=='revise' && $_SESSION['reserv.inputcache.domain']=='course.option.addnew') { $dataset+=$_SESSION['reserv.inputcache.errorareas']; $dataset+=$_SESSION['reserv.inputcache.inputcache']; } $dataset['ADDNEW']=array(0); $dataset['ENTERING']=array(0); $dataset['max_image_file_size']=$Config->Limits['max_image_file_size']; $dataset['max_image_file_size_kb']=$Config->Limits['max_image_file_size']/1024; $dataset['RETURN-MANAGE']=array(0); $dataset['ERROR-COUNT-LIMIT']=db_count_compere_option($DBConn,$mb_id)>=get_compere_limit($DBConn,$mb_id,'option.count')?array(0):array(); ?>