//Insertion dans le fichier de config include './modules/mod_config/class.config.php'; $row = new Config(); $row->fillvalue('db_type', $db_type); $row->fillvalue('db_host', $db_host); $row->fillvalue('db_login', $db_login); $row->fillvalue('db_pass', $db_pass); $row->fillvalue('db_name', $db_name); $row->fillvalue('db_prefix', $db_prefix); $row->fillvalue('site_url', $site_url); $row->fillvalue('title', $site_title); $row->fillvalue('keywords', $keywords); $row->fillvalue('description', $description); $config = "<?php\n"; $config .= "// configuration file \n"; $config .= $row->getVarText(); $config .= "?>"; if ($fp = fopen("./includes/config.inc.php", "w")) { fputs($fp, $config, strlen($config)); fclose($fp); } header("Location:index.php?module=mod_install&step=4"); } } else { // Récupération des données $site_url = ""; $site_title = ""; $site_des = ""; $site_keywords = ""; } $step_header .= 'Configuration du site</label>';