Migration
This commit is contained in:
79
0.9.0/panel/module/divers/bridage.php
Executable file
79
0.9.0/panel/module/divers/bridage.php
Executable file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListBDD = $MySql->Select("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
|
||||
?>
|
||||
<h3>Bridage de vos sites Internet</h3>
|
||||
<p>
|
||||
Afin de favoriser les gens qui affichent notre publicité sur leurs sites, un bridage est imposé à tous les sites, sauf ceux dont notre pub est affichée.<br />
|
||||
Une limite est fixée uniquement pour le télechargement de fichiers, celle-ci est de 50Ko/sec pour tout le site. <br />
|
||||
Cependant, si notre publicité est affichée au moins sur l'accueil, le site sera totalement débridé et pourra ainsi bénéficier jusqu'à 12Mo/sec de bande passante (dans les limites de la charte).<br />
|
||||
Pour afficher notre publicité, veuillez en générer-une sur la page <a href="Page-Divers-Contribuer.html">"Nous soutenir"</a>. (publicités adsense seulement).<br />
|
||||
Notre robot passe une fois toutes les 24 heures, ne vous étonnez donc pas que le bridage soit toujours actif immédiatement après l'affichage de la publicité.<br />
|
||||
Notez que <?php echo $_SESSION['Utilisateur']; ?>.kelio.org ne peut être débridé.<br /><br />
|
||||
Ci-dessous un récapitulatif de tous les bridages sur vos domaines.
|
||||
</p><br />
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Domaine</th>
|
||||
<th>Bridage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$TotalBDD = count($ListBDD);
|
||||
|
||||
if ( $ListBDD == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: center; font-weight: bold;">Vous n\'avez aucun domaine actif</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $TotalBDD; $i++)
|
||||
{
|
||||
if ( $ListBDD[$i]["Bridage"] == "Oui" )
|
||||
{
|
||||
$Bridage = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"bridé\" /> bridé";
|
||||
$Couleur = "#FF3333";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Bridage = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"débridé\" /> débridé";
|
||||
$Couleur = "#009933";
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$ListBDD[$i]["Adresse"].'</td>
|
||||
<td style="color: '.$Couleur.';">'.$Bridage.'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user