[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Agora1-4/ecrire/include/clevermail/admin/ -> install.php (source)

   1  <?php
   2  /*****************************************************
   3  * This file is part of Agora, web based content management system.
   4  *
   5  * Agora is free software; you can redistribute it and/or modify
   6  * it under the terms of the GNU General Public License as published by
   7  * the Free Software Foundation; version 2 of the License.
   8  *
   9  * Agora is distributed in the hope that it will be useful,
  10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  * GNU General Public License for more details (file "COPYING").
  13  *
  14  * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière.
  15  * List of authors detailed in "copyright_fr.html" file.
  16  * E-mail : agora@sig.premier-ministre.gouv.fr
  17  * Web site : http://www.agora.gouv.fr
  18  *****************************************************/
  19  /*
  20  if (file_exists('include/appconfig.php')) {
  21      header('Location: index.php');
  22  }
  23  */
  24  
  25  if (isset($_POST['cm_dsn'])) {
  26      $dsn = $_POST['cm_dsn'];
  27      include_once  'DB.php';
  28      $db = DB::connect($dsn);
  29      if ($db) { }
  30  }
  31  else {
  32      $dsn = 'mysql://root@localhost/clevermail';
  33  }
  34  
  35  require_once  'install/design/top.php';
  36  ?>
  37  
  38  <div class = "content">
  39      <h1> CleverMail installation</h1>
  40  
  41      <?php
  42      if (isset($_GET['error'])) {
  43          echo '<p class="error">' . $_GET['error']. '</p>';
  44      }
  45      ?>
  46  
  47      <table width = "100%" class = "form">
  48          <form action = "install.php" method = "post">
  49              <tr>
  50                  <td colspan = "2" class = "title">
  51                      Installation parameters</td></tr>
  52  
  53              <tr>
  54                  <td class = "label">
  55                      Data Source Name:</td>
  56  
  57                  <td class = "field">
  58                      <input type = "text" name = "cm_dsn" value = "<?php echo $dsn?>" size = "50" maxlength = "255"/>
  59  
  60                      <br/>
  61  
  62                      <span class = "tips"> Look at PEAR::DB's
  63                      <a href = "http://pear.php.net/manual/en/core.db.tut_dsn.php" target = "_blank">
  64                      DSN documentation</a> </span>
  65                  </td>
  66              </tr>
  67  
  68              <tr>
  69                  <td colspan = "2" class = "title">
  70                      Validation</td></tr>
  71  
  72              <tr>
  73                  <td colspan = "2">
  74                      <input type = "submit" value = "Install"/>
  75                  </td>
  76              </tr>
  77          </form>
  78      </table>
  79  </div>
  80  
  81  <?php
  82  require_once  'install/design/bottom.php';
  83  ?>


Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7