Subversion Repositories Applications.papyrus

Rev

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

Rev 1347 Rev 1471
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.32 2007-04-20 09:05:46 alexandre_tb Exp $
35
// CVS : $Id: instal_base_de_donnees.inc.php,v 1.33 2007-06-25 12:15:07 alexandre_tb 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.32 $ $Date: 2007-04-20 09:05:46 $
50
*@version       $Revision: 1.33 $ $Date: 2007-06-25 12:15:07 $
51
// +------------------------------------------------------------------------------------------------------+
51
// +------------------------------------------------------------------------------------------------------+
52
**/
52
**/
Line 53... Line 53...
53
 
53
 
54
// +------------------------------------------------------------------------------------------------------+
54
// +------------------------------------------------------------------------------------------------------+
Line 132... Line 132...
132
			    if (!empty($value['type'])) {
132
			    if (!empty($value['type'])) {
133
				$requete_type = $value['type'];
133
				$requete_type = $value['type'];
134
			    }
134
			    }
135
			    if ($requete_type == 'create') {
135
			    if ($requete_type == 'create') {
136
				$erreur = testerConfig( $sortie_verif, 'Cr&eacute;ation table '.$table_nom.'...', @mysql_query($value['query'], $dblink), 
136
				$erreur = testerConfig( $sortie_verif, 'Cr&eacute;ation table '.$table_nom.'...', @mysql_query($value['query'], $dblink), 
137
							'Déjà créée ?', 0, $erreur);
137
							'D&eacute;j&agrave; cr&eacute;&eacute;e ?', 0, $erreur);
138
			    } else if ($requete_type == 'alter') {
138
			    } else if ($requete_type == 'alter') {
139
				$erreur = testerConfig( $sortie_verif, 'Modification structure table '.$table_nom.'...', @mysql_query($value['query'], $dblink), 
139
				$erreur = testerConfig( $sortie_verif, 'Modification structure table '.$table_nom.'...', @mysql_query($value['query'], $dblink), 
140
							'D&eacute;j&agrave; modifi&eacute;e ?', 0, $erreur);
140
							'D&eacute;j&agrave; modifi&eacute;e ?', 0, $erreur);
141
			    } else if ($requete_type == 'insert') {
141
			    } else if ($requete_type == 'insert') {
142
				$erreur = testerConfig( $sortie_verif, 'Insertion table '.$table_nom.'...', @mysql_query($value['query'], $dblink), 
142
				$erreur = testerConfig( $sortie_verif, 'Insertion table '.$table_nom.'...', @mysql_query($value['query'], $dblink), 
Line 223... Line 223...
223
} else if ($erreur == 2 && !empty($sortie_test)) {
223
} else if ($erreur == 2 && !empty($sortie_test)) {
224
    // Vérification du fichier avec interuption...
224
    // Vérification du fichier avec interuption...
225
    $sortie .= creerFormulaire($bdd);
225
    $sortie .= creerFormulaire($bdd);
226
    $sortie .= $sortie_test;
226
    $sortie .= $sortie_test;
227
    $sortie .= '<li><input type="hidden" name="pref_serial" value="'.htmlentities(serialize($pref)).'" /></li>'."\n";
227
    $sortie .= '<li><input type="hidden" name="pref_serial" value="'.htmlentities(serialize($pref)).'" /></li>'."\n";
228
    $sortie .= '<li><input type="submit" value="Tester à nouveau" /></li>'."\n";
228
    $sortie .= '<li><input type="submit" value="Tester &agrave; nouveau" /></li>'."\n";
229
    $sortie .= '      </ul>'."\n";
229
    $sortie .= '      </ul>'."\n";
230
    $sortie .= '    </form>';
230
    $sortie .= '    </form>';
231
    //$sortie .= '<div class="code"><code>'.$sortie_verif.'</code></div>';
231
    //$sortie .= '<div class="code"><code>'.$sortie_verif.'</code></div>';
232
} else if (($erreur == 0 || $erreur == 1) && !empty($sortie_verif)) {
232
} else if (($erreur == 0 || $erreur == 1) && !empty($sortie_verif)) {
233
    // Vérification du fichier sans interuption... passage à l'étape suivante
233
    // Vérification du fichier sans interuption... passage à l'étape suivante
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.32  2007/04/20 09:05:46  alexandre_tb
292
*
295
* correction pb encodage
293
* $Log: not supported by cvs2svn $
296
*
294
* Revision 1.31  2007/04/19 16:19:45  neiluj
297
* Revision 1.31  2007/04/19 16:19:45  neiluj
295
* optimisation
298
* optimisation
296
*
299
*