Migration
This commit is contained in:
191
0.9.0/panel/module/accueil.php
Executable file
191
0.9.0/panel/module/accueil.php
Executable file
@@ -0,0 +1,191 @@
|
||||
<?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.
|
||||
*/
|
||||
$SelectionQuota = $MySql->Select("*", "utilisateur", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
if ($SelectionQuota != FALSE)
|
||||
{
|
||||
$Espace = $SelectionQuota[0]["Espace"];
|
||||
$UtilisateurID = $SelectionQuota[0]['id'];
|
||||
}
|
||||
else
|
||||
$Espace = 0;
|
||||
?>
|
||||
|
||||
<p><strong>Bienvenue dans votre espace de gestion de votre hébergement Kelio.</strong>
|
||||
<br />Veuillez choisir une action à effectuer dans le menu ci-contre.</p>
|
||||
|
||||
<div style="background-image: url(img/icons-panel/message-info.png); background-repeat: no-repeat; padding-left: 35px; min-height: 24px;">
|
||||
<p>N'oubliez pas que notre hébergement vit grâce à vos dons et à la publicité ! Mettre une petite publicité sur votre site nous aidera à continuer ! Vous êtes satisfait du service que nous vous offrons ? Alors faites nous le savoir par votre contribution. <a href="./Page-Divers-Contribuer.html">En savoir plus</a></p>
|
||||
</div>
|
||||
|
||||
<div id="accueil">
|
||||
<table border="0" style="width: 25%; float: left; margin-right: 10px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2"><img src="img/icons-panel/cube_green.png" alt="info" style="padding-right: 5px;" />Accès rapide</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><img alt="Bases de données" src="img/icons-panel/database.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_bdd');">Bases de données</a></td>
|
||||
</tr>
|
||||
<tr id="JS_bdd" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-MySql-AjoutBdd.html">Ajouter</a><br />
|
||||
<img src="img/icons-panel/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-MySql-SuppressionBdd.html">Supprimer</a><br/>
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="http://pma.kelio.org">phpMyAdmin</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="FTP" src="img/icons-panel/arrow_refresh.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_ftp');">Comptes FTP</a></td>
|
||||
</tr>
|
||||
<tr id="JS_ftp" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Ftp-AjoutCompte.html">Ajouter</a><br />
|
||||
<img src="img/icons-panel/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Ftp-SuppressionCompte.html">Supprimer</a><br/>
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="http://webftp.kelio.org">Webftp</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Messagerie" src="img/icons-panel/email.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_email');">Comptes messagerie</a></td>
|
||||
</tr>
|
||||
<tr id="JS_email" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-AjoutCompte.html">Ajouter compte</a><br />
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-AjoutAlias.html">Ajouter alias</a><br />
|
||||
<img src="img/icons-panel/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-Suppression.html">Supprimer compte</a><br/>
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="http://webmail.kelio.org">Webmail</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="DNS" src="img/icons-panel/house_go.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_dns');">Noms de domaine</a></td>
|
||||
</tr>
|
||||
<tr id="JS_dns" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-DNS-AjoutDomaine.html">Ajouter (domaine)</a><br/>
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-DNS-AjoutSousDomaine.html">Ajouter (sous domaine)</a><br/>
|
||||
<img src="img/icons-panel/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-DNS-Suppression.html">Supprimer</a><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Compte" src="img/icons-panel/16-member-profile.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_compte');">Votre compte</a></td>
|
||||
</tr>
|
||||
<tr id="JS_compte" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Compte-MotdePasse.html">Mot de passe</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><img src="img/icons-panel/cube_green.png" alt="info" style="padding-right: 5px;" />Assistance</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Documentation" src="img/icons-panel/book_open.png" /></td>
|
||||
<td><a href="http://doc.kelio.org">Documentation</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="assistance en ligne" src="img/icons-panel/user_comment.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_assistance');">Assistance en ligne</a></td>
|
||||
</tr>
|
||||
<tr id="JS_assistance" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /><a href="http://www.kelio.asso.fr/contact.html">Formulaire</a>
|
||||
<br />
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /><a href="http://forum.kelio.asso.fr/viewforum.php?id=10">Forum</a>
|
||||
<br />
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /><a href="irc://irc.freenode.net/kelio">Dialogue en ligne (IRC)</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Maintenances ou travaux" src="img/icons-panel/cog.png" /></td>
|
||||
<td><a href="http://suivi.kelio.asso.fr">Maintenances ou travaux</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table border="0" style="width: 70%; margin-left 5px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2"><img src="img/icons-panel/cube_green.png" alt="info" style="padding-right: 5px;" />Informations générales</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 45%">Version :</td>
|
||||
<td>Kelio Panel <strong>0.9.0</strong> (<a href="Page-Divers-Changelog.html">Changelog</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mis en service :</td>
|
||||
<td>1 février 2010</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Développement par :</td>
|
||||
<td>- Benjamin Mercier<br />- Vincent Lemoine</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Version PHP :</td>
|
||||
<td>5.2 (<a href="http://www.kelio.asso.fr/phpinfo.php">phpinfo</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Version MySQL :</td>
|
||||
<td>5.1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src="img/icons-panel/group.png" alt="utilisateur" style="padding-right: 5px;" />Informations utilisateur</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 45%">Offre : </td>
|
||||
<td><strong><?php echo $_SESSION['Offre']['Nom']; ?></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 45%">Votre nom de domaine : </td>
|
||||
<td><a href="http://<?php echo $_SESSION['Utilisateur']; ?>.kelio.org">http://<?php echo $_SESSION['Utilisateur']; ?>.kelio.org</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Chemin absolu :</td>
|
||||
<td>/var/www/web/<?php echo $_SESSION['Utilisateur']; ?>/</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Serveur de Stockage :</td>
|
||||
<td><?php echo $SelectionQuota[0]["ServeurFichier"] ; ?> (<?php echo gethostbyname ($SelectionQuota[0]["ServeurFichier"]); ?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Serveur MySql :</td>
|
||||
<td><?php echo $SelectionQuota[0]["ServeurMysql"] ; ?> (<?php echo gethostbyname ($SelectionQuota[0]["ServeurMysql"]); ?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Espace disque :</td>
|
||||
<td><?php echo $Espace; ?> Mo<?php if ($_SESSION['Offre']['EspaceDisque'] != '-1'):?> sur <?php echo $_SESSION['Offre']['EspaceDisque']; ?>Mo autorisés<?php endif; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Numéro client :</td>
|
||||
<td><?php echo $UtilisateurID; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><img src="img/icons-panel/cube_green.png" alt="info" style="padding-right: 5px;" />Services complémentaires</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="img/icons-panel/application_home.png" alt="technique" style="padding-right: 5px;" /><a href="http://www.azote.org">Noms de domaine gratuits Azote.org</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
36
0.9.0/panel/module/compte/changepasswd.php
Executable file
36
0.9.0/panel/module/compte/changepasswd.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<h3>Modification mot de passe</h3>
|
||||
<p>Vous pouvez modifier à partir de cette page le mot de passe d'accès au panel.</p>
|
||||
<?php
|
||||
if ( (VerifPOST("pass-new", "#^[a-z0-9]+$#", 5, 9) == "ChaineValide" AND VerifPOST("pass-new-confirm", "#^[a-z0-9]+$#", 5, 9) == "ChaineValide") AND ($_POST['pass-new'] == $_POST['pass-new-confirm']))
|
||||
{
|
||||
$pass = md5(md5($_POST['pass-new']));
|
||||
$MajPanel = $MySql->Update ("utilisateur", "Password", "$pass", "Utilisateur='".$_SESSION['Utilisateur']."'");
|
||||
if ( $MajPanel != FALSE )
|
||||
{
|
||||
echo '<p>Mot de passe modifié avec succès</p>';
|
||||
$_SESSION['Hash'] = $pass;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p>Une erreur est survenue</p>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<div>
|
||||
<form action="Page-Compte-MotdePasse.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Nouveau mot de passe<br/><small>(5 à 9 caractères)</small></th>
|
||||
<td><input name="pass-new" type="password" maxlength="9" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Confirmation</th>
|
||||
<td><input name="pass-new-confirm" type="password" maxlength="9" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Valider" />
|
||||
</form>
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
79
0.9.0/panel/module/divers/bridage.php
Executable file
79
0.9.0/panel/module/divers/bridage.php
Executable file
@@ -0,0 +1,79 @@
|
||||
<?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.
|
||||
*/
|
||||
$ListBDD = $MySql->Select("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
|
||||
?>
|
||||
<h3>Bridage de vos sites Internet</h3>
|
||||
<p>
|
||||
Afin de favoriser les gens qui affichent notre publicité sur leurs sites, un bridage est imposé à tous les sites, sauf ceux dont notre pub est affichée.<br />
|
||||
Une limite est fixée uniquement pour le télechargement de fichiers, celle-ci est de 50Ko/sec pour tout le site. <br />
|
||||
Cependant, si notre publicité est affichée au moins sur l'accueil, le site sera totalement débridé et pourra ainsi bénéficier jusqu'à 12Mo/sec de bande passante (dans les limites de la charte).<br />
|
||||
Pour afficher notre publicité, veuillez en générer-une sur la page <a href="Page-Divers-Contribuer.html">"Nous soutenir"</a>. (publicités adsense seulement).<br />
|
||||
Notre robot passe une fois toutes les 24 heures, ne vous étonnez donc pas que le bridage soit toujours actif immédiatement après l'affichage de la publicité.<br />
|
||||
Notez que <?php echo $_SESSION['Utilisateur']; ?>.kelio.org ne peut être débridé.<br /><br />
|
||||
Ci-dessous un récapitulatif de tous les bridages sur vos domaines.
|
||||
</p><br />
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Domaine</th>
|
||||
<th>Bridage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$TotalBDD = count($ListBDD);
|
||||
|
||||
if ( $ListBDD == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: center; font-weight: bold;">Vous n\'avez aucun domaine actif</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $TotalBDD; $i++)
|
||||
{
|
||||
if ( $ListBDD[$i]["Bridage"] == "Oui" )
|
||||
{
|
||||
$Bridage = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"bridé\" /> bridé";
|
||||
$Couleur = "#FF3333";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Bridage = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"débridé\" /> débridé";
|
||||
$Couleur = "#009933";
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$ListBDD[$i]["Adresse"].'</td>
|
||||
<td style="color: '.$Couleur.';">'.$Bridage.'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
108
0.9.0/panel/module/divers/changelog.php
Executable file
108
0.9.0/panel/module/divers/changelog.php
Executable file
@@ -0,0 +1,108 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
?>
|
||||
<h3>Changelog Kelio Panel</h3><br />
|
||||
|
||||
<strong>Version : 0.9.0 (le xx octobre 2010)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Gestion des DNS</li>
|
||||
</ul>
|
||||
<br /><br />
|
||||
|
||||
<strong>Version : 0.8.0 (le 03 octobre 2009)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Prise en charge des offres</li>
|
||||
<li class="Liste">Robot - Mise en place de quotas</li>
|
||||
<li class="Liste">Panel - Correction de diverses erreurs</li>
|
||||
</ul>
|
||||
<br /><br />
|
||||
|
||||
<strong>Version : 0.7.1 (le 10 novembre 2007)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Correction de bugs mineurs</li>
|
||||
<li class="Liste">Panel - Suppression de l'affichage de la bande passante utilisé</li>
|
||||
<li class="Liste">Robot - Correction du robot d'affichage des ressources utilisés</li>
|
||||
</ul>
|
||||
<br /><br />
|
||||
|
||||
<strong>Version : 0.7 (le 24 octobre 2007)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Ajout logos pour les rubriques et nouvelle page d'accueil</li>
|
||||
<li class="Liste">Panel - Affichage des ressources utilisées (Bande passante et espace disque)</li>
|
||||
<li class="Liste">Panel - Modification majeure pour rendre le panel multi-serveurs</li>
|
||||
<li class="Liste">Panel - Ajout de la prise en charge des mails</li>
|
||||
<li class="Liste">Panel - Mode expert pour l'ajout d'un domaine</li>
|
||||
</ul>
|
||||
<br /><br />
|
||||
|
||||
<strong>Version : 0.6.5 (version abandonnée)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Ajout logos pour les rubriques et nouvelle page d'accueil</li>
|
||||
<li class="Liste">Panel - Amelioration des coupures de chaines dans tous les modules ([...])</li>
|
||||
<li class="Liste">Panel - Ajout du dernier passage du robot sur l'accueil</li>
|
||||
<li class="Liste">Panel - Correction d'erreur de Validation Xhtml 1.0 Strict</li>
|
||||
<li class="Liste">Panel - Modification majeure pour rendre le panel multi-serveurs</li>
|
||||
<li class="Liste">Robot - Remplacement du module Compte->Creation</li>
|
||||
<li class="Liste">Robot - Remplacement du module MySql->Creation</li>
|
||||
<li class="Liste">Robot - Remplacement du module MySql->Suppression</li>
|
||||
<li class="Liste">Robot - Remplacement du module Domaine->Creation</li>
|
||||
<li class="Liste">Robot - Remplacement du module Domaine->Suppression</li>
|
||||
<li class="Liste">Robot - Remplacement du module Compte->Creation</li>
|
||||
</ul>
|
||||
|
||||
<br /><br />
|
||||
<strong>Version : 0.6 (le 29 mai 2007)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Correction de la regex Commentaire du module Ftp->Ajouter</li>
|
||||
<li class="Liste">Panel - Création du module Divers->Contribuer</li>
|
||||
<li class="Liste">Robot - Correction des droits des utilisateurs MySql</li>
|
||||
<li class="Liste">Robot - Correction des domaines (autoriser l'url rewriting)</li>
|
||||
<li class="Liste">Robot - Correction du changement de date dans la zone dns</li>
|
||||
<li class="Liste">Robot - Changement de la disposition dans la zone dns</li>
|
||||
<li class="Liste">Serveur - Changement de la disposition dans la zone dns</li>
|
||||
<li class="Liste">Serveur - Mise en place d'un systeme de backup rsync</li>
|
||||
</ul>
|
||||
|
||||
<br /><br />
|
||||
<strong>Version : 0.5a (le 17 mai 2007)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Création du Kelio Panel</li>
|
||||
<li class="Liste">Panel - Création du module Accueil</li>
|
||||
<li class="Liste">Panel - Création du module MySql->Récapitulatif</li>
|
||||
<li class="Liste">Panel - Création du module MySql->Ajout</li>
|
||||
<li class="Liste">Panel - Création du module MySql->Suppression</li>
|
||||
<li class="Liste">Panel - Création du module Ftp->Récapitulatif</li>
|
||||
<li class="Liste">Panel - Création du module Ftp->Ajout</li>
|
||||
<li class="Liste">Panel - Création du module Ftp->Suppression</li>
|
||||
<li class="Liste">Panel - Création du module Domaine->Récapitulatif</li>
|
||||
<li class="Liste">Panel - Création du module Domaine->Ajout</li>
|
||||
<li class="Liste">Panel - Création du module Domaine->Suppression</li>
|
||||
<li class="Liste">Admin - Création de l'admin Kelio Panel</li>
|
||||
<li class="Liste">Admin - Création du module ValidationCompte</li>
|
||||
<li class="Liste">Robot - Création du robot global</li>
|
||||
<li class="Liste">Robot - Création du module Compte->Creation</li>
|
||||
<li class="Liste">Robot - Création du module MySql->Creation</li>
|
||||
<li class="Liste">Robot - Création du module MySql->Suppression</li>
|
||||
<li class="Liste">Robot - Création du module Ftp->Creation</li>
|
||||
<li class="Liste">Robot - Création du module Ftp->Suppression</li>
|
||||
<li class="Liste">Robot - Création du module Domaine->Creation</li>
|
||||
<li class="Liste">Robot - Création du module Domaine->Suppression</li>
|
||||
<li class="Liste">Serveur - Remplacement de PhpMyAdmin par Eskuel</li>
|
||||
</ul>
|
||||
154
0.9.0/panel/module/divers/contribuer.php
Executable file
154
0.9.0/panel/module/divers/contribuer.php
Executable file
@@ -0,0 +1,154 @@
|
||||
<?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.
|
||||
*/
|
||||
?>
|
||||
<h3>Contribuer au projet Kelio.org</h3>
|
||||
<p>Afin d'assurer la pérénité des services offerts par l'association Kelio, nous avons besoin de votre soutien.<br />
|
||||
Vous pouvez y contribuer de différente manières :
|
||||
<ul>
|
||||
<li>Adhérer à l'association et bénéficier d'avantage sur les services.</li>
|
||||
<li>Faire un don à l'association.</li>
|
||||
<li>Parler de notre association et des services proposés autour de vous.</li>
|
||||
<li>Afficher les publicités de notre régie partenaire.</li>
|
||||
</ul>
|
||||
</p>
|
||||
<h4>Faire un don</h4>
|
||||
<p>Nous acceptons les dons par l'intérmédiaire de PayPal, paiements en ligne sécurisés.</p>
|
||||
<h4>Afficher une publicité sur votre site</h4>
|
||||
<p>Les publicités Adsense permettent de nous soutenir directement financièrement.</p>
|
||||
<form action="<?php echo $PHP_SELF ?>#code" method="post">
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Format des annonces</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>La taille des annonces</td>
|
||||
<td>
|
||||
<select name="format">
|
||||
<option value="728x90">Horizontal 728 x 90</option>
|
||||
<option value="468x60">Horizontal 468 x 60</option>
|
||||
<option value="234x60">Horizontal 234 x 60</option>
|
||||
<option value="120x600">Vertical 120 x 600</option>
|
||||
<option value="160x600">Vertical 160 x 600</option>
|
||||
<option value="120x240">Vertical 120 x 240</option>
|
||||
<option value="336x280">Grand rectangle 336 x 280</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Couleurs</strong></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bordure</td>
|
||||
<td>#<input type="text" name="bordure" value="FFFFFF" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Titre</td>
|
||||
|
||||
<td>#<input type="text" name="titre" value="0000FF" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Fond</td>
|
||||
<td>#<input type="text" name="fond" value="FFFFFF" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td>Texte</td>
|
||||
<td>#<input type="text" name="texte" value="000000" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>#<input type="text" name="url" value="008000" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div><input type="submit" value="Valider" /></div>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$format = $_POST["format"];
|
||||
$bordure = $_POST["bordure"];
|
||||
$titre = $_POST["titre"];
|
||||
$fond = $_POST["fond"];
|
||||
$texte = $_POST["texte"];
|
||||
$url = $_POST["url"];
|
||||
$format2 = explode("x", $format);
|
||||
$width = $format2[0];
|
||||
$height = $format2[1];
|
||||
$format = $format."_as";
|
||||
$code = "<strong>Code à insérer sur votre site Internet :</strong><br/><br/>
|
||||
<textarea cols=\"50\" rows=\"15\" >
|
||||
<script type=\"text/javascript\"><!--
|
||||
google_ad_client = \"pub-3624271267101348\";
|
||||
google_ad_width = $width;
|
||||
google_ad_height = $height;
|
||||
google_ad_format = \"$format\";
|
||||
google_ad_type = \"text_image\";
|
||||
google_ad_channel = \"\";
|
||||
google_color_border = \"$bordure\";
|
||||
google_color_bg = \"$fond\";
|
||||
google_color_link = \"$url\";
|
||||
google_color_text = \"$texte\";
|
||||
google_color_url = \"$url\";
|
||||
//-->
|
||||
</script>
|
||||
<script type=\"text/javascript\"
|
||||
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
|
||||
</script>
|
||||
</textarea>
|
||||
<br/><br/>
|
||||
<strong>Aperçu visuel de la publicité qui sera sur votre site Internet :</strong><br /><br />
|
||||
<script type=\"text/javascript\"><!--
|
||||
google_ad_client = \"pub-3624271267101348\";
|
||||
google_ad_width = $width;
|
||||
google_ad_height = $height;
|
||||
google_ad_format = \"$format\";
|
||||
google_ad_type = \"text_image\";
|
||||
google_ad_channel = \"\";
|
||||
google_color_border = \"$bordure\";
|
||||
google_color_bg = \"$fond\";
|
||||
google_color_link = \"$url\";
|
||||
google_color_text = \"$texte\";
|
||||
google_color_url = \"$url\";
|
||||
//-->
|
||||
</script>
|
||||
<script type=\"text/javascript\"
|
||||
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
|
||||
</script>"
|
||||
?>
|
||||
<?php
|
||||
if (isset($_POST["format"]))
|
||||
{ echo "<div id='code'>$code</div>"; }
|
||||
?><br/>
|
||||
<h4>Afficher nos bannières de promotion sur votre site</h4>
|
||||
<p><img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /><a href="#JS_banniere" style="cursor:pointer" onclick="Cache('JS_banniere');">Voir nos bannières</a></p>
|
||||
<div id="JS_banniere" style="display: none">
|
||||
<br/>
|
||||
<strong>Bannière 1</strong> (468x60)<br/>
|
||||
<img src="http://www.kelio.asso.fr/image/logo/banniere46860-1.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" />
|
||||
<br/>Code à afficher<br/>
|
||||
<textarea style="width: 468px; height: 60px;">
|
||||
<a href="http://www.kelio.asso.fr"><img style="border: 0px;" src="http://kelio.org/image/logo/banniere46860-1.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" /> </a>
|
||||
</textarea><br/>
|
||||
<strong>Bannière 2</strong> (300x150)<br/>
|
||||
<img src="http://www.kelio.asso.fr/image/logo/banniere300150.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" />
|
||||
<br/>Code à afficher<br/>
|
||||
<textarea style="width: 468px; height: 60px;">
|
||||
<a href="http://www.kelio.asso.fr"><img style="border: 0px;" src="http://kelio.org/image/logo/banniere300150.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" /> </a>
|
||||
</textarea>
|
||||
</div>
|
||||
73
0.9.0/panel/module/dns/ajoutdomaine.php
Executable file
73
0.9.0/panel/module/dns/ajoutdomaine.php
Executable file
@@ -0,0 +1,73 @@
|
||||
<?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.
|
||||
*/
|
||||
$CountDNS = $MySql->Count('id', 'domainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?><h3>Ajouter un nom de domaine</h3>
|
||||
<p>
|
||||
La Racine du site signifie le dossier dans lequel le domaine pointera.<br />
|
||||
L'OpenBaseDir signifie le dossier jusqu'auquel PHP peut remonter, vous pouvez par exemple faire communiquer plusieurs de vos sites entre eux. En général, celui-ci est identique à la racine.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Avant d'ajouter votre nom de domaine, vous devez l'avoir préalablement acheté auprès d'un registrar. Si ce n'est pas le cas, vous pouvez l'acheter auprès de <a href="http://www.gandi.net">Gandi</a>.<br />
|
||||
Notez que notre association peut se charger de la procédure d'achat et de configuration. Contactez-nous pour obtenir plus d'informations.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Pour utiliser nos serveurs DNS, configurez ceux-ci chez votre registrar pour pointer sur <b>ns1.kelio.org</b> et <b>ns2.kelio.org</b>.<br />
|
||||
Rendez-vous sur notre forum pour obtenir de l'aide.
|
||||
</p>
|
||||
|
||||
<?php if (($CountDNS < $_SESSION['Offre']['DomaineDns']) or ($_SESSION['Offre']['DomaineDns'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-11.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Domaine</th>
|
||||
<td><input name="Domaine" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Racine</th>
|
||||
<td><input name="Racine" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Open Basedir</th>
|
||||
<td><input name="OpenBasedir" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Serveur Mail</th>
|
||||
<td>
|
||||
<input name="Mail" type="radio" value="mail.kelio.org" checked="checked"/> Utiliser le serveur mail de Kelio<br/>
|
||||
<input name="Mail" type="radio" value="autre" /> Utiliser un serveur mail externe: <input name="ServeurMail" type="text" maxlength="80" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire </th>
|
||||
<td><input name="Commentaire" type="text" maxlength="70" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Ajouter le nom de domaine" />
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>
|
||||
Désolé, votre offre ne vous permet pas d'ajouter plus de zone(s) DNS.<br />
|
||||
Veuillez en supprimer une ou utiliser un fournisseur de serveurs DNS externe.
|
||||
</p>
|
||||
<?php endif;?>
|
||||
100
0.9.0/panel/module/dns/ajoutsousdomaine.php
Executable file
100
0.9.0/panel/module/dns/ajoutsousdomaine.php
Executable file
@@ -0,0 +1,100 @@
|
||||
<?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.
|
||||
*/
|
||||
$CountDNS = $MySql->Count('id', 'sousdomainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
$ListDomaines = $MySql->Select ('*', 'domainedns', "Utilisateur='{$_SESSION['Utilisateur']}' AND Status!='".KELIO_DELETE."'", '', '', '', '');
|
||||
$CountDomaines = count ($ListDomaines);
|
||||
if ( $ListDomaines == FALSE ) { $CountDomaines = 0; }
|
||||
?>
|
||||
|
||||
<h3>Ajouter un sous domaine</h3>
|
||||
|
||||
<p class="notice">
|
||||
<b>TODO</b> Rédiger la description de cette page
|
||||
<?php echo $CountDNS."/".$_SESSION['Offre']['SousDomaineDns']; ?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
if($CountDNS > 0)
|
||||
{
|
||||
if (($CountDNS < $_SESSION['Offre']['SousDomaineDns']) or ($_SESSION['Offre']['SousDomaineDns'] == '-1')) { ?>
|
||||
<div>
|
||||
<form action="execution-13.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Sous-Domaine</th>
|
||||
<td>
|
||||
<input name="Donnee" type="text" maxlength="80" />
|
||||
<b>.</b>
|
||||
<select name="Domaine">
|
||||
<?php
|
||||
for($i = 0; $i < $CountDomaines; $i++)
|
||||
echo "<option>{$ListDomaines[$i]["Domaine"]}</option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Type </th>
|
||||
<td>
|
||||
<input name="Type" type="radio" value="1" checked="checked" onclick="Montre_Form('JS_Racine'); Montre_Form('JS_OpenBasedir'); Cache_Form('JS_TypePointage'); Cache_Form('JS_Pointage');"> Ajouter sur les serveurs Kelio<br/>
|
||||
<input name="Type" type="radio" value="2" onclick="Cache_Form('JS_Racine'); Cache_Form('JS_OpenBasedir'); Montre_Form('JS_TypePointage'); Montre_Form('JS_Pointage');"> Faire pointer sur un serveur externe
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="JS_Racine">
|
||||
<th>Racine</th>
|
||||
<td><input name="Racine" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr id="JS_OpenBasedir">
|
||||
<th>Open Basedir</th>
|
||||
<td><input name="OpenBasedir" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_TypePointage">
|
||||
<th>Pointage </th>
|
||||
<td>
|
||||
<select name="TypePointage">
|
||||
<option value="2">CNAME (alias)</option>
|
||||
<option value="3">A (IPv4)</option>
|
||||
<?php /*<option value="4">AAAA (IPv6)</option>*/ ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_Pointage">
|
||||
<th>Destination </th>
|
||||
<td><input name="Pointage" type="text" maxlength="70" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire </th>
|
||||
<td><input name="Commentaire" type="text" maxlength="70" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Ajouter la zone DNS" />
|
||||
</form>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<p>
|
||||
Désolé, votre offre ne vous permet pas d'ajouter plus de sous domaines.
|
||||
</p>
|
||||
<?php }
|
||||
}
|
||||
else { ?>
|
||||
<p>
|
||||
<b>Avant d'ajouter votre sous domaine, vous devez avoir préalablement <a href="Page-DNS-AjoutDomaine.html">ajouté un nom de domaine sur nos serveur.<a></b><br />
|
||||
</p>
|
||||
<?php } ?>
|
||||
200
0.9.0/panel/module/dns/recapitulatif.php
Executable file
200
0.9.0/panel/module/dns/recapitulatif.php
Executable file
@@ -0,0 +1,200 @@
|
||||
<?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 ("*", "domainedns", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountEnregistrement = 0; }
|
||||
|
||||
$CountSousDomaines = $MySql->Count('id', 'sousdomainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de vos noms de domaine <a style="border: 0px;" href="http://doc.kelio.org/"><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; if ($_SESSION['Offre']['DomaineDns'] != '-1') echo " / {$_SESSION['Offre']['DomaineDns']}"; ?> domaine(s)
|
||||
et <?php echo $CountSousDomaines; if($_SESSION['Offre']['SousDomaineDns'] != -1) echo " / {$_SESSION['Offre']['SousDomaineDns']}"; ?> sous domaine(s).
|
||||
</p>
|
||||
<p>
|
||||
Pour rappel, une adresse IP est l'équivalent d'une adresse postale dans le domaine informatique. Chaque ordinateur ou équipement informatique connecté au réseau dispose d'une adresse IP.
|
||||
Le service DNS sert à répondre aux internautes "ce (sous) domaine correspond à cette adresse IP".
|
||||
</p>
|
||||
<p>Passez votre souris sur le commentaire pour le voir en entier.</p>
|
||||
<p>
|
||||
Le statut "En attente" signifie que votre nom de domaine ou votre sous domaine est en attente de création par notre robot. Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de même pour le statut "Suppression".
|
||||
</p>
|
||||
<p>Pour utiliser nos serveurs DNS, configurez ceux-ci chez votre registrar pour pointer sur <strong>ns1.kelio.org</strong> et <strong>ns2.kelio.org</strong>. <br />Rendez-vous sur notre forum pour obtenir de l'aide.</p>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>(Sous) domaine</th>
|
||||
<th>Date de création</th>
|
||||
<th>Statut</th>
|
||||
<th>Racine</th>
|
||||
<th>Basedir</th>
|
||||
<th>Mail</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if ( $ListTable == FALSE )
|
||||
echo '<tr><td style="text-align: center; font-weight: bold;" colspan="7">Aucun nom de domaine pour le moment</td></tr>';
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountEnregistrement; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == KELIO_WAIT )
|
||||
$Status = "<img src='img/icons-panel/wait.png' style='vertical-align: middle;' alt='En Attente' /> En attente";
|
||||
elseif ( $ListTable[$i]["Status"] == KELIO_ACTIVE )
|
||||
$Status = "<img src='img/icons-panel/active.png' style='vertical-align: middle;' alt='Activé' /> Activé";
|
||||
elseif ( $ListTable[$i]["Status"] == KELIO_DELETE )
|
||||
$Status = "<img src='img/icons-panel/delete.png' style='vertical-align: middle;' alt='Suppresion' /> Suppression";
|
||||
else // KELIO_ERROR
|
||||
$Status = "<img src='img/icons-panel/error.png' style='vertical-align: middle;' alt='Erreur' /> Erreur";
|
||||
|
||||
// Commentaire
|
||||
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"];
|
||||
|
||||
// Domaine
|
||||
if ( strlen($ListTable[$i]["Domaine"]) > 15 )
|
||||
$Domaine = substr($ListTable[$i]["Domaine"], 0, 15)."...";
|
||||
else
|
||||
$Domaine = $ListTable[$i]["Domaine"];
|
||||
|
||||
// Racine
|
||||
if ( strlen($ListTable[$i]["Racine"]) > 15 )
|
||||
$Racine = substr($ListTable[$i]["Racine"], 0, 15)."...";
|
||||
else
|
||||
$Racine = $ListTable[$i]["Racine"];
|
||||
|
||||
// OpenBasedir
|
||||
if ( strlen($ListTable[$i]["OpenBasedir"]) > 15 )
|
||||
$OpenBasedir = substr($ListTable[$i]["OpenBasedir"], 0, 15)."...";
|
||||
else
|
||||
$OpenBasedir = $ListTable[$i]["OpenBasedir"];
|
||||
|
||||
// Mail
|
||||
if ( strlen($ListTable[$i]["Mail"]) > 15 )
|
||||
$Mail = substr($ListTable[$i]["Mail"], 0, 15)."...";
|
||||
else
|
||||
$Mail = $ListTable[$i]["Mail"];
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<th><span style="cursor: help;" title="'.$ListTable[$i]["Domaine"].'">'.$Domaine.'</span></th>
|
||||
<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><span style="cursor: help;" title="'.$ListTable[$i]["Racine"].'">'.$Racine.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["OpenBasedir"].'">'.$OpenBasedir.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Mail"].'">'.$Mail.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
|
||||
$ListSousDomaine = $MySql->Select ("*", "sousdomainedns", "Domaine='".$ListTable[$i]["Domaine"]."'", "", "", "", "");
|
||||
if ( $ListSousDomaine == FALSE )
|
||||
echo '<tr><td style="text-align: center;" colspan="7">Aucun sous-domaine pour '.$ListTable[$i]["Domaine"].'</td></tr>';
|
||||
else
|
||||
{
|
||||
$CountSousDomaine = count ($ListSousDomaine);
|
||||
for ($o=0; $o < $CountSousDomaine; $o++)
|
||||
{
|
||||
if ( $ListSousDomaine[$o]["Status"] == KELIO_WAIT )
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/wait.png' style='vertical-align: middle;' alt='En attente' /> En attente";
|
||||
elseif ( $ListSousDomaine[$o]["Status"] == KELIO_ACTIVE )
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/active.png' style='vertical-align: middle;' alt='Activé' /> Activé";
|
||||
elseif ( $ListSousDomaine[$o]["Status"] == KELIO_DELETE )
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/delete.png' style='vertical-align: middle;' alt='Suppresion' /> Suppression";
|
||||
else // KELIO_ERROR
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/error.png' style='vertical-align: middle;' alt='Erreur' /> Erreur";
|
||||
|
||||
if ( strlen($ListSousDomaine[$o]["Commentaire"]) > 16 )
|
||||
$CommentaireSousDomaine = substr ($ListSousDomaine[$o]["Commentaire"], 0, 16)."...";
|
||||
elseif ( strlen($ListSousDomaine[$o]["Commentaire"]) == 0 )
|
||||
$CommentaireSousDomaine = "-";
|
||||
else
|
||||
$CommentaireSousDomaine = $ListSousDomaine[$o]["Commentaire"];
|
||||
|
||||
// Donnee
|
||||
if ( strlen($ListSousDomaine[$o]["Donnee"]) > 15 )
|
||||
$Donnee = substr($ListSousDomaine[$o]["Donnee"], 0, 15)."...";
|
||||
else
|
||||
$Donnee = $ListSousDomaine[$o]["Donnee"];
|
||||
|
||||
// Racine
|
||||
if ( strlen($ListSousDomaine[$o]["Racine"]) > 15 )
|
||||
$Racine = substr($ListSousDomaine[$o]["Racine"], 0, 15)."...";
|
||||
else
|
||||
$Racine = $ListSousDomaine[$o]["Racine"];
|
||||
|
||||
// OpenBasedir
|
||||
if ( strlen($ListSousDomaine[$o]["OpenBasedir"]) > 15 )
|
||||
$OpenBasedir = substr($ListSousDomaine[$o]["OpenBasedir"], 0, 15)."...";
|
||||
else
|
||||
$OpenBasedir = $ListSousDomaine[$o]["OpenBasedir"];
|
||||
|
||||
// Pointage
|
||||
if ( strlen($ListSousDomaine[$o]["Pointage"]) > 20 )
|
||||
$Pointage = substr($ListSousDomaine[$o]["Pointage"], 0, 20)."...";
|
||||
else
|
||||
$Pointage = $ListSousDomaine[$o]["Pointage"];
|
||||
|
||||
// Type de pointage
|
||||
switch($ListSousDomaine[$o]["Type"])
|
||||
{
|
||||
case 2: $TypePointage = "CNAME"; break;
|
||||
case 3: $TypePointage = "A"; break;
|
||||
case 4: $TypePointage = "AAAA"; break;
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr class="special">
|
||||
<td style="padding-left: 30px;"><span style="cursor: help;" title="'.$ListSousDomaine[$o]['Donnee'].'">'.$Donnee.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.date ("d-m-Y H:i:s",$ListSousDomaine[$o]["DateDeCreation"]).'">'.date("d-m-Y", $ListSousDomaine[$o]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$StatusSousDomaine.'</td>';
|
||||
|
||||
if($ListSousDomaine[$o]['Type'] == 1)
|
||||
{
|
||||
echo '<td><span style="cursor: help;" title="'.$ListSousDomaine[$o]["Racine"].'">'.$Racine.'</span></td>';
|
||||
echo '<td colspan="2"><span style="cursor: help;" title="'.$ListSousDomaine[$o]["OpenBasedir"].'">'.$OpenBasedir.'</span></td>';
|
||||
}
|
||||
elseif( ($ListSousDomaine[$o]['Type'] > 1) || ($ListSousDomaine[$o]['Type'] < 5))
|
||||
echo '<td colspan="3"><b>Externe</b>: <span style="cursor: help;" title="'.$ListSousDomaine[$o]["Pointage"].'">'.$Pointage.'</span> ('.$TypePointage.')</td>';
|
||||
else
|
||||
echo '<td colspan="3" style="font-weight: bold;">Erreur de création</td>';
|
||||
|
||||
echo '
|
||||
<td><span style="cursor: help;" title="'.$ListSousDomaine[$o]["Commentaire"].'">'.$CommentaireSousDomaine.'</span></td>
|
||||
</tr>' ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
68
0.9.0/panel/module/dns/suppression.php
Executable file
68
0.9.0/panel/module/dns/suppression.php
Executable file
@@ -0,0 +1,68 @@
|
||||
<?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 ("*", "domainedns", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
?>
|
||||
|
||||
<h3>Supprimer un (sous) domaine</h3>
|
||||
<p>
|
||||
En cas d'erreur, vous devrez attendre que le (sous) domaine soit totalement supprimé du serveur pour pouvoir le recréer.<br />
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-12.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>(Sous) domaine à supprimer :</th>
|
||||
<td>
|
||||
<select name="Domaine">
|
||||
<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]["Domaine"]."'>".$ListTable[$i]["Domaine"]."</option>\n";
|
||||
|
||||
$ListSousZones = $MySql->Select ("*", "sousdomainedns", "Utilisateur='{$_SESSION['Utilisateur']}' AND Domaine='{$ListTable[$i]["Domaine"]}' AND Status='2'", "", "", "", "");
|
||||
$CountSousZones = count ($ListSousZones);
|
||||
if ( $ListSousZones == FALSE ) { $CountSousZones = 0; }
|
||||
|
||||
for($j = 0; $j < $CountSousZones; $j++)
|
||||
{
|
||||
echo "<option value=' {$ListSousZones[$j]["Donnee"]}'> ".$ListSousZones[$j]["Donnee"]."</option>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tapez "oui"</th>
|
||||
<td><input name="Confirmation" type="text" maxlength="3" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Supprimer le (sous) domaine" />
|
||||
</form>
|
||||
</div>
|
||||
115
0.9.0/panel/module/domaine/ajoutdomaine.php
Executable file
115
0.9.0/panel/module/domaine/ajoutdomaine.php
Executable file
@@ -0,0 +1,115 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
$ListBDD = $MySql->Select ("*", "utilisateur", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountDomaine = $MySql->Count('id', 'domaine', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?><h3>Ajouter un nom de domaine externe</h3>
|
||||
<p>
|
||||
La Racine du site signifie le dossier dans lequel le domaine pointera.<br />
|
||||
L'OpenBaseDir signifie le dossier jusqu'auquel PHP peut remonter, vous pouvez par exemple faire communiquer plusieurs de vos sites entre eux. En général, celui-ci est identique à la racine.
|
||||
</p>
|
||||
<p>Le domaine doit être déposé auprès d'un <abbr title="bureau d'enregistrement en français">registrar</abbr>.
|
||||
<br />Il vous faut aussi faire un pointage de type "A" ou "CNAME" sur l'adresse IP : <strong><?php echo gethostbyname ($ListBDD[0]["ServeurFichier"]) ; ?> (<?php echo $ListBDD[0]["ServeurFichier"]; ?>)</strong>
|
||||
<br /><br />Vous pouvez aussi utiliser des sous-domaines.<br />
|
||||
N'hesitez pas à poster sur notre <a href="http://forum.kelio.asso.fr">forum</a> afin d'obtenir de l'aide à la configuration.<br />Tous les champs marqués d'une étoile sont obligatoires.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountDomaine < $_SESSION['Offre']['Domaine']) or ($_SESSION['Offre']['Domaine'] == '-1') ): ?>
|
||||
<div>
|
||||
<form action="execution-6.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th colspan="2" style="text-align: center;"><a style=" cursor:pointer" onclick="Cache('JS_ModExpert1'); Cache('JS_ModExpert2'); Cache('JS_ModExpert3'); Cache('JS_ModExpert4'); Cache('JS_ModExpert5'); Cache('JS_ModExpert6'); Cache('JS_ModExpert7'); Cache('JS_ModExpert8'); Cache('JS_ModExpert9'); Cache('JS_ModExpert10'); Cache('JS_ModExpert11'); Cache('JS_ModExpert12');">Mode expert / Mode normal</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Adresse (sans http://)</th>
|
||||
<td style="width:350px"><input name="Adresse" type="text" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Racine </th>
|
||||
<td><input name="Racine" type="text" maxlength="120" value="/public/" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Open BaseDir :</th>
|
||||
<td><input name="BaseDir" type="text" maxlength="120" value="/public/" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire</th>
|
||||
<td><input name="Commentaire" type="text" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert1">
|
||||
<th><span style="cursor: help" title="Host par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysq.ldefault_host</span></th>
|
||||
<td><input name="mysqldefault_host" type="text" maxlength="100" value="<?php echo $ListBDD[0]["ServeurMysql"]; ?>" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert2">
|
||||
<th><span style="cursor: help" title="Utilisateur par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_user</span></th>
|
||||
<td><input name="mysqldefault_user" type="text" maxlength="16" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert3">
|
||||
<th><span style="cursor: help" title="Password par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_password</span></th>
|
||||
<td><input name="mysqldefault_password" type="text" maxlength="16" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert4">
|
||||
<th><span style="cursor: help" title="Dossier contenant toute les données temporaires du domaine">Temporaire</span></th>
|
||||
<td><input name="temporaire" type="text" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert5">
|
||||
<th><span style="cursor: help" title="Dossier contenant toute les sessions du domaine">Sessions</span></th>
|
||||
<td><input name="sessions" type="text" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Listage du dossier :</th>
|
||||
<td><label><input name="Listage" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="Listage" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert6">
|
||||
<th><span style="cursor: help" title="Autoriser l'ouvrture de fichier distant via la fonction fopen(), file_get_contents(), etc.">*Allow_url_fopen</span></th>
|
||||
<td><label><input name="allow_url_fopen" type="radio" value="Oui" /> Oui</label> - <label><input name="allow_url_fopen" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert7">
|
||||
<th><span style="cursor: help" title="Autoriser l'inclusion de fichier distant via la fonction include(), etc.">*Allow_url_include</span></th>
|
||||
<td><label><input name="allow_url_include" type="radio" value="Oui" /> Oui</label> - <label><input name="allow_url_include" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert8">
|
||||
<th><span style="cursor: help" title="Voir les erreurs génerés par php">*Display_errors</span></th>
|
||||
<td><label><input name="display_errors" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="display_errors" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert9">
|
||||
<th><span style="cursor: help" title="Permettre l'utilisation de <? ?>">*Short_open_tag</span></th>
|
||||
<td><label><input name="short_open_tag" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="short_open_tag" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert10">
|
||||
<th><span style="cursor: help" title="Demarrer les sessions en début de page sans utiliser session_start ()">*Session.auto_start</span></th>
|
||||
<td><label><input name="sessionauto_start" type="radio" value="Oui" /> Oui</label> - <label><input name="sessionauto_start" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert11">
|
||||
<th><span style="cursor: help" title="Ajoute automatiquement des anti-slashs aux arrays $_POST, etc..">*Magic_quotes_gpc</span></th>
|
||||
<td><label><input name="magic_quotes_gpc" type="radio" value="Oui" /> Oui</label> - <label><input name="magic_quotes_gpc" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert12">
|
||||
<th><span style="cursor: help" title="Permet d'utiliser $_POST['var'] en $var">*Register_globals</span></th>
|
||||
<td><label><input name="register_globals" type="radio" value="Oui" /> Oui</label> - <label><input name="register_globals" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Ajouter le domaine" />
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de nom(s) de domaine. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
137
0.9.0/panel/module/domaine/recapitulatif.php
Executable file
137
0.9.0/panel/module/domaine/recapitulatif.php
Executable file
@@ -0,0 +1,137 @@
|
||||
<?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 ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountEnregistrement = 0; }
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de vos noms de domaine externes <a style="border: 0px;" href="http://doc.kelio.org/gerer_les_noms_de_domaine"><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; ?> domaine(s)<?php if ($_SESSION['Offre']['Domaine'] != '-1'):?> sur <?php echo $_SESSION['Offre']['Domaine']; ?> autorisé(s)<?php endif;?>.
|
||||
</p>
|
||||
<p>
|
||||
Cette catégorie sert à indiquer au serveur web que tel nom de domaine (ou sous-somaine) doit se rendre dans tel dossier.
|
||||
<br />Ainsi, vous pouvez ajouter plusieurs noms de domaine (ou sous-domaine) et gérer en parralèle plusieurs sites web dans votre compte.
|
||||
<br />Exemple : <strong><?php echo $_SESSION['Utilisateur']; ?>.kelio.org</strong> est relié à votre dossier <strong>/var/www/web/<?php echo $_SESSION['Utilisateur']; ?>/public/</strong>. Les données que vous déposerez dans ce dossier apparaitront sur ce site.
|
||||
</p>
|
||||
|
||||
<p>Passez votre souris sur le commentaire pour le voir en entier.<br />Idem pour le chemin, ainsi que le basedir</p>
|
||||
<p>
|
||||
Le statut "Création" signifie que votre domaine est en attente de création par notre robot. <br />
|
||||
Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de même pour le statut "Suppression".
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Adresse</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Racine</th>
|
||||
<th>Basedir</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '<tr><td style="text-align: center; font-weight: bold;" colspan="6">Aucun domaine 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]["Adresse"]) > 10 )
|
||||
{
|
||||
$Adresse = substr($ListTable[$i]["Adresse"], 0, 10)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Adresse = $ListTable[$i]["Adresse"];
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Racine"]) > 16 )
|
||||
{
|
||||
$Racine = substr($ListTable[$i]["Racine"], 0 ,16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Racine = $ListTable[$i]["Racine"];
|
||||
}
|
||||
|
||||
if ( strlen ($ListTable[$i]["OpenBasedir"]) > 16 )
|
||||
{
|
||||
$Basedir = substr($ListTable[$i]["OpenBasedir"], 0 ,16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Basedir = $ListTable[$i]["OpenBasedir"];
|
||||
}
|
||||
|
||||
if ( strlen ($ListTable[$i]["Commentaire"]) > 13 )
|
||||
{
|
||||
$Commentaire = substr($ListTable[$i]["Commentaire"], 0 ,16)." ...";
|
||||
}
|
||||
elseif ( strlen ($ListTable[$i]["Commentaire"]) == 0)
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListTable[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Adresse"].'">'.$Adresse.'</span></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><span style="cursor: help;" title="'.$ListTable[$i]["Racine"].'">'.$Racine.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["OpenBasedir"].'">'.$Basedir.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
60
0.9.0/panel/module/domaine/suppressiondomaine.php
Executable file
60
0.9.0/panel/module/domaine/suppressiondomaine.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.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer un nom de domaine externe</h3>
|
||||
<p>
|
||||
En cas d'erreur, vous devrez attendre que l'adresse soit totalement supprimée du serveur pour pouvoir la recréer.<br />
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-7.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Domaine à supprimer :</th>
|
||||
<td>
|
||||
<select name="Domaine">
|
||||
<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]["Adresse"]."'>".$ListTable[$i]["Adresse"]."</option>\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tapez "oui"</th>
|
||||
<td><input name="Confirmation" type="text" maxlength="3" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Supprimer le site web" />
|
||||
</form>
|
||||
</div>
|
||||
57
0.9.0/panel/module/email/ajoutalias.php
Executable file
57
0.9.0/panel/module/email/ajoutalias.php
Executable file
@@ -0,0 +1,57 @@
|
||||
<?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.
|
||||
*/
|
||||
$CountAlias = $MySql->Count('id', 'email', "Utilisateur = '{$_SESSION['Utilisateur']}' AND Type = 'alias'");
|
||||
?>
|
||||
<h3>Ajouter un alias email</h3>
|
||||
<p>
|
||||
Un alias est une adresse email qui redirige tout le courriel vers un autre.
|
||||
</p>
|
||||
<p>
|
||||
Les alias emails sont compatible uniquement avec les domaines externes.<br />
|
||||
Avant d'ajouter un alias, veuillez au préalable lui définir une redirection de <strong>type MX</strong> pointant vers <strong><?php echo gethostbyname('mail.kelio.org'); ?> (mail.kelio.org)</strong>. Dans le cas contraire, il vous sera impossible d'ajouter de compte.
|
||||
</p>
|
||||
<p>
|
||||
L'alias sera créé dans l'heure qui suit.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountAlias < $_SESSION['Offre']['AliasEmail']) or ($_SESSION['Offre']['AliasEmail'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-9.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Courriel</th>
|
||||
<td><input name="Nom" type="text" maxlength="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Pointage</th>
|
||||
<td><input name="Pointage" type="text" maxlength="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire </th>
|
||||
<td><input name="Commentaire" type="text" maxlength="50" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Créer l'alias email" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter d'alias. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
59
0.9.0/panel/module/email/ajoutcompte.php
Executable file
59
0.9.0/panel/module/email/ajoutcompte.php
Executable file
@@ -0,0 +1,59 @@
|
||||
<?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.
|
||||
*/
|
||||
$CountMailbox = $MySql->Count('id', 'email', "Utilisateur = '{$_SESSION['Utilisateur']}' AND Type = 'compte'");
|
||||
?>
|
||||
<h3>Ajouter un compte email</h3>
|
||||
<p>
|
||||
Le compte sera hebergé par Kelio, vous pourrez y accéder par <a href="http://webmail.kelio.org">notre webmail</a> ou via les protocoles IMAP/POP3 en utilisant le serveur <strong>mail.kelio.org</strong>.<br />
|
||||
Vous pourrez envoyer des emails depuis votre client de messagerie en utilisant le protocole SMTP sans authentification (principe "pop before smtp") via le serveur <strong>mail.kelio.fr</strong>.<br />
|
||||
Notez que notre système de messagerie est équipé d'un système anti-spam (technologie : greylisting), de ce fait, la réception des emails peut accuser d'un retard d'environ une heure.</p>
|
||||
<p>
|
||||
Les comptes emails sont compatible uniquement avec les domaines externes.<br />
|
||||
Avant d'ajouter un compte, veuillez au préalable lui définir une redirection de <strong>type MX</strong> pointant vers <strong>mail.kelio.org</strong>. Dans le cas contraire, il vous sera impossible d'ajouter de compte.<br />
|
||||
N'hésitez pas à consulter notre forum pour trouver de l'aide.
|
||||
</p>
|
||||
<p>
|
||||
Le compte sera créé dans l'heure qui suit.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountMailbox < $_SESSION['Offre']['CompteEmail']) or ($_SESSION['Offre']['CompteEmail'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-8.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Courriel</th>
|
||||
<td style="width:400px"><input type="text" name="Nom" maxlength="60"></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 le compte email" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de compte. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
214
0.9.0/panel/module/email/recapitulatif.php
Executable file
214
0.9.0/panel/module/email/recapitulatif.php
Executable file
@@ -0,0 +1,214 @@
|
||||
<?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.
|
||||
*/
|
||||
$ListCompte = $MySql->Select ("*", "email", "Utilisateur='".$_SESSION['Utilisateur']."' AND Type='compte'", "", "", "", "");
|
||||
$ListAlias = $MySql->Select ("*", "email", "Utilisateur='".$_SESSION['Utilisateur']."' AND Type='alias'", "", "", "", "");
|
||||
|
||||
$CountCompte = count($ListCompte);
|
||||
$CountAlias = count ($ListAlias);
|
||||
|
||||
if ( $ListCompte == FALSE ) { $CountCompte = 0; }
|
||||
if ( $ListAlias == FALSE ) { $CountAlias = 0; }
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de comptes et alias e-mail <a style="border: 0px;" href="http://doc.kelio.org/utiliser_la_messagerie"><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 $CountCompte; ?><?php if ($_SESSION['Offre']['CompteEmail'] != '-1'):?>/<?php echo $_SESSION['Offre']['CompteEmail']?><?php endif; ?> compte(s) email et <?php echo $CountAlias; ?><?php if ($_SESSION['Offre']['AliasEmail'] != '-1'):?>/<?php echo $_SESSION['Offre']['AliasEmail']; ?><?php endif;?> alias.
|
||||
</p>
|
||||
<p>
|
||||
Passez votre souris sur le commentaire pour le voir en entier.<br /><br />
|
||||
Le statut "Création" signifie que votre compte/alias 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>
|
||||
<h4>Liste des comptes email</h4>
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Mot de passe</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListCompte == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="6" style="text-align:center; font-weight: bold;">Il n\'y a aucun email pour le moment.</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountCompte; $i++)
|
||||
{
|
||||
|
||||
if ( $ListCompte[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListCompte[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListCompte[$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($ListCompte[$i]["Commentaire"]) > 19 )
|
||||
{
|
||||
$Commentaire = substr ($ListCompte[$i]["Commentaire"], 0, 19)." ...";
|
||||
}
|
||||
elseif ( strlen($ListCompte[$i]["Commentaire"]) == 0 )
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListCompte[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
if ( strlen($ListCompte[$i]["Nom"]) > 16 )
|
||||
{
|
||||
$Nom = substr ($ListCompte[$i]["Nom"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Nom = $ListCompte[$i]["Nom"];
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td><span style="cursor:help;" title="'.$ListCompte[$i]["Nom"].'">'.$Nom.'</span></td>
|
||||
<td><span style="cursor:help;" title="'.date ("d-m-Y H:i:s",$ListCompte[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListCompte[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td>'.$ListCompte[$i]["Password"].'</td>
|
||||
<td>'.$Commentaire.'</td>
|
||||
</tr>';
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<h4>Liste des alias email</h4>
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Destination</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListAlias == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="6" style="text-align:center; font-weight: bold;">Il n\'y a aucun alias pour le moment.</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
for ($i=0; $i < $CountAlias; $i++)
|
||||
{
|
||||
|
||||
if ( $ListAlias[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListAlias[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListAlias[$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($ListAlias[$i]["Nom"]) > 16 )
|
||||
{
|
||||
$Nom = substr ($ListAlias[$i]["Nom"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Nom = $ListAlias[$i]["Nom"];
|
||||
}
|
||||
|
||||
if ( strlen($ListAlias[$i]["Pointage"]) > 16 )
|
||||
{
|
||||
$Pointage = substr ($ListAlias[$i]["Pointage"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Pointage = $ListAlias[$i]["Pointage"];
|
||||
}
|
||||
|
||||
if ( strlen($ListAlias[$i]["Commentaire"]) > 16 )
|
||||
{
|
||||
$Commentaire = substr ($ListCompte[$i]["Commentaire"], 0, 16)." ...";
|
||||
}
|
||||
elseif ( strlen($ListAlias[$i]["Commentaire"]) == 0 )
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListAlias[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td><span style="cursor:help;" title="'.$ListAlias[$i]["Nom"].'">'.$Nom.'</span></td>
|
||||
<td><span style="cursor:help;" title="'.date ("d-m-Y H:i:s",$ListAlias[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListAlias[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td><span style="cursor:help;" title="'.$ListAlias[$i]["Pointage"].'">'.$Pointage.'</span></td>
|
||||
<td><span style="cursor:help;" title="'.$ListAlias[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
64
0.9.0/panel/module/email/suppression.php
Executable file
64
0.9.0/panel/module/email/suppression.php
Executable file
@@ -0,0 +1,64 @@
|
||||
<?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 ("*", "email", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer un compte ou un alias</h3>
|
||||
<p>
|
||||
Avant de supprimer un compte email, assurez vous d'avoir fais une backup de toute vos données.
|
||||
</p>
|
||||
<p>
|
||||
Une fois la suppression effectuée, le compte/alias ne sera plus actif, et le serveur refusera alors tous courriels.
|
||||
</p>
|
||||
|
||||
|
||||
<div>
|
||||
<form action="execution-10.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Email à 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"]." (".$ListTable[$i]["Type"].")</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tapez "oui"</th>
|
||||
<td><input name="Confirmation" type="text" maxlength="3" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Supprimer l'email" />
|
||||
</form>
|
||||
</div>
|
||||
22
0.9.0/panel/module/erreur/desactive.php
Executable file
22
0.9.0/panel/module/erreur/desactive.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?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.
|
||||
*/
|
||||
?>
|
||||
<h3><img src="img/icons-panel/message-warn.png" style="vertical-align: middle;" alt="erreur" /> Cette page est désactivée.</h3>
|
||||
<p>Un administrateur a désactivé cette page. Pour plus d'information, contactez les administrateurs.</p>
|
||||
<p>Veuillez nous excuser pour la gêne occasionnée</p>
|
||||
22
0.9.0/panel/module/erreur/inconnu.php
Executable file
22
0.9.0/panel/module/erreur/inconnu.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?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.
|
||||
*/
|
||||
?>
|
||||
<h3><img src="img/icons-panel/message-warn.png" style="vertical-align: middle;" alt="erreur" /> Cette page est inconnue sur le serveur</h3>
|
||||
<p>Si vous vouliez accéder à cette page en suivant un lien, veuillez le signaler aux administrateurs.</p>
|
||||
<p>Veuillez nous excuser pour la gêne occasionnée</p>
|
||||
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>
|
||||
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;?>
|
||||
102
0.9.0/panel/module/mysql/recapitulatif.php
Executable file
102
0.9.0/panel/module/mysql/recapitulatif.php
Executable file
@@ -0,0 +1,102 @@
|
||||
<?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 ("*", "basededonnee", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountTable = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountTable = 0; }
|
||||
?>
|
||||
<h3>Récapitulatif de vos bases de données MySql <a style="border: 0px;" href="http://doc.kelio.org/gerer_les_bases_de_donnees"><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 $CountTable; ?> base(s) de données<?php if ($_SESSION['Offre']['BaseDeDonnees'] != '-1'):?> sur <?php echo $_SESSION['Offre']['BaseDeDonnees']; ?> autorisée(s)<?php endif;?>.
|
||||
</p>
|
||||
<p>
|
||||
Passez votre souris sur le commentaire pour le voir en entier.<br /><br />
|
||||
Le statut "Création" signifie que votre base de données 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>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Mot de passe</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr><td style="text-align: center; font-weight: bold; colspan="5">Aucune base de données pour le moment</td></tr>' ;
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountTable; $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]["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]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
66
0.9.0/panel/module/mysql/suppressionbdd.php
Executable file
66
0.9.0/panel/module/mysql/suppressionbdd.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?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 ("*", "basededonnee", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer une base de données</h3>
|
||||
<p>
|
||||
Attention, une fois votre base de données supprimée, vous ne pourrez plus revenir sur votre choix.<br />
|
||||
Pensez à faire une sauvegarde avant de la mettre en attente de suppression.
|
||||
<br /> Seules les bases de données ayant leur statut "activé" peuvent être supprimées. Si ce n'est pas le cas, veuillez attendre que leur statut passe à "activé"<br />
|
||||
Afin d'éviter toute erreur, vous devrez entrer le mot de passe de celle-ci. (vous pouvez le voir sur la page "Récapitulatif").
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-3.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Base à supprimer</th>
|
||||
<td>
|
||||
<select name="Base">
|
||||
<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 la base de données" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user