Line 30... |
Line 30... |
30 |
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
30 |
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
31 |
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
31 |
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
32 |
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|
32 |
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|
33 |
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
33 |
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// CVS : $Id: instal_base_de_donnees.inc.php,v 1.30 2007-04-19 16:18:05 neiluj Exp $
|
35 |
// CVS : $Id: instal_base_de_donnees.inc.php,v 1.31 2007-04-19 16:19:45 neiluj Exp $
|
36 |
/**
|
36 |
/**
|
37 |
* Page de création de la base de données de Papyrus.
|
37 |
* Page de création de la base de données de Papyrus.
|
38 |
*
|
38 |
*
|
39 |
* Page permettant de créer la base de données de Papyrus.
|
39 |
* Page permettant de créer la base de données de Papyrus.
|
40 |
*
|
40 |
*
|
Line 45... |
Line 45... |
45 |
*@author David DELON
|
45 |
*@author David DELON
|
46 |
*@author Patrick PAUL
|
46 |
*@author Patrick PAUL
|
47 |
*@author Eric FELDSTEIN
|
47 |
*@author Eric FELDSTEIN
|
48 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
48 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
49 |
*@copyright Tela-Botanica 2000-2004
|
49 |
*@copyright Tela-Botanica 2000-2004
|
50 |
*@version $Revision: 1.30 $ $Date: 2007-04-19 16:18:05 $
|
50 |
*@version $Revision: 1.31 $ $Date: 2007-04-19 16:19:45 $
|
51 |
// +------------------------------------------------------------------------------------------------------+
|
51 |
// +------------------------------------------------------------------------------------------------------+
|
52 |
**/
|
52 |
**/
|
Line 53... |
Line 53... |
53 |
|
53 |
|
54 |
// +------------------------------------------------------------------------------------------------------+
|
54 |
// +------------------------------------------------------------------------------------------------------+
|
Line 109... |
Line 109... |
109 |
|
109 |
|
Line 110... |
Line 110... |
110 |
$sortie_test .= '<h2>Insertion des informations dans la base de données</h2>';
|
110 |
$sortie_test .= '<h2>Insertion des informations dans la base de données</h2>';
|
Line 111... |
Line -... |
111 |
|
- |
|
112 |
for ( $version = $version_actuelle; $version <= $version_maj; $version = $version + 0.01) {
|
- |
|
113 |
|
111 |
|
114 |
unset($sql_contenu);
|
112 |
for ( $version = $version_actuelle; $version <= $version_maj; $version = $version + 0.01) {
|
Line 115... |
Line 113... |
115 |
|
113 |
|
116 |
//Insertion des requêtes présentes dans le fichier sql
|
114 |
//Insertion des requêtes présentes dans le fichier sql
|
117 |
$file_sql_contenu = INSTAL_CHEMIN_SQL.'papyrus_v'.$version.'.sql';
|
115 |
$file_sql_contenu = INSTAL_CHEMIN_SQL.'papyrus_v'.$version.'.sql';
|
118 |
|
116 |
|
- |
|
117 |
if (file_exists($file_sql_contenu)) {
|
- |
|
118 |
$sortie_verif .= '<h2>Insertion des données du fichier sql version '.$version.'</h2>';
|
Line 119... |
Line 119... |
119 |
if (file_exists($file_sql_contenu)) {
|
119 |
$sql_contenu = PMA_readFile($file_sql_contenu);
|
120 |
$sortie_verif .= '<h2>Insertion des données du fichier sql version '.$version.'</h2>';
|
120 |
} else
|
121 |
$sql_contenu = PMA_readFile($file_sql_contenu);
|
121 |
unset($sql_contenu);
|
122 |
}
|
122 |
|
Line 289... |
Line 289... |
289 |
|
289 |
|
290 |
|
290 |
|
291 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
291 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
292 |
*
|
- |
|
293 |
* $Log: not supported by cvs2svn $
|
- |
|
294 |
* Revision 1.30 2007/04/19 16:18:05 neiluj
|
292 |
*
|
295 |
* correction bug lecture fichier SQL
|
293 |
* $Log: not supported by cvs2svn $
|
296 |
*
|
294 |
* Revision 1.29 2006/12/01 14:05:57 alexandre_tb
|
297 |
* Revision 1.29 2006/12/01 14:05:57 alexandre_tb
|
295 |
* affichage des mesages d erreurs quand on se trompe dans les parametres mysql
|
298 |
* affichage des mesages d erreurs quand on se trompe dans les parametres mysql
|
296 |
*
|
299 |
*
|