Migration
This commit is contained in:
60
0.9.0/panel/module/ftp/ajoutcompte.php
Executable file
60
0.9.0/panel/module/ftp/ajoutcompte.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<?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.
|
||||
*/
|
||||
$CountFTP = $MySql->Count('id', 'ftp', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?><h3>Ajouter un compte Ftp</h3>
|
||||
<p>
|
||||
Le nom de votre compte ftp ne doit contenir que les caractères a-z et 0-9 (3 caractères minimum et 9 maximum).<br />
|
||||
Au nom de votre compte ftp, sera rajouté automatiquement le préfixe : "<?php echo $_SESSION['Utilisateur'] ; ?>_" <br />
|
||||
Le mot de passe pour accéder à ce compte 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 minimim et 9 maximim).<br/>
|
||||
<strong>Le répertoire de publication par défaut de votre domaine <?php echo $_SESSION['Utilisateur'] ; ?>.kelio.org est /public</strong><br/>
|
||||
<br/>
|
||||
<strong>Votre dossier virtuel sera créé si il n'existe pas dans votre espace web.</strong>
|
||||
</p>
|
||||
|
||||
<?php if (($CountFTP < $_SESSION['Offre']['Ftp']) or ($_SESSION['Offre']['Ftp'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-4.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Nom du compte</th>
|
||||
<td><?php echo $_SESSION['Utilisateur'] ; ?>_<input type="text" name="Nom" maxlength="9"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Chemin</th>
|
||||
<td><input type="text" name="Chemin" value="/" maxlength="70"></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 le compte ftp" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de compte(s) FTP. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
116
0.9.0/panel/module/ftp/recapitulatif.php
Executable file
116
0.9.0/panel/module/ftp/recapitulatif.php
Executable file
@@ -0,0 +1,116 @@
|
||||
<?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.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "ftp", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountEnregistrement = 0; }
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de vos comptes Ftp <a style="border: 0px;" href="http://doc.kelio.org/publier_ses_fichiers"><img style="vertical-align:middle; border: 0px;" src="img/icons-panel/question.png" alt="Aide" title="Aide" /></a></h3>
|
||||
<p class="notice">
|
||||
Actuellement, vous avez <?php echo $CountEnregistrement ; ?> compte(s)<?php if ($_SESSION['Offre']['Ftp'] != '-1'):?> ftp sur <?php echo $_SESSION['Offre']['Ftp']; ?> autorisé(s)<?php endif;?>.
|
||||
</p>
|
||||
<p>
|
||||
Passez votre souris sur le commentaire pour le voir en entier.<br />
|
||||
Idem pour le chemin</p>
|
||||
<p>
|
||||
Le statut "Création ..." signifie que votre compte FTP est en attente de création par notre robot. <br />
|
||||
Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de meme pour le statut "Suppression ...".
|
||||
</p>
|
||||
<p><strong>Le dossier de publication de votre domaine <?php echo $_SESSION['Utilisateur']; ?>.kelio.org est /public</strong></p>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Mot de passe</th>
|
||||
<th>Chemin</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '<tr><td style="text-align: center; font-weight: bold;" colspan="6">Aucun compte ftp pour le moment</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountEnregistrement; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/delete.png\" style=\"vertical-align: middle;\" alt=\"Suppresion\" /> Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"Erreur\" /> Erreur";
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Chemin"]) > 16 )
|
||||
{
|
||||
$Chemin = substr ($ListTable[$i]["Chemin"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Chemin = $ListTable[$i]["Chemin"];
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Commentaire"]) > 16 )
|
||||
{
|
||||
$Commentaire = substr ($ListTable[$i]["Commentaire"], 0, 16)." ...";
|
||||
}
|
||||
elseif ( strlen($ListTable[$i]["Commentaire"]) == 0 )
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListTable[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$ListTable[$i]["Nom"].'</td>
|
||||
<td><span style="cursor: help;" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td>'.$ListTable[$i]["Password"].'</td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Chemin"].'">'.$Chemin.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>' ;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
65
0.9.0/panel/module/ftp/suppressioncompte.php
Executable file
65
0.9.0/panel/module/ftp/suppressioncompte.php
Executable file
@@ -0,0 +1,65 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
$ListTable = $MySql->Select ("*", "ftp", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer un compte ftp</h3>
|
||||
<p>
|
||||
En cas d'erreur, vous devrez attendre que le compte soit totalement supprimé du serveur pour pouvoir le recréer.<br />
|
||||
Afin d'éviter toute erreur, vous devrez entrer le mot de passe du compte. (vous pouvez le voir sur la page "Récapitulatif").
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-5.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Compte à supprimer</th>
|
||||
<td>
|
||||
<select name="Nom">
|
||||
<option selected="selected" value="">Sélectionnez</option>
|
||||
<?php
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
}
|
||||
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo "<option value='".$ListTable[$i]["Nom"]."'>".$ListTable[$i]["Nom"]."</option>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Supprimer le compte FTP" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user