function put_checksum_db_file($checksum_db_file=CHECKSUM_DBFILE) { return file_put_contents($checksum_db_file, serialize(CInstall::show_db_content())); }
TRAITEMENTS ----------------------------------------------------------------------*/ $config = file_get_contents('../install/CONFIG.txt'); $config = ereg_replace("DB_HOSTNAME_VALUE", $DB_HOSTNAME, $config); $config = ereg_replace('DB_USERNAME_VALUE', $DB_USERNAME, $config); $config = ereg_replace('DB_PASSWORD_VALUE', $DB_PASSWORD, $config); $config = ereg_replace('DB_DATABASE_VALUE', $DB_DATABASE, $config); $config = ereg_replace('PATH_RACINE_VALUE', $PATH_RACINE, $config); $config = ereg_replace('URL_RACINE_VALUE' , $URL_RACINE , $config); include_once("../obj/CUrl.php"); file_put_contents(CUrl::get_pathsite() . '/inc/constante.php', $config); include_once("init.php"); $bdd_object = new CInstall(); if(!$bdd_object->sql_array()) { $msginfo = $msgerror; echo $msginfo; exit; } $msginfo = ($bdd_object->db_ok()) ? $msginfo : $msginfo; /*--------------------------------------------------------------------- CONFIRMATION ----------------------------------------------------------------------*/ echo $msginfo; ?>
<?php include('../inc/init.php'); CInstall::put_checksum_db_file(); ?>