<?php require_once('includes/requirecompere.inc.php'); $CMD_TMPL_NAME='optioninfo'; $o_id=TGET('o_id'); $op=TGET('op'); $mb_id=current_mb_id(); $DBConn->connect(true); $option=db_load_option_by_id($DBConn,$o_id,true,true); $course=db_load_course_by_id($DBConn,$option['cs_id']); if ($op=='revise' && $_SESSION['reserv.inputcache.domain']=='course.option.modify') { $dataset+=$_SESSION['reserv.inputcache.errorareas']; $dataset+=$_SESSION['reserv.inputcache.inputcache']; } else $dataset+=$option; $dataset['MODIFY']=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['THUMBNAIL']=$dataset['o_thumbnail_url']?array(0):array(); $dataset['THUMBNAIL-NONE']=$dataset['o_thumbnail_url']?array():array(0); $dataset['RETURN-MANAGE']=array(0); ?>