Subversion Repositories Applications.papyrus

Rev

Rev 79 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1                                                                                      |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (c) 2002, Hendrik Mans <hendrik@mans.de>                                                   |
// | Copyright 2002, 2003 David DELON                                                                     |
// | Copyright 2002 Patrick PAUL                                                                          |
// | All rights reserved.                                                                                 |
// | Redistribution and use in source and binary forms, with or without                                   |
// | modification, are permitted provided that the following conditions                                   |
// | are met:                                                                                             |
// | 1. Redistributions of source code must retain the above copyright                                    |
// | notice, this list of conditions and the following disclaimer.                                        |
// | 2. Redistributions in binary form must reproduce the above copyright                                 |
// | notice, this list of conditions and the following disclaimer in the                                  |
// | documentation and/or other materials provided with the distribution.                                 |
// | 3. The name of the author may not be used to endorse or promote products                             |
// | derived from this software without specific prior written permission.                                |
// |                                                                                                      |
// | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR                                 |
// | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES                            |
// | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.                              |
// | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,                                     |
// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT                             |
// | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,                            |
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY                                |
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT                                  |
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF                             |
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                                    |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: instal_preference.inc.php,v 1.1 2004-10-15 18:28:59 jpm Exp $
/**
* Page d'initialisation de l'installation de Papyrus.
*
* Contenu de la page par défaut de l'installation de Papyrus.
*
*@package Installateur
//Auteur original :
*@author        Hendrik MANS <hendrik@mans.de>
//Autres auteurs :
*@author        David DELON
*@author        Patrick PAUL
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
*@copyright     Tela-Botanica 2000-2004
*@version       $Revision: 1.1 $ $Date: 2004-10-15 18:28:59 $
// +------------------------------------------------------------------------------------------------------+
**/

// +------------------------------------------------------------------------------------------------------+
// |                                            ENTÊTE du PROGRAMME                                       |
// +------------------------------------------------------------------------------------------------------+
$config['PAP_BDD_SERVEUR'] = '';
if (defined('PAP_BDD_SERVEUR')) {
    $config['PAP_BDD_SERVEUR'] = PAP_BDD_SERVEUR;
}
$config['PAP_BDD_NOM'] = '';
if (defined('PAP_BDD_NOM')) {
    $config['PAP_BDD_NOM'] = PAP_BDD_NOM;
}
$config['PAP_BDD_UTILISATEUR'] = '';
if (defined('PAP_BDD_UTILISATEUR')) {
    $config['PAP_BDD_UTILISATEUR'] = PAP_BDD_UTILISATEUR;
}
$config['PAP_BDD_MOT_DE_PASSE'] = '';
if (defined('PAP_BDD_MOT_DE_PASSE')) {
    $config['PAP_BDD_MOT_DE_PASSE'] = PAP_BDD_MOT_DE_PASSE;
}
$config['PAP_URL_REECRITURE'] = '';
if (defined('PAP_URL_REECRITURE')) {
    $config['PAP_URL_REECRITURE'] = PAP_URL_REECRITURE;
}

// +------------------------------------------------------------------------------------------------------+
// |                                          CORPS du PROGRAMME                                          |
// +------------------------------------------------------------------------------------------------------+
$sortie .= '    <h1>Installation de Papyrus</h1></h1>'."\n";

if (defined('PAP_VERSION')) {
    $sortie .=  '<p>Votre syst&egrave;me Papyrus existant a &eacute;t&eacute; reconnu comme &eacute;tant la version '.
                INSTAL_VERSION_ANCIENNE.'.<br />'.
                'Vous &ecirc;tes sur le point de <b>mettre &agrave; jour</b> Papyrus pour la version '.
                INSTAL_VERSION_NOUVELLE.'.<br />'.
                'Veuillez revoir vos informations de configuration ci-dessous.</p>'."\n";
} else {
    $sortie .=  '<p>Vous &ecirc;tes sur le point d\'installer Papyrus '.INSTAL_VERSION_NOUVELLE.'.<br />'.
                'Veuillez configurer votre Papyrus en utilisant le formulaire suivant.</p>'."\n";
}
$sortie .= '    <form action="'.donnerUrlCourante().'?installation=bdd" method="POST">';
$sortie .= '      <ul>'."\n";
$sortie .=  '<li>NOTE: Ce programme d\'installation va essayer de modifier les options de configurations dans le '.
            'fichier <tt>pap_config.inc.php</tt>, situ&eacute; dans le r&eacute;pertoire <tt>configuration</tt> du réportoire '.
            '<tt>papyrus</tt>. Pour que cela fonctionne, veuillez vous assurez que votre serveur a les droits d\'acc&egrave;s '.
            'en &eacute;criture pour ce fichier. Si pour une raison quelconque vous ne pouvez pas faire &ccedil;a vous '.
            'devrez modifier ce fichier manuellement (ce programme d\'installation vous dira comment).</li>'."\n";
$sortie .=  '<h2>Configuration de la base de donn&eacute;es</h2>'."\n";
$sortie .=  '<li>La machine sur laquelle se trouve votre serveur MySQL. En g&eacute;n&eacute;ral c\'est "localhost" (ie, la m&ecirc;me machine que celle o&ugrave; se trouve les pages de Papyrus.).</li>'."\n";
$sortie .=  '<li></li>'."\n";
$sortie .=  '<li>'."\n".
            '<label for="mysql_serveur">Machine MySQL :</label>'.
            '<input id="mysql_serveur" type="text" size="50" name="config[PAP_BDD_SERVEUR]" value="'.$config['PAP_BDD_SERVEUR'].'" />'.
            '</li>'."\n";
$sortie .=  '<li>La base de donn&eacute;es MySQL &agrave; utiliser pour Papyrus. Cette base de donn&eacute;es doit d&eacute;j&agrave; '.
            'exister avant de pouvoir continuer.</li>'."\n";
$sortie .=  '<li>'."\n".
            '<label for="mysql_database">Base de donn&eacute;es MySQL :</label>'.
            '<input id="mysql_database" type="text" size="50" name="config[PAP_BDD_NOM]" value="'.$config['PAP_BDD_NOM'].'" />'.
            '</li>'."\n";
$sortie .=  '<li>Nom et mot de passe de l\'utilisateur MySQL qui sera utilis&eacute; pour se connecter &agrave; votre base de donn&eacute;es.</li>'."\n";
$sortie .=  '<li>'."\n".
            '<label for="mysql_user">Non de l\'utilisateur MySQL :</label>'.
            '<input id="mysql_user" type="text" size="50" name="config[PAP_BDD_UTILISATEUR]" value="'.$config['PAP_BDD_UTILISATEUR'].'" />'.
            '</li>'."\n";
$sortie .=  '<li>'."\n".
            '<label for="mysql_password">Mot de passe MySQL :</label>'.
            '<input id="mysql_password" type="password" size="50" name="config[PAP_BDD_MOT_DE_PASSE]" value="'.$config['PAP_BDD_MOT_DE_PASSE'].'" />'.
            '</li>'."\n";
$sortie .=  '<h2>Configuration de la ré-écriture d\'URL</h2>'."\n";
$sortie .=  '<li>Le mode "redirection automatique" doit &ecirc;tre s&eacute;lectionn&eacute; uniquement si vous utilisez WikiNi avec la redirection d\'URL (si vous ne savez pas ce qu\'est la redirection d\'URL n\'activez pas cette option).</li>'."\n";
$sortie .=  '<li>'."\n".
            '<label for="rewrite_mode">Mode "redirection" :</label>'.
            '<input id="rewrite_mode" type="checkbox" value="1" name="config[PAP_URL_REECRITURE]" value="'.$config['PAP_URL_REECRITURE'].'" />'.
            'Activation'.
            '<input type="hidden" name="config[PAP_URL_REECRITURE]" value="0" />'.
            '</li>'."\n";
$sortie .=  '<li>'."\n".
            '<input type="submit" value="Continuer" />'.
            '</li>'."\n";
$sortie .= '      </ul>'."\n";
$sortie .= '    </form>';

// +------------------------------------------------------------------------------------------------------+
// |                                            PIED du PROGRAMME                                         |
// +------------------------------------------------------------------------------------------------------+


/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>