[ Index ]
 

Code source de WikiNi 0.4.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/setup/ -> default.php (source)

   1  <?php
   2  /*
   3  default.php
   4  Copyright (c) 2002, Hendrik Mans <hendrik@mans.de>
   5  Copyright 2002, 2003 David DELON
   6  Copyright 2002 Patrick PAUL
   7  Copyright 2006 Didier LOISEAU
   8  All rights reserved.
   9  Redistribution and use in source and binary forms, with or without
  10  modification, are permitted provided that the following conditions
  11  are met:
  12  1. Redistributions of source code must retain the above copyright
  13  notice, this list of conditions and the following disclaimer.
  14  2. Redistributions in binary form must reproduce the above copyright
  15  notice, this list of conditions and the following disclaimer in the
  16  documentation and/or other materials provided with the distribution.
  17  3. The name of the author may not be used to endorse or promote products
  18  derived from this software without specific prior written permission.
  19  
  20  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  21  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  22  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  23  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  24  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  25  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  26  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  27  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  29  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30  */
  31  if (!defined('WIKINI_VERSION'))
  32  {
  33      die ("acc&egrave;s direct interdit");
  34  }
  35  ?><form action="<?php echo  myLocation() ?>?installAction=install" method="post">
  36  <table>
  37  
  38      <tr><td></td><td><b>Installation de WikiNi</b></td></tr>
  39  
  40      <?php
  41      if (($wakkaConfig["wakka_version"]) || ($wakkaConfig["wikini_version"]))
  42      {
  43          if ($wakkaConfig["wikini_version"]) {
  44              $config=$wakkaConfig["wikini_version"];
  45          }
  46          else {
  47              $config=$wakkaConfig["wakka_version"];
  48          }
  49          echo "<tr><td></td><td>Votre syst&egrave;me WikiNi existant a &eacute;t&eacute;",
  50              " reconnu comme &eacute;tant la version ",$config,". Vous &ecirc;tes sur le point ",
  51              "de <b>mettre &agrave; jour</b> WikiNi pour la version ",WIKINI_VERSION,
  52              ". Veuillez revoir vos informations de configuration ci-dessous.</td></tr>\n";
  53      }
  54      else
  55      {
  56          echo "<tr><td></td><td>Vous &ecirc;tes sur le point d'installer WikiNi ",WIKINI_VERSION,
  57              ". Veuillez configurer votre WikiNi en utilisant le formulaire suivant.</td></tr>\n";
  58      }
  59      ?>
  60  
  61      <tr><td></td><td><br />NOTE: Ce programme d'installation va essayer de modifier les options
  62          de configurations dans le fichier <tt>wakka.config.php</tt>, situ&eacute; dans votre
  63          r&eacute;pertoire WikiNi. Pour que cela fonctionne, veuillez vous assurer que votre serveur
  64          a les droits d'acc&egrave;s en &eacute;criture pour ce fichier. Si pour une raison
  65          quelconque vous ne pouvez pas faire &ccedil;a vous devrez modifier ce fichier manuellement
  66          (ce programme d'installation vous dira comment).</td></tr>
  67  
  68      <tr><td></td><td><br /><b>Configuration de la base de donn&eacute;es</b></td></tr>
  69      <tr><td></td><td>La machine sur laquelle se trouve votre serveur MySQL.
  70          En g&eacute;n&eacute;ral c'est "localhost" (ie, la m&ecirc;me machine que celle
  71          o&ugrave; se trouvent les pages de WikiNi.).</td></tr>
  72      <tr><td align="right" nowrap>Machine MySQL :</td>
  73          <td><input type="text" size="50" name="config[mysql_host]" value="<?php
  74              echo $wakkaConfig["mysql_host"] ?>" /></td></tr>
  75      <tr><td></td><td>La base de donn&eacute;es MySQL &agrave; utiliser pour WikiNi.
  76          Cette base de donn&eacute;es doit d&eacute;j&agrave; exister avant de pouvoir continuer.</td></tr>
  77      <tr><td align="right" nowrap>Base de donn&eacute;es MySQL :</td>
  78          <td><input type="text" size="50" name="config[mysql_database]" value="<?php
  79              echo $wakkaConfig["mysql_database"] ?>" /></td></tr>
  80      <tr><td></td><td>Nom et mot de passe de l'utilisateur MySQL qui sera utilis&eacute;
  81          pour se connecter &agrave; votre base de donn&eacute;es.</td></tr>
  82      <tr><td align="right" nowrap>Non de l'utilisateur MySQL :</td>
  83          <td><input type="text" size="50" name="config[mysql_user]" value="<?php
  84              echo $wakkaConfig["mysql_user"] ?>" /></td></tr>
  85      <tr><td align="right" nowrap>Mot de passe MySQL :</td>
  86          <td><input type="password" size="50" name="config[mysql_password]" value="" /></td></tr>
  87      <tr><td></td><td>Pr&eacute;fixe &agrave; utiliser pour toutes les tables utilis&eacute;es
  88          par WikiNi. Ceci vous permet d'utiliser plusieurs WikiNi sur une m&ecirc;me base
  89          de donnn&eacute;es en donnant diff&eacute;rents pr&eacute;fixes aux tables.</td></tr>
  90      <tr><td align="right" nowrap>Prefixe des tables :</td>
  91          <td><input type="text" size="50" name="config[table_prefix]" value="<?php
  92              echo $wakkaConfig["table_prefix"] ?>" /></td></tr>
  93  
  94      <tr><td></td><td><br /><b>Configuration de votre site WikiNi</b></td></tr>
  95  
  96      <tr><td></td><td>Le nom de votre site WikiNi. Ceci est g&eacute;n&eacute;ralement un NomWiki
  97          et EstSousCetteForme.</td></tr>
  98      <tr><td align="right" nowrap>Le nom de votre WikiNi :</td>
  99          <td><input type="text" size="50" name="config[wakka_name]" value="<?php
 100              echo $wakkaConfig["wakka_name"] ?>" /></td></tr>
 101  
 102      <tr><td></td><td>La page d'accueil de votre WikiNi. Ceci doit &ecirc;tre un NomWiki.</td></tr>
 103      <tr><td align="right" nowrap>Home page:</td>
 104          <td><input type="text" size="50" name="config[root_page]" value="<?php
 105              echo $wakkaConfig["root_page"] ?>" /></td></tr>
 106  
 107      <tr><td></td><td>META Mots clefs/Description qui seront ins&eacute;r&eacute;s dans les codes HTML.</td></tr>
 108      <tr><td align="right" nowrap>Mots clefs :</td>
 109          <td><input type="text" size="50" name="config[meta_keywords]" value="<?php
 110              echo $wakkaConfig["meta_keywords"] ?>" /></td></tr>
 111      <tr><td align="right" nowrap>Description :</td>
 112          <td><input type="text" size="50" name="config[meta_description]" value="<?php
 113              echo $wakkaConfig["meta_description"] ?>" /></td></tr>
 114  
 115      <tr><td></td><td><br /><b>Configuration de l'URL de votre WikiNi</b><?php
 116          if (!$wakkaConfig["wikini_version"])
 117          {
 118              echo "<br />Ceci est une nouvelle installation. Le programme d'installation",
 119                  " va essayer de trouver les valeurs appropri&eacute;es. Changez-les uniquement" .
 120                  " si vous savez ce que vous faites.";
 121          } ?></td></tr>
 122  
 123      <tr><td></td><td>L'URL de base de votre site WikiNi. Les noms des pages seront directement
 124          rajout&eacute;s &agrave; cet URL. Supprimez la partie "?wiki=" uniquement si vous utilisez
 125          la redirection (voir ci apr&egrave;s).</td></tr>
 126      <tr><td align="right" nowrap>URL de base :</td>
 127          <td><input type="text" size="50" name="config[base_url]" value="<?php
 128              echo $wakkaConfig["base_url"] ?>" /></td></tr>
 129  
 130      <tr><td></td><td>Le mode "redirection automatique" doit &ecirc;tre s&eacute;lectionn&eacute;
 131          uniquement si vous utilisez WikiNi avec la redirection d'URL (si vous ne savez pas
 132          ce qu'est la redirection d'URL n'activez pas cette option).</td></tr>
 133      <tr><td align="right" nowrap>Mode "redirection" :</td>
 134          <td><input type="hidden" name="config[rewrite_mode]" value="0" />
 135              <input type="checkbox" name="config[rewrite_mode]" value="1" <?php
 136                  echo $wakkaConfig["rewrite_mode"] ? "checked" : "" ?> /> Activation</td></tr>
 137  
 138      <tr><td></td><td><br /><b>Options suppl&eacute;mentaires</b></td></tr>
 139  
 140      <tr><td></td><td><input type="hidden" name="config[preview_before_save]" value="0" />
 141              <input type="checkbox" name="config[preview_before_save]" value="1" <?php
 142                  echo $wakkaConfig["preview_before_save"] ? "checked" : "" ?> />
 143                  Imposer de faire un aper&ccedil;u avant de pouvoir sauver une page.</td></tr>
 144  
 145      <tr><td></td><td><input type="checkbox" name="config[allow_raw_html]" value="1" <?php
 146                  echo $wakkaConfig['allow_raw_html'] ? 'checked' : '' ?> />
 147                  Autoriser l'insertion de HTML brut.
 148                  <span style="color: red; font-weight: bold">! Attention !</span>
 149                  Ceci peut présenter une véritable faille de sécurité ! Ne cochez pas cette case
 150                  si vous ne savez pas ce que vous faites.</td></tr>
 151  
 152      <tr><td></td><td><input type="submit" value="Continuer" /></td></tr>
 153  </table>
 154  </form>


Généré le : Mon Nov 26 12:05:46 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics