Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 65 → Rev 66

/trunk/papyrus/applications/installateur/installateur.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: installateur.php,v 1.1 2004-06-16 14:33:13 jpm Exp $
// CVS : $Id: installateur.php,v 1.2 2004-10-15 18:28:59 jpm Exp $
/**
* Application Installateur de Papyrus.
*
32,7 → 32,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2004-06-16 14:33:13 $
*@version $Revision: 1.2 $ $Date: 2004-10-15 18:28:59 $
// +------------------------------------------------------------------------------------------------------+
**/
 
39,45 → 39,77
// +------------------------------------------------------------------------------------------------------+
// | ENTÊTE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/*Mettre ici les inclusions de fichiers*/
// Constante de l'application Installateur. On devrait créer un fichier de config et un de langue pour rendre l'appli portable...
/** <br> Nom du dossier contenant l'application Installateur.*/
define('INSTAL_DOSSIER_APPLI', GEN_CHEMIN_APPLICATION.'installateur/');
/** <br> Nom du dossier contenant la bibliothèque de code de l'application Installateur.*/
define('INSTAL_DOSSIER_BIBLIO', INSTAL_DOSSIER_APPLI.'bibliotheque/');
/** <br> Chemin vers le fichier de configuration de base de l'application Papyrus.*/
define('INSTAL_CHEMIN_CONFIG', GEN_CHEMIN_CONFIG.'pap_config.inc.php');
/** <br> Chemin vers le fichier de configuration de base de l'application Papyrus.*/
define('INSTAL_CHEMIN_SQL', GEN_CHEMIN_INSTAL);
/** <br> Nom de la constante stockant le numéro de la nouvelle version de l'application Papyrus.*/
define('INSTAL_VERSION_NOUVELLE_NOM', 'PAP_VERSION');
/** <br> Numéro de la nouvelle version de l'application Papyrus.*/
define('INSTAL_VERSION_NOUVELLE', GEN_VERSION);
if (defined('PAP_VERSION')) {
define('INSTAL_VERSION_ANCIENNE', PAP_VERSION);
} else {
define('INSTAL_VERSION_ANCIENNE', '');
}
 
// Fichiers à inclure
require_once INSTAL_DOSSIER_BIBLIO.'instal_installation.fonct.php';
 
// Entêtre XHTML des pages de l'installation de Papyrus
$sortie = '';
$sortie .= '<html>';
$sortie .= ' <head>';
$sortie .= ' <title>Installation de Papyrus</title>';
$sortie .= ' <style>';
$sortie .= ' p, body, td, li, input, select, textarea { font-family: Verdana; font-size: 13px; }';
$sortie .= ' h1 { font-size: 1.8em; text-align: center; color: #880000; }';
$sortie .= ' h2 { font-size: 1.2em; text-align: left; color: #880000; }';
$sortie .= ' input { color: #880000; }';
$sortie .= ' form ul { list-style-type: none; padding : 0px; }';
$sortie .= ' form ul li { text-align: left; padding-left: 0px; margin-left: 0px; }';
$sortie .= ' form label { float: left; width: 175px; text-align: left; }';
$sortie .= ' li { margin: 5px 5px 5px 5px; }';
$sortie .= ' a { color: #0000FF; }';
$sortie .= ' .ok { color: #008800; font-weight: bold; }';
$sortie .= ' .failed { color: #880000; font-weight: bold; }';
$sortie .= ' </style>';
$sortie .= ' </head>';
$sortie .= ' <body>';
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
// A retravailler complétement!!!
if ($_GEN_commun['erreur_site_introuvable']) {
projectForm($_GEN_commun['message_erreur_bd']);
exit;
}
else {
if ($_GEN_commun['erreur_config'] || $_GEN_commun['erreur_bd']) {
installForm($_GEN_commun['message_erreur_bd']);
exit;
}
else {
exit (
'<html>'.
"\n".' <head>'.
"\n".' <title>Error</title>'.
"\n".' <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">'.
"\n".' </head>'.
"\n".' <body>'.
"\n".' <br /><br />'.
"\n".' <p align="center"><b>'.$_GEN_commun['message_erreur_bd'].'</b></p>'.
"\n".' </body>'.
"\n".'</html>');
}
}
if(!isset($_GET['installation'])) {
include_once GEN_CHEMIN_APPLICATION.'installateur/instal_defaut.inc.php';
} else if($_GET['installation'] == 'bdd') {
include_once GEN_CHEMIN_APPLICATION.'installateur/instal_base_de_donnees.inc.php';
} else if($_GET['installation'] == 'config') {
include_once GEN_CHEMIN_APPLICATION.'installateur/instal_configuration.inc.php';
}
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/*Partie non obligatoire*/
// +------------------------------------------------------------------------------------------------------+
// Pied XHTML des pages de l'installation de Papyrus
$sortie .= ' </body>';
$sortie .= '</html>';
 
// Attribution à la variable globale de sortie de Papyrus du texte XHTML de l'installation
$GLOBALS['_GEN_commun']['sortie'] = $sortie;
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2004/06/16 14:33:13 jpm
* Changement de nom de Génésia en Papyrus.
* Changement de l'arborescence.
*
* Revision 1.6 2004/04/22 08:25:48 jpm
* Transformation de $GS_GLOBAL en $_GEN_commun.
*