155 lines
5.7 KiB
PHP
Executable File
155 lines
5.7 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.
|
|
*/
|
|
?>
|
|
<h3>Contribuer au projet Kelio.org</h3>
|
|
<p>Contribuer au projet Kelio, permet sa survie.<br />
|
|
Vous pouvez contribuer de différente manières : dons, bouche a oreilles, affichage de notre publicité.
|
|
</p>
|
|
<h3>Faire un don</h3>
|
|
<img src="image/icons/tick.png" alt="info" style="padding-right: 5px;" /><strong>Opération 2009 - Kelio.org</strong><br />
|
|
Nous nous sommes fixé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é sur votre site</h3>
|
|
<small>Les publicités Adsense permettent de nous soutenir directement financiè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 à insérer sur votre site Internet :</strong><br/><br/>
|
|
<textarea cols=\"50\" rows=\"15\" >
|
|
<script type=\"text/javascript\"><!--
|
|
google_ad_client = \"pub-3624271267101348\";
|
|
google_ad_width = $width;
|
|
google_ad_height = $height;
|
|
google_ad_format = \"$format\";
|
|
google_ad_type = \"text_image\";
|
|
google_ad_channel = \"\";
|
|
google_color_border = \"$bordure\";
|
|
google_color_bg = \"$fond\";
|
|
google_color_link = \"$url\";
|
|
google_color_text = \"$texte\";
|
|
google_color_url = \"$url\";
|
|
//-->
|
|
</script>
|
|
<script type=\"text/javascript\"
|
|
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
|
|
</script>
|
|
</textarea>
|
|
<br/><br/>
|
|
<strong>Aperçu visuel de la publicité qui sera sur votre site Internet :</strong><br /><br />
|
|
<script type=\"text/javascript\"><!--
|
|
google_ad_client = \"pub-3624271267101348\";
|
|
google_ad_width = $width;
|
|
google_ad_height = $height;
|
|
google_ad_format = \"$format\";
|
|
google_ad_type = \"text_image\";
|
|
google_ad_channel = \"\";
|
|
google_color_border = \"$bordure\";
|
|
google_color_bg = \"$fond\";
|
|
google_color_link = \"$url\";
|
|
google_color_text = \"$texte\";
|
|
google_color_url = \"$url\";
|
|
//-->
|
|
</script>
|
|
<script type=\"text/javascript\"
|
|
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
|
|
</script>"
|
|
?>
|
|
<?php
|
|
if (isset($_POST["format"]))
|
|
{ echo "<div id='code'>$code</div>"; }
|
|
?>
|
|
<h3>Afficher nos banniè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ères</a></p>
|
|
<div id="JS_banniere" style="display: none">
|
|
<br/>
|
|
<strong>Bannière 1</strong> (468x60)<br/>
|
|
<img src="http://www.kelio.org/image/logo/banniere46860-1.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" />
|
|
<br/>Code à afficher<br/>
|
|
<textarea style="width: 468px; height: 60px; 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ées avec un hébergeur indépendant et alternatif" /> </a>
|
|
</textarea><br/>
|
|
<strong>Bannière 2</strong> (300x150)<br/>
|
|
<img src="http://www.kelio.org/image/logo/banniere300150.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" />
|
|
<br/>Code à afficher<br/>
|
|
<textarea style="width: 468px; height: 60px; 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ées avec un hébergeur indépendant et alternatif" /> </a>
|
|
</textarea>
|
|
</div>
|
|
<br/>
|