Subversion Repositories Applications.papyrus

Rev

Rev 6 | Rev 78 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 65
Line 1... Line 1...
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2001 COUDOUNEAU Laurent (lc@gsite.org)                                                 |
-
 
7
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
8
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
9
// |                                                                                                      |
-
 
10
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
11
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
12
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
13
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
14
// |                                                                                                      |
12
// |                                                                                                      |
Line 18... Line 16...
18
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
19
// |                                                                                                      |
17
// |                                                                                                      |
20
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
21
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// |                                                                                                      |
-
 
24
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
25
// CVS : $Id: instal_installation.fonct.php,v 1.1 2004-06-16 14:34:12 jpm Exp $
22
// CVS : $Id: instal_installation.fonct.php,v 1.2 2004-10-15 18:28:44 jpm Exp $
26
/**
23
/**
27
* Bibliothèque des fonctions de l'application Installateur de Génésia.
24
* Bibliothèque des fonctions de l'application Installateur de Papyrus.
28
*
25
*
29
* Ce sous-paquetage contient les fonctions de l'application Installateur de Génésia. Cette application gère 
26
* Ce sous-paquetage contient les fonctions de l'application Installateur de Papyrus. Cette application gère 
30
* l'installation de Génésia (base de données).
27
* l'installation de Papyrus (base de données).
31
*
28
*
32
*@package Installateur
29
*@package Installateur
33
*@subpackage Fonctions
30
*@subpackage Fonctions
34
//Auteur original :
31
//Auteur original :
35
*@author        Laurent COUDOUNEAU <mail@tela-botanica.org>
-
 
36
//Autres auteurs :
-
 
37
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
-
 
33
//Autres auteurs :
-
 
34
*@author        aucun
38
*@copyright     Tela-Botanica 2000-2004
35
*@copyright     Tela-Botanica 2000-2004
39
*@version       $Date: 2004-06-16 14:34:12 $
36
*@version       $Revision: 1.2 $ $Date: 2004-10-15 18:28:44 $
40
*/
37
*/
Line 41... Line 38...
41
 
38
 
42
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
43
// |                                           LISTE de FONCTIONS                                         |
40
// |                                           LISTE de FONCTIONS                                         |
Line 44... Line -...
44
// +------------------------------------------------------------------------------------------------------+
-
 
45
 
-
 
46
 
-
 
47
/**Fonction projectForm() - Permet de choisir le projet de site web.
-
 
48
*
-
 
49
* Cette fonction crée une page html retournant un formulaire qui permet de choisir le projet de site web.
-
 
50
*
-
 
51
* @param string le message d'erreur.
-
 
52
* @return string page html affichant un formulaire pour choisir un projet.
-
 
53
*/
-
 
54
function projectForm ($msg)
-
 
55
{
-
 
56
    header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
-
 
57
    header ("Pragma: no-cache");                         // HTTP/1.0
-
 
58
 
-
 
59
    $html_retour = "\n".'<html>';
-
 
60
    $html_retour .= "\n".'  <head>';
-
 
61
    $html_retour .= "\n".'    <title>Project selection</title>';
-
 
62
    $html_retour .= "\n".'    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">';
-
 
63
    $html_retour .= "\n".'  </head>';
-
 
64
    $html_retour .= "\n".'  <body bgcolor="white">';
-
 
65
    $html_retour .= "\n".'    <div align="center">';
-
 
66
    $html_retour .= "\n".'      <br /> <b>'.$msg.'</b>';
-
 
67
    $html_retour .= "\n".'      <form action="index.php" method="get">';
-
 
68
    $html_retour .= "\n".'        <input type="text" name="project" value="admin">';
-
 
69
    $html_retour .= "\n".'        <br />';
-
 
70
    $html_retour .= "\n".'        <input type="submit" value="Valider ce projet">';
-
 
71
    $html_retour .= "\n".'      </form>';
-
 
72
    $html_retour .= "\n".'    </div>';
-
 
73
    $html_retour .= "\n".'  </body>';
-
 
74
    $html_retour .= "\n".'</html>';
-
 
75
 
-
 
76
    //Codage en entité html des caractères accentués
-
 
77
    $html_retour = htmlentities($html_retour);
-
 
78
    echo $html_retour;
41
// +------------------------------------------------------------------------------------------------------+
79
}
42
 
80
 
43
 
-
 
44
/**Fonction donnerUrlCourante() - Retourne la base de l'url courante.
-
 
45
*
-
 
46
* Cette fonction renvoie la base de l'url courante.
-
 
47
* Origine : fonction provenant du fichier header.php de Wikini version 0.4.1
81
/**Fonction installForm() - Permet de choisir le projet de site web.
48
* Licence : la même que celle figurant dans l'entête du fichier header.php de Wikini version 0.4.1
82
*
49
* ou le fichier install_defaut.inc.php de cette application.
83
* Cette fonction renvoie une page web demandant de relancer l'installation.
-
 
84
*
50
* Auteurs : Hendrik MANS, David DELON, Patrick PAUL, Jean-Pascal MILCENT
127
    //Codage en entité html des caractères accentués
318
           return FALSE;
128
    $html_retour = htmlentities($html_retour);
-
 
129
    echo $html_retour;
319
    }
-
 
320
    return $content;
130
}
321
}
131
 
322
/* +--Fin du code ---------------------------------------------------------------------------------------+
132
/* +--Fin du code ---------------------------------------------------------------------------------------+
323
*
133
* $Log: not supported by cvs2svn $
-
 
134
* Revision 1.5  2004/04/08 13:20:44  jpm
-
 
135
* Suppression de la fonction de gestion des erreurs.
324
* $Log: not supported by cvs2svn $
136
*
-
 
137
* Revision 1.4  2004/04/02 16:37:38  jpm
-
 
138
* Modification des commentaires.
-
 
139
*
-
 
140
* Revision 1.3  2004/03/25 16:55:24  jpm
-
 
141
* Ajout de la fonction gs_bdError(), provenant du fichier gen_initialisation.inc.php.
-
 
142
*
-
 
143
* Revision 1.2  2004/03/22 11:42:31  jpm
325
* Revision 1.1  2004/06/16 14:34:12  jpm
144
* Ajout de commentaires et mise en forme.
326
* Changement de nom de Génésia en Papyrus.
145
*
327
* Changement de l'arborescence.
146
*
328
*
147
* +--Fin du code ----------------------------------------------------------------------------------------+
329
* +--Fin du code ----------------------------------------------------------------------------------------+