Migration
This commit is contained in:
189
0.8.0/module/accueil.php
Executable file
189
0.8.0/module/accueil.php
Executable file
@@ -0,0 +1,189 @@
|
||||
<?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"];
|
||||
$BandePassante = $SelectionQuota[0]["BandePassante"];
|
||||
}
|
||||
else
|
||||
{
|
||||
$Espace = 0;
|
||||
$BandePassante = 0;
|
||||
}
|
||||
|
||||
?>
|
||||
<p>Bienvenue sur l'administration l'h<>bergement Kelio !
|
||||
<br />Veuillez choisir une action <20> effectuer dans le menu ci-contre.</p>
|
||||
<div style="background-image: url(image/icons/message-info.png); background-repeat: no-repeat; padding-left: 35px; min-height: 24px;">
|
||||
<p>N'oubliez pas que notre h<>bergement vit gr<67>ce <20> vos dons et <20> la publicit<69> ! Mettre une petite publicit<69> sur votre site nous aidera <20> continuer ! Vous <20>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>
|
||||
|
||||
<br /><br />
|
||||
|
||||
<table border="0" style="width: 30%; float: left;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" style="background-color: #eee;"><img src="image/icons/cube_green.png" alt="info" style="padding-right: 5px;" /><strong>Acc<63>s rapide</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Bases de donn<6E>es" src="image/icons/database.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_bdd');">Bases de donn<6E>es</a></td>
|
||||
</tr>
|
||||
<tr id="JS_bdd" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-MySql-AjoutBdd.html">Ajouter</a><br />
|
||||
<img src="image/icons/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-MySql-SuppressionBdd.html">Supprimer</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="FTP" src="image/icons/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="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Ftp-AjoutCompte.html">Ajouter</a><br />
|
||||
<img src="image/icons/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Ftp-SuppressionCompte.html">Supprimer</a><br/>
|
||||
<img src="image/icons/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="image/icons/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="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-AjoutCompte.html">Ajouter compte</a><br />
|
||||
<img src="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-AjoutAlias.html">Ajouter alias</a><br />
|
||||
<img src="image/icons/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-Suppression.html">Supprimer compte</a><br/>
|
||||
<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="http://webmail.kelio.org">Webmail</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Domaines" src="image/icons/house.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_domaine');">Noms de domaine externes</a></td>
|
||||
</tr>
|
||||
<tr id="JS_domaine" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Domaine-AjoutDomaineExterne.html">Ajouter</a><br />
|
||||
<img src="image/icons/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Domaine-SuppressionDomaineExterne.html">Supprimer</a><br/>
|
||||
<!--<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Domaine-Stats.html">Statistiques web</a><sup>nouveau</sup>-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Compte" src="image/icons/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="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Compte-Profile.html">Profil</a><br />-->
|
||||
<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Compte-MotdePasse.html">Mot de passe</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="background-color: #eee;"><img src="image/icons/cube_green.png" alt="info" style="padding-right: 5px;" /><strong>Assistance</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Documentation" src="image/icons/book_open.png" /></td>
|
||||
<td><a href="http://doc.kelio.org">Documentation</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="assistance en ligne" src="image/icons/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="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /><a href="http://www.kelio.asso.fr/contact.html">Formulaire</a>
|
||||
<br />
|
||||
<img src="image/icons/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="image/icons/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="image/icons/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;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" style="background-color: #eee;"><img src="image/icons/cube_green.png" alt="info" style="padding-right: 5px;" /><strong>Informations g<>n<EFBFBD>rales</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="image/icons/wrench.png" alt="technique" style="padding-right: 5px;" />Informations techniques</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 45%">Version :</td>
|
||||
<td>Kelio Panel <strong>0.8.0</strong> (<a href="Page-Divers-Changelog.html">Changelog</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Finalis<69> le :</td>
|
||||
<td>04 octobre 2009</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cod<6F> par :</td>
|
||||
<td>Mogui et Vinux</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.0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="image/icons/group.png" alt="utilisateur" style="padding-right: 5px;" />Informations utilisateur</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 45%">Offre : </td>
|
||||
<td><strong><?php echo $_SESSION['Offre']['Nom']; ?></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 45%">Domaine du client : </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<69><?php endif; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="background-color: #eee;"><img src="image/icons/cube_green.png" alt="info" style="padding-right: 5px;" /><strong>Services compl<70>mentaires</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="image/icons/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>
|
||||
37
0.8.0/module/compte/changepasswd.php
Executable file
37
0.8.0/module/compte/changepasswd.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<h3>Modification mot de passe</h3>
|
||||
<p>Vous pouvez modifier <EFBFBD> partir de cette page le mot de passe d'acc<63>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<EFBFBD> avec succ<EFBFBD>s</p>';
|
||||
$_SESSION['Hash'] = $pass;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p>Une erreur est survenue</p>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<div style="width: 500px; margin: auto">
|
||||
<form action="Page-Compte-MotdePasse.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
<tr>
|
||||
<td style="width:170px">Nouveau mot de passe :</td>
|
||||
<td><input name="pass-new" type="password" style="border: 0; border-bottom: #006633 1px solid; width:50%" maxlength="9" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Confirmation :</td>
|
||||
<td><input name="pass-new-confirm" type="password" style="border: 0; border-bottom: #006633 1px solid; width:50%" maxlength="9" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Valider" style=" border: #006633 1px solid; " />
|
||||
</div>
|
||||
</form>
|
||||
</div>';
|
||||
} ?>
|
||||
60
0.8.0/module/compte/profile.php
Executable file
60
0.8.0/module/compte/profile.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<h3>Mon profil</h3>
|
||||
<p style="color: red;">Avertissement : les fonctionalit<EFBFBD>s de cette page sont actuellement en d<EFBFBD>veloppement bien qu'<27>tant fonctionelles.</p>
|
||||
<p>Vous pouvez modifier <20> partir de cette page vos informations personelles.</p>
|
||||
<h4>Ajouter votre site dans l'annuaire des sites Kelio.org</h4>
|
||||
<?php
|
||||
$ListTable = $MySql->Select ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
if ( VerifPOST("Domaine", "#^[a-z0-9.-]+\.[a-z]+$#", 5, 120) == "ChaineValide" )
|
||||
{
|
||||
$ListDirectory = $Directory->Select ("*", "3i8d_link", "url='http://".$_POST['Domaine']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListDirectory);
|
||||
|
||||
if ( $ListDirectory != FALSE )
|
||||
{
|
||||
echo '<p>ERREUR : Votre site <strong>'.$_POST["Domaine"].'</strong> est d<>j<EFBFBD> pr<70>sent dans l\'annuaire</p>';
|
||||
echo '<p>Pour modifier votre site ou le supprimer de l\'annuaire, <a href="http://www.kelio.org/contact.html">contactez-nous</a>.</p>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$Conteneur = "name, url, description, state, category, image, date";
|
||||
$Contenu = "'".$_POST['Name']."', 'http://".$_POST['Domaine']."','".$_POST['Description']."', '4', '8', 'http://open.thumbshots.org/image.pxf?url=http://".$_POST['Domaine']."', ''";
|
||||
$InsertDirectory = $Directory->Insert ($Conteneur,$Contenu, "3i8d_link");
|
||||
|
||||
if ( $InsertDirectory != FALSE )
|
||||
{
|
||||
echo '<p>Votre site <strong>'.$_POST["Domaine"].'</strong> a <20>t<EFBFBD> ajout<75> avec succ<63>s dans l\'annuaire</p>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p>Une erreur est survenue</p>';
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<table><form action="Page-Compte-Profile.html" method="post">
|
||||
<tr><td>Votre site web : <select name="Domaine" style="border: 0; border-bottom: #006633 1px solid; width:100%;">
|
||||
<option selected="selected" value="'.$_SESSION["Utilisateur"].'.kelio.org">'.$_SESSION["Utilisateur"].'.kelio.org</option>';
|
||||
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";
|
||||
}
|
||||
echo '</select></td></tr>
|
||||
<tr><td>Nom du site : <input type="text" name="Name" style="border: 0; border-bottom: #006633 1px solid; width:100%;" maxlength="30" /></td></tr>
|
||||
<tr><td>Description du site : <input type="text" name="Description" style="border: 0; border-bottom: #006633 1px solid; width:100%;" maxlength="90" /></td></tr>
|
||||
<tr><td><input type="submit" value="Valider" style=" border: #006633 1px solid;" /></td></tr>
|
||||
</form></table>';
|
||||
}
|
||||
?>
|
||||
<h4>Modifier votre adresse email</h4>
|
||||
<p>Pour modifier votre adresse email, <a href="http://www.kelio.org/contact.html">contactez-nous</a>.</p>
|
||||
73
0.8.0/module/divers/bridage.php
Executable file
73
0.8.0/module/divers/bridage.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.
|
||||
*/
|
||||
$ListBDD = $MySql->Select("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
|
||||
?><h3>Bridage de vos sites Internet</h3><br />
|
||||
<p>Afin de favoriser les gens qui affichent notre publicit<69> sur leurs sites, un bridage est impos<6F> <20> tous les sites, sauf ceux dont notre pub est affich<63>e.<br />
|
||||
Une limite est fix<69>e uniquement pour le t<>lechargement de fichiers, celle-ci est de 50Ko/sec pour tout le site. <br />
|
||||
Cependant, si notre publicit<69> est affich<63>e au moins sur l'accueil, le site sera totalement d<>brid<69> et pourra ainsi b<>n<EFBFBD>ficier jusqu'<27> 12Mo/sec de bande passante (dans les limites de la charte).<br />
|
||||
Pour afficher notre publicit<69>, veuillez en g<>n<EFBFBD>rer-une sur la page <a href="Page-Divers-Contribuer.html">"Nous soutenir"</a>. (publicit<69>s adsense seulement).<br />
|
||||
Notre robot passe une fois toutes les 24 heures, ne vous <20>tonnez donc pas que le bridage soit toujours actif imm<6D>diatement apr<70>s l'affichage de la publicit<69>.<br />
|
||||
Notez que <?php echo $_SESSION['Utilisateur']; ?>.kelio.org ne peut <20>tre d<>brid<69>.<br /><br />
|
||||
Ci-dessous un r<>capitulatif de tous les bridages sur vos domaines.</p><br />
|
||||
|
||||
<div style="border:#006633 1px solid; width: 90%; margin: auto; margin-top: 15px;">
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td class="Tableau1" style="text-align: center; width: 80%;"><strong>Domaine</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Bridage</strong></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$TotalBDD = count($ListBDD);
|
||||
|
||||
if ( $ListBDD == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td class="Tableau1" colspan="2" style="text-align: center;"><strong>Vous n\'avez aucun domaine actif</strong></td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $TotalBDD; $i++)
|
||||
{
|
||||
if ( $ListBDD[$i]["Bridage"] == "Oui" )
|
||||
{
|
||||
$Bridage = "brid<69>";
|
||||
$Couleur = "#FF3333";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Bridage = "d<>brid<69>";
|
||||
$Couleur = "#009933";
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td class="Tableau1" style="text-align: center; width: 80%;">'.$ListBDD[$i]["Adresse"].'</td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%; color: '.$Couleur.';">'.$Bridage.'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
102
0.8.0/module/divers/changelog.php
Executable file
102
0.8.0/module/divers/changelog.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.
|
||||
*/
|
||||
|
||||
?>
|
||||
<h3>Changelog Kelio Panel</h3><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<69></li>
|
||||
<li class="Liste">Robot - Correction du robot d'affichage des ressources utilis<69>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<69>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<6E>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<43>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<43>ation du Kelio Panel</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module Accueil</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module MySql->R<>capitulatif</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module MySql->Ajout</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module MySql->Suppression</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module Ftp->R<>capitulatif</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module Ftp->Ajout</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module Ftp->Suppression</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module Domaine->R<>capitulatif</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module Domaine->Ajout</li>
|
||||
<li class="Liste">Panel - Cr<43>ation du module Domaine->Suppression</li>
|
||||
<li class="Liste">Admin - Cr<43>ation de l'admin Kelio Panel</li>
|
||||
<li class="Liste">Admin - Cr<43>ation du module ValidationCompte</li>
|
||||
<li class="Liste">Robot - Cr<43>ation du robot global</li>
|
||||
<li class="Liste">Robot - Cr<43>ation du module Compte->Creation</li>
|
||||
<li class="Liste">Robot - Cr<43>ation du module MySql->Creation</li>
|
||||
<li class="Liste">Robot - Cr<43>ation du module MySql->Suppression</li>
|
||||
<li class="Liste">Robot - Cr<43>ation du module Ftp->Creation</li>
|
||||
<li class="Liste">Robot - Cr<43>ation du module Ftp->Suppression</li>
|
||||
<li class="Liste">Robot - Cr<43>ation du module Domaine->Creation</li>
|
||||
<li class="Liste">Robot - Cr<43>ation du module Domaine->Suppression</li>
|
||||
<li class="Liste">Serveur - Remplacement de PhpMyAdmin par Eskuel</li>
|
||||
</ul>
|
||||
154
0.8.0/module/divers/contribuer.php
Executable file
154
0.8.0/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>Contribuer au projet Kelio, permet sa survie.<br />
|
||||
Vous pouvez contribuer de diff<66>rente mani<6E>res : dons, bouche a oreilles, affichage de notre publicit<69>.
|
||||
</p>
|
||||
<h3>Faire un don</h3>
|
||||
<img src="image/icons/tick.png" alt="info" style="padding-right: 5px;" /><strong>Op<4F>ration 2009 - Kelio.org</strong><br />
|
||||
Nous nous sommes fix<69>s un objectif pour 2009 : une nouvelle infrastructure. Rendez-vous sur : <a href="http://www.kelio.org/2009">http://www.kelio.org/2009</a>
|
||||
<br /><br/>
|
||||
<h3>Afficher une publicit<69> sur votre site</h3>
|
||||
<small>Les publicit<69>s Adsense permettent de nous soutenir directement financi<63>rement.<br/>
|
||||
Code client Adsense : "pub-3624271267101348"</small>
|
||||
<br />
|
||||
<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 <20> ins<6E>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<65>u visuel de la publicit<69> 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>"; }
|
||||
?>
|
||||
<h3>Afficher nos banni<6E>res de promotion sur votre site</h3>
|
||||
<p><img src="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /><a href="#JS_banniere" style="cursor:pointer" onclick="Cache('JS_banniere');">Voir nos banni<6E>res</a></p>
|
||||
<div id="JS_banniere" style="display: none">
|
||||
<br/>
|
||||
<strong>Banni<6E>re 1</strong> (468x60)<br/>
|
||||
<img src="http://www.kelio.org/image/logo/banniere46860-1.png" alt="Kelio.org - Faites vivre vos id<69>es avec un h<>bergeur ind<6E>pendant et alternatif" />
|
||||
<br/>Code <20> afficher<br/>
|
||||
<textarea style="width: 468px; height: 60px; border: 0; border: #006633 1px solid;" cols="" rows="">
|
||||
<a href="http://www.kelio.org"><img style="border: 0px;" src="http://kelio.org/image/logo/banniere46860-1.png" alt="Kelio.org - Faites vivre vos id<69>es avec un h<>bergeur ind<6E>pendant et alternatif" /> </a>
|
||||
</textarea><br/>
|
||||
<strong>Banni<6E>re 2</strong> (300x150)<br/>
|
||||
<img src="http://www.kelio.org/image/logo/banniere300150.png" alt="Kelio.org - Faites vivre vos id<69>es avec un h<>bergeur ind<6E>pendant et alternatif" />
|
||||
<br/>Code <20> afficher<br/>
|
||||
<textarea style="width: 468px; height: 60px; border: 0; border: #006633 1px solid;" cols="" rows="">
|
||||
<a href="http://www.kelio.org"><img style="border: 0px;" src="http://kelio.org/image/logo/banniere300150.png" alt="Kelio.org - Faites vivre vos id<69>es avec un h<>bergeur ind<6E>pendant et alternatif" /> </a>
|
||||
</textarea>
|
||||
</div>
|
||||
<br/>
|
||||
21
0.8.0/module/divers/stockage.php
Executable file
21
0.8.0/module/divers/stockage.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?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>Stockage de fichiers</h3>
|
||||
<p>Le stockage massif de fichiers sur Kelio.org est interdit selon les conditions de la charte h<>bergement web.
|
||||
Cependant, vous pouvez souscrire <20> notre offre h<>bergement fichiers sur <a href="http://www.mes-fichiers.com">http://www.mes-fichiers.com</a> (actuellement en version b<>ta)</p>
|
||||
117
0.8.0/module/domaine/ajoutdomaine.php
Executable file
117
0.8.0/module/domaine/ajoutdomaine.php
Executable file
@@ -0,0 +1,117 @@
|
||||
<?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 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 pas exemple faire communiquer plusieurs de vos sites entre eux. En g<>n<EFBFBD>ral, celui-ci est identique <20> la racine.
|
||||
</p>
|
||||
<p>Le domaine doit <20>tre d<>pos<6F> aupr<70>s d'un <abbr title="bureau d'enregistrement en fran<61>ais">registrar</abbr>.
|
||||
<br />Il vous faut aussi faire une redirection de type A-record sur l'adresse ip : <strong><?php echo gethostbyname ($ListBDD[0]["ServeurFichier"]) ; ?> (<?php echo $ListBDD[0]["ServeurFichier"]; ?>)</strong>
|
||||
<br />Vous pouvez aussi utiliser des sous-domaines.<br />Tous les champs marqu<71>s d'une <20>toile sont obligatoires.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountDomaine < $_SESSION['Offre']['Domaine']) or ($_SESSION['Offre']['Domaine'] == '-1') ): ?>
|
||||
<div style="width:100%; padding-top: 15px; padding-bottom: 15px; 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><br /></div>
|
||||
|
||||
<div style="width: 500px; margin: auto">
|
||||
<form action="execution-6.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
<tr>
|
||||
<td style="width:150px">*Adresse (sans http://) :</td>
|
||||
<td style="width:350px"><input name="Adresse" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>*Racine :</td>
|
||||
<td><input name="Racine" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="120" value="/public/" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>*Open BaseDir :</td>
|
||||
<td><input name="BaseDir" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="120" value="/public/" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Commentaire :</td>
|
||||
<td><input name="Commentaire" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert1">
|
||||
<td><span style="cursor: help" title="Host par d<>faut en cas de champs vide pour la fonction mysql_connect ()">Mysq.ldefault_host</span></td>
|
||||
<td><input name="mysqldefault_host" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="100" value="<?php echo $ListBDD[0]["ServeurMysql"]; ?>" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert2">
|
||||
<td><span style="cursor: help" title="Utilisateur par d<>faut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_user</span></td>
|
||||
<td><input name="mysqldefault_user" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="16" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert3">
|
||||
<td><span style="cursor: help" title="Password par d<>faut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_password</span></td>
|
||||
<td><input name="mysqldefault_password" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="16" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert4">
|
||||
<td><span style="cursor: help" title="Dossier contenant toute les donn<6E>es temporaires du domaine">Temporaire</span></td>
|
||||
<td><input name="temporaire" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert5">
|
||||
<td><span style="cursor: help" title="Dossier contenant toute les sessions du domaine">Sessions</span></td>
|
||||
<td><input name="sessions" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>*Listage du dossier :</td>
|
||||
<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">
|
||||
<td style="width:150px"><span style="cursor: help" title="Autoriser l'ouvrture de fichier distant via la fonction fopen()">*Allow_url_fopen</span></td>
|
||||
<td style="width:350px"><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">
|
||||
<td style="width:150px"><span style="cursor: help" title="Autoriser l'inclusion de fichier distant via la fonction include (), etc..">*Allow_url_include</span></td>
|
||||
<td style="width:350px"><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">
|
||||
<td style="width:150px"><span style="cursor: help" title="Voir les erreurs g<>ner<65>s par php">*Display_errors</span></td>
|
||||
<td style="width:350px"><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">
|
||||
<td style="width:150px"><span style="cursor: help" title="Permettre l'utilisation de <? ?>">*Short_open_tag</span></td>
|
||||
<td style="width:350px"><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">
|
||||
<td style="width:150px"><span style="cursor: help" title="Demarrer les sessions en d<>but de page sans utiliser session_start ()">*Session.auto_start</span></td>
|
||||
<td style="width:350px"><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">
|
||||
<td style="width:150px"><span style="cursor: help" title="Ajoute automatiquement des anti-slashs aux arrays $_POST, etc..">*Magic_quotes_gpc</span></td>
|
||||
<td style="width:350px"><label><input name="magic_quotes_gpc" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="magic_quotes_gpc" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert12">
|
||||
<td style="width:150px"><span style="cursor: help" title="Permet d'utiliser $_POST['var'] en $var">*Register_globals</span></td>
|
||||
<td style="width:350px"><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>
|
||||
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Ajouter le domaine" style=" border: #006633 1px solid;" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>D<>sol<6F>, vous ne pouvez plus ajouter de nom(s) de domaine. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
133
0.8.0/module/domaine/recapitulatif.php
Executable file
133
0.8.0/module/domaine/recapitulatif.php
Executable file
@@ -0,0 +1,133 @@
|
||||
<?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<EFBFBD>capitulatif de vos domaines externes
|
||||
<a style="border: 0px;" href="http://doc.kelio.org/gerer_les_noms_de_domaine"><img style="vertical-align:middle; border: 0px;" src="image/icons/question.png" alt="Aide" title="Aide" /></a>
|
||||
</h3>
|
||||
<p>
|
||||
Actuellement, vous avez <?php echo $CountEnregistrement; ?> domaine(s)<?php if ($_SESSION['Offre']['Domaine'] != '-1'):?> sur <?php echo $_SESSION['Offre']['Domaine']; ?> autoris<69>(s)<?php endif;?>.
|
||||
<br />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<43>ation" signifie que votre domaine est en attente de cr<63>ation par notre robot. <br />
|
||||
Normalement, cette op<6F>ration prend moins d'une heure.<br />
|
||||
Il en est de meme pour le statut "Suppression".
|
||||
</p>
|
||||
|
||||
<div style="border:#006633 1px solid; width: 90%; margin: auto; margin-top: 15px;">
|
||||
<table style="width:100%">
|
||||
|
||||
<tr>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Adresse</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Date</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 10%;"><strong>Statut</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Racine</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Basedir</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Commentaire</strong></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '<tr><td class="Tableau1" style="text-align: center; width: 100%;" colspan="6">Aucun domaine pour le moment</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountEnregistrement; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "Creation";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "Activ<69>";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "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 class="Tableau1" style="text-align: center; width: 15%;"><span style="cursor: pointer" title="'.$ListTable[$i]["Adresse"].'">'.$Adresse.'</span></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><span style="cursor: pointer" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 10%;">'.$Status.'</td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><span style="cursor: pointer" title="'.$ListTable[$i]["Racine"].'">'.$Racine.'</span></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><span style="cursor: pointer" title="'.$ListTable[$i]["OpenBasedir"].'">'.$Basedir.'</span></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><span style="cursor: pointer" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
89
0.8.0/module/domaine/stats.php
Executable file
89
0.8.0/module/domaine/stats.php
Executable file
@@ -0,0 +1,89 @@
|
||||
<h3>Statistiques web</h3>
|
||||
<p>Vous pouvez activer les statistiques web pour le domaine externe de votre choix.</p>
|
||||
<h4>Activation des statistiques web</h4>
|
||||
<p>Vos statistiques web seront publiques. Elles sont actualis<EFBFBD>es tous les jours vers 6h.<br/>
|
||||
Vous ne pouvez pas activer les statistiques web sur <?php echo $_SESSION['Utilisateur']; ?>.kelio.org.</p>
|
||||
<?php
|
||||
$ListTable = $MySql->Select ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2' AND Stats!='1'", "", "", "", "");
|
||||
|
||||
if ( VerifPOST("Domaine", "#^[a-z0-9.-]+\.[a-z]+$#", 5, 120) == "ChaineValide" )
|
||||
{
|
||||
$ListDomaine = $MySql->Select ("*", "domaine", "Adresse='".$_POST['Domaine']."' AND Stats='1'", "", "", "", "");
|
||||
|
||||
if ( $ListDomaine != FALSE )
|
||||
{
|
||||
echo '<p>ERREUR : Les statistiques web sont d<>j<EFBFBD> activ<69>es pour <strong>'.$_POST["Domaine"].'</strong></p>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$UpdateDomaine = $MySql->Update ("domaine", "Stats", "1", "Adresse='".$_POST['Domaine']."'");
|
||||
if ( $UpdateDomaine != FALSE )
|
||||
{
|
||||
echo '<p>Les statistiques web ont bien <20>t<EFBFBD> activ<69>es pour <strong>'.$_POST["Domaine"].'</strong></p>';
|
||||
echo '<p>Note. Vous pourrez commencer <20> consulter vos statistiques d\'ici 24h.</p>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p>Une erreur est survenue</p>';
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<table><form action="Page-Domaine-Stats.html" method="post">
|
||||
<tr><td>Votre domaine : <select name="Domaine" style="border: 0; border-bottom: #006633 1px solid; width:100%;">
|
||||
<option selected="selected" value="">S<>lectionnez</option>';
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo "<option value='".$ListTable[$i]["Adresse"]."'>".$ListTable[$i]["Adresse"]."</option>\n";
|
||||
}
|
||||
echo '</select></td></tr>
|
||||
<tr><td><input type="submit" value="Valider" style=" border: #006633 1px solid;" /></td></tr>
|
||||
</form></table>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo '<h4>Statistiques web activ<69>es</h4>';
|
||||
if (isset($_GET['desactivate']))
|
||||
{
|
||||
$UpdateDomaine = $MySql->Update ("domaine", "Stats", "0", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2' AND Stats='1' AND Adresse='".$_GET['desactivate']."'");
|
||||
if ($UpdateDomaine != FALSE)
|
||||
{
|
||||
echo 'Les statistiques sur '.$_GET['desactivate'].' ont bien <20>t<EFBFBD> d<>sactiv<69>es';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Erreur lors de la d<>sactivation des statistiques';
|
||||
}
|
||||
}
|
||||
|
||||
$ListTable = $MySql->Select ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Stats='1'", "", "", "", "");
|
||||
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
echo 'Pas de statistiques activ<69>es';
|
||||
}
|
||||
else
|
||||
{
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
echo '<ul>';
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo '<li>';
|
||||
echo $ListTable[$i]["Adresse"];
|
||||
echo ' <a href="http://stats.kelio.org/'.$ListTable[$i]["Adresse"].'">[Consulter]</a>';
|
||||
echo '</li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
?>
|
||||
65
0.8.0/module/domaine/suppressiondomaine.php
Executable file
65
0.8.0/module/domaine/suppressiondomaine.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 ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer un domaine externe</h3>
|
||||
<p>
|
||||
En cas d'erreur, vous devrez attendre que l'adresse soit totalement supprim<69>e du serveur pour pouvoir la recr<63>er.<br />
|
||||
</p>
|
||||
|
||||
<div style="width: 500px; margin: auto">
|
||||
<form action="execution-7.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
|
||||
<tr>
|
||||
<td style="width:150px">Domaine <20> supprimer :</td>
|
||||
<td style="width:350px">
|
||||
<select name="Domaine" style="border: 0; border-bottom: #006633 1px solid; width:100%;">
|
||||
<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>
|
||||
<td>Tapez "oui" :</td>
|
||||
<td><input name="Confirmation" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%;" maxlength="3" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Supprimer le domaine" style=" border: #006633 1px solid;" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
59
0.8.0/module/email/ajoutalias.php
Executable file
59
0.8.0/module/email/ajoutalias.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.
|
||||
*/
|
||||
$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<70>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<63><72> dans l'heure qui suit.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountAlias < $_SESSION['Offre']['AliasEmail']) or ($_SESSION['Offre']['AliasEmail'] == '-1')): ?>
|
||||
<div style="width: 500px; margin: auto">
|
||||
<form action="execution-9.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
<tr>
|
||||
<td style="width:100px">Courriel :</td>
|
||||
<td style="width:400px"><input name="Nom" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Pointage :</td>
|
||||
<td><input name="Pointage" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Commentaire :</td>
|
||||
<td><input name="Commentaire" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="50" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Cr<43>er l'alias email" style=" border: #006633 1px solid;" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>D<>sol<6F>, vous ne pouvez plus ajouter d'alias. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
59
0.8.0/module/email/ajoutcompte.php
Executable file
59
0.8.0/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>.
|
||||
</p>
|
||||
<p>
|
||||
Les comptes emails sont compatible uniquement avec les domaines externes.<br />
|
||||
Avant d'ajouter un compte, veuillez au pr<70>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>
|
||||
Le compte sera cr<63><72> dans l'heure qui suit.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountMailbox < $_SESSION['Offre']['CompteEmail']) or ($_SESSION['Offre']['CompteEmail'] == '-1')): ?>
|
||||
<div style="width: 500px; margin: auto">
|
||||
<form action="execution-8.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
<tr>
|
||||
<td style="width:100px">Courriel :</td>
|
||||
<td style="width:400px"><input name="Nom" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mot de passe :</td>
|
||||
<td><input name="MotDePasse" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="9" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Commentaire :</td>
|
||||
<td><input name="Commentaire" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="50" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Cr<43>er le compte email" style=" border: #006633 1px solid;" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>D<>sol<6F>, vous ne pouvez plus ajouter de compte. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
208
0.8.0/module/email/recapitulatif.php
Executable file
208
0.8.0/module/email/recapitulatif.php
Executable file
@@ -0,0 +1,208 @@
|
||||
<?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="image/icons/question.png" alt="Aide" title="Aide" /></a>
|
||||
</h3>
|
||||
<p>
|
||||
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<43>ation" signifie que votre compte/alias est en attente de cr<63>ation par notre robot. <br />
|
||||
Normalement, cette op<6F>ration prend moins d'une heure.<br />
|
||||
Il en est de meme pour le statut "Suppression".
|
||||
</p>
|
||||
<h4>Liste des comptes email</h4>
|
||||
<div style="border:#006633 1px solid; width: 90%; margin: auto; margin-top: 15px;">
|
||||
<table style="width:100%;">
|
||||
<tr>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Nom</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Date</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 10%;"><strong>Statut</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Mot de passe</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 25%;"><strong>Commentaire</strong></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
if ( $ListCompte == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="6" class="Tableau1" style="text-align:center"><strong>Il n\'y a aucun email pour le moment.</strong></td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountCompte; $i++)
|
||||
{
|
||||
|
||||
if ( $ListCompte[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "Creation";
|
||||
}
|
||||
elseif ( $ListCompte[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "Activ<69>";
|
||||
}
|
||||
elseif ( $ListCompte[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "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 class="Tableau1" style="text-align: center;"><span style="cursor:pointer;" title="'.$ListCompte[$i]["Nom"].'">'.$Nom.'</span></td>
|
||||
<td class="Tableau1" style="text-align: center;"><span style="cursor: pointer" title="'.date ("d-m-Y H:i:s",$ListCompte[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListCompte[$i]["DateDeCreation"]).'</span></td>
|
||||
<td class="Tableau1" style="text-align: center;">'.$Status.'</td>
|
||||
<td class="Tableau1" style="text-align: center;">'.$ListCompte[$i]["Password"].'</td>
|
||||
<td class="Tableau1" style="text-align: center;">'.$Commentaire.'</td>
|
||||
</tr>';
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<h4>Liste des alias email</h4>
|
||||
<div style="border:#006633 1px solid; width: 90%; margin: auto; margin-top: 15px;">
|
||||
<table style="width:100%;">
|
||||
<tr>
|
||||
<td class="Tableau1" style="text-align: center; width: 25%;"><strong>Nom</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Date</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 10%;"><strong>Statut</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 25%;"><strong>Destination</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 25%;"><strong>Commentaire</strong></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
if ( $ListAlias == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="6" class="Tableau1" style="text-align:center"><strong>Il n\'y a aucun alias pour le moment.</strong></td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
for ($i=0; $i < $CountAlias; $i++)
|
||||
{
|
||||
|
||||
if ( $ListAlias[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "Creation";
|
||||
}
|
||||
elseif ( $ListAlias[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "Activ<69>";
|
||||
}
|
||||
elseif ( $ListAlias[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "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 class="Tableau1" style="text-align: center;"><span style="cursor:pointer;" title="'.$ListAlias[$i]["Nom"].'">'.$Nom.'</span></td>
|
||||
<td class="Tableau1" style="text-align: center;"><span style="cursor: pointer" title="'.date ("d-m-Y H:i:s",$ListAlias[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListAlias[$i]["DateDeCreation"]).'</span></td>
|
||||
<td class="Tableau1" style="text-align: center;">'.$Status.'</td>
|
||||
<td class="Tableau1" style="text-align: center;"><span style="cursor:pointer;" title="'.$ListAlias[$i]["Pointage"].'">'.$Pointage.'</span></td>
|
||||
<td class="Tableau1" style="text-align: center;"><span style="cursor:pointer;" title="'.$ListAlias[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
69
0.8.0/module/email/suppression.php
Executable file
69
0.8.0/module/email/suppression.php
Executable file
@@ -0,0 +1,69 @@
|
||||
<?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<6E>es.
|
||||
</p>
|
||||
<p>
|
||||
Une fois la suppression effectu<74>e, le compte/alias ne sera plus actif, et le serveur refusera alors tous courriels.
|
||||
</p>
|
||||
|
||||
|
||||
<div style="width: 500px; margin: auto">
|
||||
<form action="execution-10.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
|
||||
<tr>
|
||||
<td style="width:150px">Email <20> supprimer :</td>
|
||||
<td style="width:350px">
|
||||
<select name="Nom" style="border: 0; border-bottom: #006633 1px solid; width:100%;">
|
||||
<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>
|
||||
<td>Tapez "oui" :</td>
|
||||
<td><input name="Confirmation" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%;" maxlength="3" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Supprimer l'email" style=" border: #006633 1px solid;" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
22
0.8.0/module/erreur/desactive.php
Executable file
22
0.8.0/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>Cette page est d<>sactiv<69>e.</h3>
|
||||
<p>Un administrateur a d<>sactiv<69> cette page. Pour plus d'information, contactez les administrateurs.</p>
|
||||
<br /><br />
|
||||
<p>Veuillez nous excuser pour la g<>ne occasionn<6E>e</p>
|
||||
22
0.8.0/module/erreur/inconnu.php
Executable file
22
0.8.0/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>Cette page est inconnue sur le serveur ...</h3>
|
||||
<p>Si vous vouliez acc<63>der <20> cette page en suivant un lien, veuillez le signaler aux administrateurs.</p>
|
||||
<br /><br />
|
||||
<p>Veuillez nous excuser pour la g<>ne occasionn<6E>e</p>
|
||||
61
0.8.0/module/ftp/ajoutcompte.php
Executable file
61
0.8.0/module/ftp/ajoutcompte.php
Executable file
@@ -0,0 +1,61 @@
|
||||
<?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<63>res a-z et 0-9 (3 caract<63>res minimum et 9 maximum).<br />
|
||||
Au nom de votre compte ftp, sera rajout<75> automatiquement le pr<70>fixe : "<?php echo $_SESSION['Utilisateur'] ; ?>_" <br />
|
||||
Le mot de passe pour acc<63>der <20> ce compte ne sera pas crypt<70>, et accessible depuis le r<>capitulatif.<br />
|
||||
Le mot de passe, tout comme le nom, ne doit contenir que les caract<63>res a-z et 0-9 (3 caract<63>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<63><72> si il n'existe pas dans votre espace web.</strong>
|
||||
</p>
|
||||
|
||||
<?php if (($CountFTP < $_SESSION['Offre']['Ftp']) or ($_SESSION['Offre']['Ftp'] == '-1')): ?>
|
||||
<div style="width: 500px; margin: auto">
|
||||
<form action="execution-4.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
<tr>
|
||||
<td style="width:100px">Nom du compte :</td>
|
||||
<td style="width:400px"><?php echo $_SESSION['Utilisateur'] ; ?>_<input name="Nom" type="text" style="border: 0; border-bottom: #006633 1px solid; width:90%" maxlength="9" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mot de passe :</td>
|
||||
<td><input name="MotDePasse" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="9" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Chemin :</td>
|
||||
<td><input name="Chemin" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="70" value="/" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Commentaire :</td>
|
||||
<td><input name="Commentaire" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%" maxlength="50" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Cr<43>er le compte ftp" style=" border: #006633 1px solid;" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>D<>sol<6F>, vous ne pouvez plus ajouter de compte(s) FTP. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
114
0.8.0/module/ftp/recapitulatif.php
Executable file
114
0.8.0/module/ftp/recapitulatif.php
Executable file
@@ -0,0 +1,114 @@
|
||||
<?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<EFBFBD>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="image/icons/question.png" alt="Aide" title="Aide" /></a>
|
||||
</h3>
|
||||
<p>
|
||||
Actuellement, vous avez <?php echo $CountEnregistrement ; ?> compte(s)<?php if ($_SESSION['Offre']['Ftp'] != '-1'):?> ftp sur <?php echo $_SESSION['Offre']['Ftp']; ?> autoris<69>(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<43>ation ..." signifie que votre compte FTP est en attente de cr<63>ation par notre robot. <br />
|
||||
Normalement, cette op<6F>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 style="border:#006633 1px solid; width: 90%; margin: auto; margin-top: 15px;">
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Nom</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Date</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 10%;"><strong>Statut</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Mot de passe</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Chemin</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Commentaire</strong></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '<tr><td class="Tableau1" style="text-align: center; width: 100%;" colspan="6">Aucun compte ftp pour le moment</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountEnregistrement; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "Creation";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "Activ<69>";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "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 class="Tableau1" style="text-align: center;">'.$ListTable[$i]["Nom"].'</td>
|
||||
<td class="Tableau1" style="text-align: center;"><span style="cursor: pointer" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
|
||||
<td class="Tableau1" style="text-align: center;">'.$Status.'</td>
|
||||
<td class="Tableau1" style="text-align: center;">'.$ListTable[$i]["Password"].'</td>
|
||||
<td class="Tableau1" style="text-align: center;"><span style="cursor: pointer" title="'.$ListTable[$i]["Chemin"].'">'.$Chemin.'</span></td>
|
||||
<td class="Tableau1" style="text-align: center;"><span style="cursor: pointer" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>' ;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
66
0.8.0/module/ftp/suppressioncompte.php
Executable file
66
0.8.0/module/ftp/suppressioncompte.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 ("*", "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<69> du serveur pour pouvoir le recr<63>er.<br />
|
||||
Afin d'<27>viter toute erreur, vous devrez entrer le mot de passe du compte. (vous pouvez le voir sur la page "R<>capitulatif").
|
||||
</p>
|
||||
|
||||
<div style="width: 500px; margin: auto">
|
||||
<form action="execution-5.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
<tr>
|
||||
<td style="width:150px">Compte a supprimer :</td>
|
||||
<td style="width:350px">
|
||||
<select name="Nom" style="border: 0; border-bottom: #006633 1px solid; width:100%;">
|
||||
<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>
|
||||
<td>Mot de passe :</td>
|
||||
<td><input name="MotDePasse" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%;" maxlength="9" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Supprimer le compte FTP" style=" border: #006633 1px solid;" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
54
0.8.0/module/mysql/ajoutbdd.php
Executable file
54
0.8.0/module/mysql/ajoutbdd.php
Executable file
@@ -0,0 +1,54 @@
|
||||
<?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<6E>es</h3>
|
||||
<p>
|
||||
Le nom de votre base de donn<6E>es ne doit contenir que les caract<63>res a-z et 0-9 (3 caract<63>res minimum et 6 maximum).<br />
|
||||
Au nom de votre base de donn<6E>es, sera rajout<75> automatiquement le pr<70>fixe : "<?php echo $_SESSION['Utilisateur'] ; ?>_" <br />
|
||||
Le mot de passe pour acc<63>der <20> cette nouvelle base de donn<6E>es ne sera pas crypt<70>, et accessible depuis le r<>capitulatif.<br />
|
||||
Le mot de passe, tout comme le nom, ne doit contenir que les caract<63>res a-z et 0-9 (3 caract<63>res minimum et 9 maximum).
|
||||
</p>
|
||||
|
||||
<?php if (($CountDB < $_SESSION['Offre']['BaseDeDonnees']) or ($_SESSION['Offre']['BaseDeDonnees'] == '-1')): ?>
|
||||
<div style="width: 500px; margin: auto">
|
||||
<form action="execution-2.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
<tr>
|
||||
<td style="width:100px">Nom :</td>
|
||||
<td style="width:400px"><?php echo $_SESSION['Utilisateur'] ; ?>_<input name="Nom" type="text" style="border: 0; border-bottom: #006633 1px solid; width:90%" maxlength="6" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mot de passe :</td>
|
||||
<td><input name="MotDePasse" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%;" maxlength="9" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Commentaire :</td>
|
||||
<td><input name="Commentaire" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%;" maxlength="50" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Cr<43>er la base de donn<6E>es" style=" border: #006633 1px solid;" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>D<>sol<6F>, vous ne pouvez plus ajouter de base(s) de donn<6E>es. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
100
0.8.0/module/mysql/recapitulatif.php
Executable file
100
0.8.0/module/mysql/recapitulatif.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.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "basededonnee", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountTable = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountTable = 0; }
|
||||
?>
|
||||
<h3>
|
||||
R<EFBFBD>capitulatif de vos bases de donn<6E>es MySql
|
||||
<a style="border: 0px;" href="http://doc.kelio.org/gerer_les_bases_de_donnees"><img style="vertical-align:middle; border: 0px;" src="image/icons/question.png" alt="Aide" title="Aide" /></a>
|
||||
</h3>
|
||||
<p>
|
||||
Actuellement, vous avez <?php echo $CountTable; ?> base(s) de donn<6E>es<?php if ($_SESSION['Offre']['BaseDeDonnees'] != '-1'):?> sur <?php echo $_SESSION['Offre']['BaseDeDonnees']; ?> autoris<69>e(s)<?php endif;?>.
|
||||
</p>
|
||||
<p>
|
||||
Passez votre souris sur le commentaire pour le voir en entier.<br /><br />
|
||||
Le statut "Cr<43>ation" signifie que votre base de donn<6E>es est en attente de cr<63>ation par notre robot. <br />
|
||||
Normalement, cette op<6F>ration prend moins d'une heure.<br />
|
||||
Il en est de meme pour le statut "Suppression".
|
||||
</p>
|
||||
<div style="border:#006633 1px solid; width: 90%; margin: auto; margin-top: 15px;">
|
||||
<table style="width:100%;">
|
||||
<tr>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Nom</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Date</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><strong>Statut</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 20%;"><strong>Mot de passe</strong></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 30%;"><strong>Commentaire</strong></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr><td class="Tableau1" style="text-align: center; width: 100%;" colspan="5">Aucune base de donn<6E>es pour le moment</td></tr>' ;
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountTable; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "Creation";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "Activ<69>";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "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 class="Tableau1" style="text-align: center; width: 15%;">'.$ListTable[$i]["Nom"].'</td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;"><span style="cursor: pointer" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;">'.$Status.'</td>
|
||||
<td class="Tableau1" style="text-align: center; width: 15%;">'.$ListTable[$i]["Password"].'</td>
|
||||
<td class="Tableau1" style="text-align: center; width: 55%;"><span style="cursor: pointer" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
67
0.8.0/module/mysql/suppressionbdd.php
Executable file
67
0.8.0/module/mysql/suppressionbdd.php
Executable file
@@ -0,0 +1,67 @@
|
||||
<?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<6E>es</h3>
|
||||
<p>
|
||||
Attention, une fois votre base de donn<6E>es supprim<69>e, vous ne pourrez plus revenir sur votre choix.<br />
|
||||
Pensez <20> faire une sauvegarde avant de la mettre en attente de suppression.
|
||||
<br /> Seules les bases de donn<6E>es ayant leur statut "activ<69>" peuvent <20>tre supprim<69>es. Si ce n'est pas le cas, veuillez attendre que leur statut passe <20> "activ<69>"<br />
|
||||
Afin d'<27>viter toute erreur, vous devrez entrer le mot de passe de celle-ci. (vous pouvez le voir sur la page "R<>capitulatif").
|
||||
</p>
|
||||
|
||||
<div style="width: 500px; margin: auto">
|
||||
<form action="execution-3.html" method="post">
|
||||
<table width="500" cellpadding="5">
|
||||
<tr>
|
||||
<td style="width:150px">Base <20> supprimer :</td>
|
||||
<td style="width:350px">
|
||||
<select name="Base" style="border: 0; border-bottom: #006633 1px solid; width:100%;">
|
||||
<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>
|
||||
<td>Mot de passe :</td>
|
||||
<td><input name="MotDePasse" type="text" style="border: 0; border-bottom: #006633 1px solid; width:100%;" maxlength="9" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="text-align: center; width: 100%; margin-top: 20px;">
|
||||
<input type="submit" name="Submit" value="Supprimer la base de donn<6E>es" style=" border: #006633 1px solid;" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user