<!-- InstanceEndEditable --> </head> <body> <?php /*------------------------------------------------------ IMPORTATIONS --------------------------------------------------------*/ ?> <!-- InstanceBeginEditable name="php" --> <?php /*-------------------------------------------------------------------- INITIALISATIONS ----------------------------------------------------------------------*/ $msginfo = ""; $PATH_RACINE = CUrl::get_pathsite(); $URL_RACINE = CUrl::get_urlsite(); ?> <!-- InstanceEndEditable --> <div id="mainwrap"> <div id="header"><?php include("../nav/header.php"); ?></div> <div id="top"> </div> <div id="filet"> <div id="zonetitre"> <div id="signe"></div> <div id="titre"><!-- InstanceBeginEditable name="titre" -->Installation<!-- InstanceEndEditable --></div> </div> </div> <div id="contentarea"> <div id="left"><?php include("menu_g.php"); ?></div> <div id="center">
$msginfo = "<span class='msginfo'>Félicitation : Istallation réussie. Vous pouvez maintenant aller au <a href='" . $URL_RACINE . "'>site</a> ou à l'<a href='" . $URL_RACINE . "/adminpanther'>administration</a>.</span>"; /*-------------------------------------------------------------------- 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
function get_dirnamesite() { return str_replace($_SERVER['DOCUMENT_ROOT'], '', CUrl::get_pathsite()); }