Files
keliopanel-v1/0.7.1/panel/module/divers/bridage.php
2016-02-21 01:33:05 +01:00

74 lines
2.9 KiB
PHP
Executable File

<?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é sur leurs sites, un bridage est imposé à tous les sites, sauf ceux dont notre pub est affichée.<br />
Une limite est fixée uniquement pour le télechargement de fichiers, celle-ci est de 50Ko/sec pour tout le site. <br />
Cependant, si notre publicité est affichée au moins sur l'accueil, le site sera totalement débridé et pourra ainsi bénéficier jusqu'à 12Mo/sec de bande passante (dans les limites de la charte).<br />
Pour afficher notre publicité, veuillez en générer-une sur la page <a href="Page-Divers-Contribuer.html">"Nous soutenir"</a>. (publicités adsense seulement).<br />
Notre robot passe une fois toutes les 24 heures, ne vous étonnez donc pas que le bridage soit toujours actif immédiatement après l'affichage de la publicité.<br />
Notez que <?php echo $_SESSION['Utilisateur']; ?>.kelio.org ne peut être débridé.<br /><br />
Ci-dessous un récapitulatif de tous les bridages sur vos domaines.</p><br />
<div 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é";
$Couleur = "#FF3333";
}
else
{
$Bridage = "débridé";
$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>