94 lines
3.2 KiB
Text
94 lines
3.2 KiB
Text
<table width=100% align=left>
|
|
<tr valign=top align=left>
|
|
<td width=70>
|
|
<div id="sideBar">
|
|
<div id="masterdiv">
|
|
|
|
<div class="menutitle" onclick="SwitchMenu('sub1')">Foto</div>
|
|
<span class="submenu" id="sub1">
|
|
- <a href="index.php">Home Page</a><br>
|
|
- <a href="gallery.php">Foto</a><br>
|
|
- <a href="gallery-archivio.php">Archivio Foto</a><br>
|
|
- <a href="privacy.php">Privacy</a><br>
|
|
- <a href="considerazioni.php">Avvertenze</a><br>
|
|
- <a href="form.php">Password</a><br>
|
|
</span>
|
|
|
|
<div class="menutitle" onclick="SwitchMenu('sub2')">Riviste</div>
|
|
<span class="submenu" id="sub2">
|
|
- <a href="riv-atletica.php">Atl. Img</a><br>
|
|
- <a href="riv-spiridon.php">Spiridon</a><br>
|
|
</span>
|
|
|
|
<div class="menutitle" onclick="SwitchMenu('sub3')">Forum</div>
|
|
<span class="submenu" id="sub3">
|
|
- <a href="http://bb.pierogiacomelli.com/viewforum.php?f=2">News</a><br>
|
|
- <a href="http://bb.pierogiacomelli.com">Forum</a><br>
|
|
- <a href="http://forum.pierogiacomelli.com">Vecchio Forum</a><br>
|
|
- <a href="http://www.pierogiacomelli.com/chat">Chat</a><br>
|
|
</span>
|
|
|
|
<div class="menutitle" onclick="SwitchMenu('sub4')">Varie</div>
|
|
<span class="submenu" id="sub4">
|
|
- <a href="http://files.pierogiacomelli.com/">Files</a><br>
|
|
- <a href="http://video.pierogiacomelli.com/">Video</a><br>
|
|
- <a href="csv.php">CSV</a><br>
|
|
- <a href="/stats">Statistiche</a><br>
|
|
- <a href="graphs.html">Grafici</a><br>
|
|
- <a href="links.php">Links</a><br>
|
|
</span>
|
|
|
|
</div>
|
|
<p>
|
|
<p><b> Links consigliati:</b><p>
|
|
|
|
<a href="http://www.opera.com/" title="Download Opera" >
|
|
<img src="http://promote.opera.com/small/opera94x15.gif" width="94" height="15" alt="Opera" /></a><p>
|
|
|
|
<a href="http://www.mozilla.org/products/firefox/" title="Get Firefox - Web Browsing Redefined">
|
|
<img src="http://www.mozilla.org/products/firefox/buttons/firefox_pixel.png" width="94" height="15" border="0" alt="Get Firefox"></a>
|
|
|
|
|
|
<p><b> Sponsors:</b><br>
|
|
<?php
|
|
|
|
### Funzione di random degli sponsors ###
|
|
|
|
$www_home="/home/web/www.pierogiacomelli.com/www/";
|
|
$filespath="/home/web/www.pierogiacomelli.com/www/sponsors";
|
|
$descfile="/home/web/www.pierogiacomelli.com/www/sponsors/links.txt";
|
|
|
|
chdir("$filespath");
|
|
|
|
if ($handle = opendir('.')) {
|
|
while (false !== ($entry = readdir($handle))) {
|
|
if (!is_dir($entry) && $entry != "$descfile" && ( substr($entry, -3) == "jpg" || substr($entry, -3) == "gif" || substr($entry, -3) == "png" )) {
|
|
$sponsors[] = $entry;
|
|
}
|
|
}
|
|
closedir($handle);
|
|
}
|
|
|
|
# Read a desc. file if any
|
|
if (file_exists($descfile)) {
|
|
$fp = fopen ("$descfile", "r");
|
|
while ($data = fgetcsv ($fp, 1000, ";")) {
|
|
$desc[$data[0]] = $data[1];
|
|
}
|
|
}
|
|
|
|
if (count($sponsors) != 0){
|
|
print "<p>";
|
|
srand((float)microtime() * 1000000);
|
|
shuffle($sponsors);
|
|
while (list($key, $sponsor) = each($sponsors)) {
|
|
print " <a href=$desc[$sponsor]><img width=120 border=0 src=http://www.pierogiacomelli.com/sponsors/$sponsor></a><p>";
|
|
}
|
|
}
|
|
|
|
|
|
#### End
|
|
?>
|
|
|
|
</div>
|
|
</td><td>
|