size=25; $iclocale=new ISelect('clocale'); $iclocale->value=array( array("value"=>1,"label"=>"Activé"), array("value"=>0,"label"=>"Désactivé") ); $iclocale->selected=1; $icpath=new IText("cpath",$cpath); $icpath->size=30; $icuser=new IText('cuser',$cuser); $icpasswd=new IText('cpasswd',$cpasswd); $icport=new IText("cport",$cport); $ichost=new IText("chost",$chost); /* * For version MONO */ $smulti=new ICheckBox('multi'); $smulti->javascript=' onchange="show_dbname(this)" '; $icdbname=new IText('cdbname'); require NOALYSS_INCLUDE.'/template/template_config_form.php'; } /** * Display the content of the config.inc.php with variables * @param type $p_array * @param type $from_setup * @param type $p_os */ function display_file_config($p_array,$from_setup=1,$p_os=1) { extract($p_array); print (''); } /*!\brief create the config file */ function config_file_create($p_array,$p_os=1) { extract ($p_array); $hFile= fopen(NOALYSS_INCLUDE.'/config.inc.php','w'); ob_start(); display_file_config($p_array,$from_setup,$p_os); $r=ob_get_clean(); fputs($hFile, $r); fclose($hFile); }