'query_string', 'Path info' => 'path_info' ); $done = false; $err = ''; if (!empty($_POST['inifile'])) { $p_location = trim($_POST['p_location']); $p_blog_name = trim($_POST['p_blog_name']); $p_url_scan = trim($_POST['p_url_scan']); # Création de conf/dotclear.ini $ini_file = dirname(__FILE__).'/../conf/dotclear.ini'; copy($ini_file.'.in',$ini_file); @unlink($ini_file.'.in'); chmod($ini_file,0666); $objIni = new iniFile(dirname(__FILE__).'/../conf/dotclear.ini'); if ($p_url_scan == 'path_info') { $objIni->editVar('dc_blog_url',$p_location.'/index.php/'); } else { $objIni->editVar('dc_blog_url',$p_location.'/index.php'); } $objIni->editVar('dc_app_url',$p_location); $objIni->editVar('dc_blog_rss',$p_location.'/rss.php'); $objIni->editVar('dc_blog_atom',$p_location.'/atom.php'); $objIni->editVar('dc_trackback_uri',$p_location.'/tb.php'); $objIni->editVar('dc_img_url',$p_location.'/images/'); $objIni->editVar('dc_blog_name',$p_blog_name); $objIni->editVar('dc_url_scan',$p_url_scan); $objIni->editVar('dc_encoding',ENCODING); if ($objIni->saveFile() === false) { $err = '
'.__('Unable to write dotclear.ini').'
'; } else { $done = true; $ses->reg('step',7); } } require dirname(__FILE__).'/__top.php'; echo ''.__('Weblog successfully configured').'
'; echo ''; } else { echo ''; } ?>