Subversion Repositories Applications.papyrus

Rev

Rev 76 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
66 jpm 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | Copyright (c) 2002, Hendrik Mans <hendrik@mans.de>                                                   |
9
// | Copyright 2002, 2003 David DELON                                                                     |
10
// | Copyright 2002 Patrick PAUL                                                                          |
11
// | All rights reserved.                                                                                 |
12
// | Redistribution and use in source and binary forms, with or without                                   |
13
// | modification, are permitted provided that the following conditions                                   |
14
// | are met:                                                                                             |
15
// | 1. Redistributions of source code must retain the above copyright                                    |
16
// | notice, this list of conditions and the following disclaimer.                                        |
17
// | 2. Redistributions in binary form must reproduce the above copyright                                 |
18
// | notice, this list of conditions and the following disclaimer in the                                  |
19
// | documentation and/or other materials provided with the distribution.                                 |
20
// | 3. The name of the author may not be used to endorse or promote products                             |
21
// | derived from this software without specific prior written permission.                                |
22
// |                                                                                                      |
23
// | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR                                 |
24
// | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES                            |
25
// | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.                              |
26
// | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,                                     |
27
// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT                             |
28
// | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,                            |
29
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY                                |
30
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT                                  |
31
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF                             |
32
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                                    |
33
// +------------------------------------------------------------------------------------------------------+
34
// CVS : $Id: instal_preference.inc.php,v 1.1 2004-10-15 18:28:59 jpm Exp $
35
/**
36
* Page d'initialisation de l'installation de Papyrus.
37
*
38
* Contenu de la page par défaut de l'installation de Papyrus.
39
*
40
*@package Installateur
41
//Auteur original :
42
*@author        Hendrik MANS <hendrik@mans.de>
43
//Autres auteurs :
44
*@author        David DELON
45
*@author        Patrick PAUL
46
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
47
*@copyright     Tela-Botanica 2000-2004
48
*@version       $Revision: 1.1 $ $Date: 2004-10-15 18:28:59 $
49
// +------------------------------------------------------------------------------------------------------+
50
**/
51
 
52
// +------------------------------------------------------------------------------------------------------+
53
// |                                            ENTÊTE du PROGRAMME                                       |
54
// +------------------------------------------------------------------------------------------------------+
55
$config['PAP_BDD_SERVEUR'] = '';
56
if (defined('PAP_BDD_SERVEUR')) {
57
    $config['PAP_BDD_SERVEUR'] = PAP_BDD_SERVEUR;
58
}
59
$config['PAP_BDD_NOM'] = '';
60
if (defined('PAP_BDD_NOM')) {
61
    $config['PAP_BDD_NOM'] = PAP_BDD_NOM;
62
}
63
$config['PAP_BDD_UTILISATEUR'] = '';
64
if (defined('PAP_BDD_UTILISATEUR')) {
65
    $config['PAP_BDD_UTILISATEUR'] = PAP_BDD_UTILISATEUR;
66
}
67
$config['PAP_BDD_MOT_DE_PASSE'] = '';
68
if (defined('PAP_BDD_MOT_DE_PASSE')) {
69
    $config['PAP_BDD_MOT_DE_PASSE'] = PAP_BDD_MOT_DE_PASSE;
70
}
71
$config['PAP_URL_REECRITURE'] = '';
72
if (defined('PAP_URL_REECRITURE')) {
73
    $config['PAP_URL_REECRITURE'] = PAP_URL_REECRITURE;
74
}
75
 
76
// +------------------------------------------------------------------------------------------------------+
77
// |                                          CORPS du PROGRAMME                                          |
78
// +------------------------------------------------------------------------------------------------------+
79
$sortie .= '    <h1>Installation de Papyrus</h1></h1>'."\n";
80
 
81
if (defined('PAP_VERSION')) {
82
    $sortie .=  '<p>Votre syst&egrave;me Papyrus existant a &eacute;t&eacute; reconnu comme &eacute;tant la version '.
83
                INSTAL_VERSION_ANCIENNE.'.<br />'.
84
                'Vous &ecirc;tes sur le point de <b>mettre &agrave; jour</b> Papyrus pour la version '.
85
                INSTAL_VERSION_NOUVELLE.'.<br />'.
86
                'Veuillez revoir vos informations de configuration ci-dessous.</p>'."\n";
87
} else {
88
    $sortie .=  '<p>Vous &ecirc;tes sur le point d\'installer Papyrus '.INSTAL_VERSION_NOUVELLE.'.<br />'.
89
                'Veuillez configurer votre Papyrus en utilisant le formulaire suivant.</p>'."\n";
90
}
91
$sortie .= '    <form action="'.donnerUrlCourante().'?installation=bdd" method="POST">';
92
$sortie .= '      <ul>'."\n";
93
$sortie .=  '<li>NOTE: Ce programme d\'installation va essayer de modifier les options de configurations dans le '.
94
            'fichier <tt>pap_config.inc.php</tt>, situ&eacute; dans le r&eacute;pertoire <tt>configuration</tt> du réportoire '.
95
            '<tt>papyrus</tt>. Pour que cela fonctionne, veuillez vous assurez que votre serveur a les droits d\'acc&egrave;s '.
96
            'en &eacute;criture pour ce fichier. Si pour une raison quelconque vous ne pouvez pas faire &ccedil;a vous '.
97
            'devrez modifier ce fichier manuellement (ce programme d\'installation vous dira comment).</li>'."\n";
98
$sortie .=  '<h2>Configuration de la base de donn&eacute;es</h2>'."\n";
99
$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";
100
$sortie .=  '<li></li>'."\n";
101
$sortie .=  '<li>'."\n".
102
            '<label for="mysql_serveur">Machine MySQL :</label>'.
103
            '<input id="mysql_serveur" type="text" size="50" name="config[PAP_BDD_SERVEUR]" value="'.$config['PAP_BDD_SERVEUR'].'" />'.
104
            '</li>'."\n";
105
$sortie .=  '<li>La base de donn&eacute;es MySQL &agrave; utiliser pour Papyrus. Cette base de donn&eacute;es doit d&eacute;j&agrave; '.
106
            'exister avant de pouvoir continuer.</li>'."\n";
107
$sortie .=  '<li>'."\n".
108
            '<label for="mysql_database">Base de donn&eacute;es MySQL :</label>'.
109
            '<input id="mysql_database" type="text" size="50" name="config[PAP_BDD_NOM]" value="'.$config['PAP_BDD_NOM'].'" />'.
110
            '</li>'."\n";
111
$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";
112
$sortie .=  '<li>'."\n".
113
            '<label for="mysql_user">Non de l\'utilisateur MySQL :</label>'.
114
            '<input id="mysql_user" type="text" size="50" name="config[PAP_BDD_UTILISATEUR]" value="'.$config['PAP_BDD_UTILISATEUR'].'" />'.
115
            '</li>'."\n";
116
$sortie .=  '<li>'."\n".
117
            '<label for="mysql_password">Mot de passe MySQL :</label>'.
118
            '<input id="mysql_password" type="password" size="50" name="config[PAP_BDD_MOT_DE_PASSE]" value="'.$config['PAP_BDD_MOT_DE_PASSE'].'" />'.
119
            '</li>'."\n";
120
$sortie .=  '<h2>Configuration de la ré-écriture d\'URL</h2>'."\n";
121
$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";
122
$sortie .=  '<li>'."\n".
123
            '<label for="rewrite_mode">Mode "redirection" :</label>'.
124
            '<input id="rewrite_mode" type="checkbox" value="1" name="config[PAP_URL_REECRITURE]" value="'.$config['PAP_URL_REECRITURE'].'" />'.
125
            'Activation'.
126
            '<input type="hidden" name="config[PAP_URL_REECRITURE]" value="0" />'.
127
            '</li>'."\n";
128
$sortie .=  '<li>'."\n".
129
            '<input type="submit" value="Continuer" />'.
130
            '</li>'."\n";
131
$sortie .= '      </ul>'."\n";
132
$sortie .= '    </form>';
133
 
134
// +------------------------------------------------------------------------------------------------------+
135
// |                                            PIED du PROGRAMME                                         |
136
// +------------------------------------------------------------------------------------------------------+
137
 
138
 
139
/* +--Fin du code ----------------------------------------------------------------------------------------+
140
*
141
* $Log: not supported by cvs2svn $
142
*
143
* +-- Fin du code ----------------------------------------------------------------------------------------+
144
*/
145
?>