Migration
This commit is contained in:
53
0.9.0/panel/module/mysql/ajoutbdd.php
Executable file
53
0.9.0/panel/module/mysql/ajoutbdd.php
Executable file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountDB = $MySql->Count('id', 'basededonnee', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
?>
|
||||
<h3>Ajouter une base de données</h3>
|
||||
<p>
|
||||
Le nom de votre base de données ne doit contenir que les caractères a-z et 0-9 (3 caractères minimum et 6 maximum).<br />
|
||||
Au nom de votre base de données, sera rajouté automatiquement le préfixe : "<?php echo $_SESSION['Utilisateur'] ; ?>_" <br />
|
||||
Le mot de passe pour accéder à cette nouvelle base de données ne sera pas crypté, et accessible depuis le récapitulatif.<br />
|
||||
Le mot de passe, tout comme le nom, ne doit contenir que les caractères a-z et 0-9 (3 caractères minimum et 9 maximum).
|
||||
</p>
|
||||
|
||||
<?php if (($CountDB < $_SESSION['Offre']['BaseDeDonnees']) or ($_SESSION['Offre']['BaseDeDonnees'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-2.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<td style="width:400px"><?php echo $_SESSION['Utilisateur'] ; ?>_<input type="text" name="Nom" maxlength="6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire</th>
|
||||
<td><input type="text" name="Commentaire" maxlength="50"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Créer la base de données" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de base(s) de données. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
Reference in New Issue
Block a user