Migration
This commit is contained in:
57
0.9.0/panel/module/email/ajoutalias.php
Executable file
57
0.9.0/panel/module/email/ajoutalias.php
Executable file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountAlias = $MySql->Count('id', 'email', "Utilisateur = '{$_SESSION['Utilisateur']}' AND Type = 'alias'");
|
||||
?>
|
||||
<h3>Ajouter un alias email</h3>
|
||||
<p>
|
||||
Un alias est une adresse email qui redirige tout le courriel vers un autre.
|
||||
</p>
|
||||
<p>
|
||||
Les alias emails sont compatible uniquement avec les domaines externes.<br />
|
||||
Avant d'ajouter un alias, veuillez au préalable lui définir une redirection de <strong>type MX</strong> pointant vers <strong><?php echo gethostbyname('mail.kelio.org'); ?> (mail.kelio.org)</strong>. Dans le cas contraire, il vous sera impossible d'ajouter de compte.
|
||||
</p>
|
||||
<p>
|
||||
L'alias sera créé dans l'heure qui suit.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountAlias < $_SESSION['Offre']['AliasEmail']) or ($_SESSION['Offre']['AliasEmail'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-9.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Courriel</th>
|
||||
<td><input name="Nom" type="text" maxlength="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Pointage</th>
|
||||
<td><input name="Pointage" type="text" maxlength="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire </th>
|
||||
<td><input name="Commentaire" type="text" maxlength="50" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Créer l'alias email" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter d'alias. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
59
0.9.0/panel/module/email/ajoutcompte.php
Executable file
59
0.9.0/panel/module/email/ajoutcompte.php
Executable file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountMailbox = $MySql->Count('id', 'email', "Utilisateur = '{$_SESSION['Utilisateur']}' AND Type = 'compte'");
|
||||
?>
|
||||
<h3>Ajouter un compte email</h3>
|
||||
<p>
|
||||
Le compte sera hebergé par Kelio, vous pourrez y accéder par <a href="http://webmail.kelio.org">notre webmail</a> ou via les protocoles IMAP/POP3 en utilisant le serveur <strong>mail.kelio.org</strong>.<br />
|
||||
Vous pourrez envoyer des emails depuis votre client de messagerie en utilisant le protocole SMTP sans authentification (principe "pop before smtp") via le serveur <strong>mail.kelio.fr</strong>.<br />
|
||||
Notez que notre système de messagerie est équipé d'un système anti-spam (technologie : greylisting), de ce fait, la réception des emails peut accuser d'un retard d'environ une heure.</p>
|
||||
<p>
|
||||
Les comptes emails sont compatible uniquement avec les domaines externes.<br />
|
||||
Avant d'ajouter un compte, veuillez au préalable lui définir une redirection de <strong>type MX</strong> pointant vers <strong>mail.kelio.org</strong>. Dans le cas contraire, il vous sera impossible d'ajouter de compte.<br />
|
||||
N'hésitez pas à consulter notre forum pour trouver de l'aide.
|
||||
</p>
|
||||
<p>
|
||||
Le compte sera créé dans l'heure qui suit.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountMailbox < $_SESSION['Offre']['CompteEmail']) or ($_SESSION['Offre']['CompteEmail'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-8.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Courriel</th>
|
||||
<td style="width:400px"><input type="text" name="Nom" maxlength="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire</th>
|
||||
<td><input type="text" name="Commentaire" maxlength="50"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Créer le compte email" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de compte. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
214
0.9.0/panel/module/email/recapitulatif.php
Executable file
214
0.9.0/panel/module/email/recapitulatif.php
Executable file
@@ -0,0 +1,214 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListCompte = $MySql->Select ("*", "email", "Utilisateur='".$_SESSION['Utilisateur']."' AND Type='compte'", "", "", "", "");
|
||||
$ListAlias = $MySql->Select ("*", "email", "Utilisateur='".$_SESSION['Utilisateur']."' AND Type='alias'", "", "", "", "");
|
||||
|
||||
$CountCompte = count($ListCompte);
|
||||
$CountAlias = count ($ListAlias);
|
||||
|
||||
if ( $ListCompte == FALSE ) { $CountCompte = 0; }
|
||||
if ( $ListAlias == FALSE ) { $CountAlias = 0; }
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de comptes et alias e-mail <a style="border: 0px;" href="http://doc.kelio.org/utiliser_la_messagerie"><img style="vertical-align:middle; border: 0px;" src="img/icons-panel/question.png" alt="Aide" title="Aide" /></a></h3>
|
||||
<p class="notice">
|
||||
Actuellement, vous avez <?php echo $CountCompte; ?><?php if ($_SESSION['Offre']['CompteEmail'] != '-1'):?>/<?php echo $_SESSION['Offre']['CompteEmail']?><?php endif; ?> compte(s) email et <?php echo $CountAlias; ?><?php if ($_SESSION['Offre']['AliasEmail'] != '-1'):?>/<?php echo $_SESSION['Offre']['AliasEmail']; ?><?php endif;?> alias.
|
||||
</p>
|
||||
<p>
|
||||
Passez votre souris sur le commentaire pour le voir en entier.<br /><br />
|
||||
Le statut "Création" signifie que votre compte/alias est en attente de création par notre robot. <br />
|
||||
Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de meme pour le statut "Suppression".
|
||||
</p>
|
||||
<h4>Liste des comptes email</h4>
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Mot de passe</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListCompte == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="6" style="text-align:center; font-weight: bold;">Il n\'y a aucun email pour le moment.</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountCompte; $i++)
|
||||
{
|
||||
|
||||
if ( $ListCompte[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListCompte[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListCompte[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/delete.png\" style=\"vertical-align: middle;\" alt=\"Suppresion\" /> Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"Erreur\" /> Erreur";
|
||||
}
|
||||
|
||||
if ( strlen($ListCompte[$i]["Commentaire"]) > 19 )
|
||||
{
|
||||
$Commentaire = substr ($ListCompte[$i]["Commentaire"], 0, 19)." ...";
|
||||
}
|
||||
elseif ( strlen($ListCompte[$i]["Commentaire"]) == 0 )
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListCompte[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
if ( strlen($ListCompte[$i]["Nom"]) > 16 )
|
||||
{
|
||||
$Nom = substr ($ListCompte[$i]["Nom"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Nom = $ListCompte[$i]["Nom"];
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td><span style="cursor:help;" title="'.$ListCompte[$i]["Nom"].'">'.$Nom.'</span></td>
|
||||
<td><span style="cursor:help;" title="'.date ("d-m-Y H:i:s",$ListCompte[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListCompte[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td>'.$ListCompte[$i]["Password"].'</td>
|
||||
<td>'.$Commentaire.'</td>
|
||||
</tr>';
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<h4>Liste des alias email</h4>
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Destination</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListAlias == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="6" style="text-align:center; font-weight: bold;">Il n\'y a aucun alias pour le moment.</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
for ($i=0; $i < $CountAlias; $i++)
|
||||
{
|
||||
|
||||
if ( $ListAlias[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListAlias[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListAlias[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/delete.png\" style=\"vertical-align: middle;\" alt=\"Suppresion\" /> Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"Erreur\" /> Erreur";
|
||||
}
|
||||
|
||||
if ( strlen($ListAlias[$i]["Nom"]) > 16 )
|
||||
{
|
||||
$Nom = substr ($ListAlias[$i]["Nom"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Nom = $ListAlias[$i]["Nom"];
|
||||
}
|
||||
|
||||
if ( strlen($ListAlias[$i]["Pointage"]) > 16 )
|
||||
{
|
||||
$Pointage = substr ($ListAlias[$i]["Pointage"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Pointage = $ListAlias[$i]["Pointage"];
|
||||
}
|
||||
|
||||
if ( strlen($ListAlias[$i]["Commentaire"]) > 16 )
|
||||
{
|
||||
$Commentaire = substr ($ListCompte[$i]["Commentaire"], 0, 16)." ...";
|
||||
}
|
||||
elseif ( strlen($ListAlias[$i]["Commentaire"]) == 0 )
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListAlias[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td><span style="cursor:help;" title="'.$ListAlias[$i]["Nom"].'">'.$Nom.'</span></td>
|
||||
<td><span style="cursor:help;" title="'.date ("d-m-Y H:i:s",$ListAlias[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListAlias[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td><span style="cursor:help;" title="'.$ListAlias[$i]["Pointage"].'">'.$Pointage.'</span></td>
|
||||
<td><span style="cursor:help;" title="'.$ListAlias[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
64
0.9.0/panel/module/email/suppression.php
Executable file
64
0.9.0/panel/module/email/suppression.php
Executable file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "email", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer un compte ou un alias</h3>
|
||||
<p>
|
||||
Avant de supprimer un compte email, assurez vous d'avoir fais une backup de toute vos données.
|
||||
</p>
|
||||
<p>
|
||||
Une fois la suppression effectuée, le compte/alias ne sera plus actif, et le serveur refusera alors tous courriels.
|
||||
</p>
|
||||
|
||||
|
||||
<div>
|
||||
<form action="execution-10.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Email à supprimer</th>
|
||||
<td>
|
||||
<select name="Nom">
|
||||
<option selected="selected" value="">Sélectionnez</option>
|
||||
<?php
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
}
|
||||
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo "<option value='".$ListTable[$i]["Nom"]."'>".$ListTable[$i]["Nom"]." (".$ListTable[$i]["Type"].")</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tapez "oui"</th>
|
||||
<td><input name="Confirmation" type="text" maxlength="3" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Supprimer l'email" />
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user