Пример #1
0
     echo "<fieldset style=\"width: 50%;\"><LEGEND>Connexion au serveur de base de données</LEGEND>";
     echo "<table border=0 width=\"100%\"><tr valign=top >";
     echo "<td style=\"width: 800px;\">";
     metaform_text("Hôte", "", 50, "", "host", "localhost");
     metaform_text("Port", "", 25, "", "port", 5432);
     metaform_text("Utilisateur admin", "", 50, "", "user", "postgres");
     metaform_pw("Mot de passe admin", "", 50, "", "mdp", null);
     echo "</td></tr></table>";
     echo "</fieldset>";
     //------------------------------------------------------------------------------ EDIT LR GRP2
     echo "<fieldset  style=\"width: 50%;\"><LEGEND> Création de la base de données </LEGEND>";
     echo "<table border=0 width=\"100%\"><tr valign=top >";
     echo "<td style=\"width: 800px;\">";
     metaform_text("Nom de la base", "", 50, "", "dbname", "codex");
     metaform_text("Utilisateur codex", "", 50, "", "user_codex", null);
     metaform_pw("Mot de passe codex", "", 20, "", "mdp_codex", null);
     echo "</td></tr></table>";
     echo "</fieldset>";
 }
 //------------------------------------------------------------------------------ EDIT LR GRP3
 echo "<fieldset style=\"width: 50%;\"><LEGEND> Choix des rubriques à installer </LEGEND>";
 echo "<table border=0 width=\"100%\"><tr valign=top >";
 echo "<td style=\"width: 800px;\">";
 $rub_ok["refnat"] = 't';
 foreach ($rub as $key => $val) {
     // if (file_exists("../../_SQL/bdd_codex_archi_".$key.".sql") == FALSE) $desc[$key] = " bloque";
     metaform_bool($val, $desc[$key], $key, $rub_ok[$key]);
     // metaform_bool ($val,$desc[$key],$key."_data",$rub_ok[$key]);
     if ($key == 'refnat') {
         echo "  * <i>L'installation de cette rubrique est <b>>à 2 minutes</b>, soyez patients</i>";
     } elseif ($key == 'lr' or $key == 'eee' or $key == 'catnat') {
Пример #2
0
         echo "<fieldset style=\"width: 50%;\"><LEGEND>Connexion au serveur de base de données</LEGEND>";
         echo "<table border=0 width=\"100%\"><tr valign=top >";
         echo "<td style=\"width: 800px;\">";
         metaform_text("Hôte", "", 50, "", "host", $host);
         metaform_text("Port", "", 25, "", "port", $port);
         metaform_text("Utilisateur admin", "", 50, "", "user", $user);
         metaform_pw("Mot de passe admin", "", 50, "", "dbpass", $dbpass);
         echo "</td></tr></table>";
         echo "</fieldset>";
         //------------------------------------------------------------------------------ EDIT LR GRP2
         echo "<fieldset  style=\"width: 50%;\"><LEGEND> Création de la base de données </LEGEND>";
         echo "<table border=0 width=\"100%\"><tr valign=top >";
         echo "<td style=\"width: 800px;\">";
         metaform_text("Nom de la base", "", 50, "", "bdd", $bdd);
         metaform_text("Utilisateur Appli", "", 50, "", "user_appli", $user_appli);
         metaform_pw("Mot de passe Appli", "", 20, "", "pass_appli", $pass_appli);
         echo "</td></tr></table>";
         echo "</fieldset>";
     }
     echo "</div>";
     echo "</div></center>";
     echo "<center><button id=\"install-button\">Lancer l'installation</button></center>";
     echo "</form>";
     break;
     /*-------------------------------------------------------------------------------------*/
     /*Réalisation de l'installation--------------------------------------------------------*/
 /*-------------------------------------------------------------------------------------*/
 /*Réalisation de l'installation--------------------------------------------------------*/
 case "install-set":
     echo "<div id=\"fiche\" >";
     if (isset($_POST["host"]) and isset($_POST["port"]) and isset($_POST["user"]) and isset($_POST["dbpass"]) and isset($_POST["bdd"]) and isset($_POST["user_appli"]) and isset($_POST["pass_appli"])) {