Progeny
24-11-2001, 16:46
Ecco a grande richiesta :razz: la mia ultima produzione >:)
<?php
/*
Happy Humor v0.3
Questo e' un script free, potete modifcarlo a
seconda delle vostre esigenze senza chiedere alcuna
autorizzazione all'autore, a condizione, che venga
lasciato il banner pubblicitario.
Progeny
*/
// Come avrete di certo capito, il file happy.txt
// e' il file che contiene le barzellette,
// una per ogni singola riga
$filename = "happy.txt";
$fd = fopen($filename, "r") or die("Impossibile aprire il file.");
$lines = file($filename);
fclose($fd);
$random = rand(1, count($lines));
echo "<html>";
echo "<head>";
echo "<title>Happy Humor - by Progeny</title>";
echo "</head>";
echo "<body>";
echo "<p align="center"><a href="http://scambiobanner.aruba.it/linkxpro/linkxpro.asp?Task=Click&Mode=HTML&MemID=4976&SzID= 1&PageID=45620" target="_new"><img src="http://scambiobanner.aruba.it/linkxpro/linkxpro.asp?Task=Get&Mode=HTML&MemID=4976&SzID=1& PageID=45620" width="468" height="60" border="0"></a></p>";
echo "<font face="Verdana" size="-1">$lines[$random]";
echo "<font face="Verdana" size="-1">NetParty Virtual Community: http://www.net-party.it - http://www.net-party.it/chat";
echo "</body>";
echo "</html>";
?>
<?php
/*
Happy Humor v0.3
Questo e' un script free, potete modifcarlo a
seconda delle vostre esigenze senza chiedere alcuna
autorizzazione all'autore, a condizione, che venga
lasciato il banner pubblicitario.
Progeny
*/
// Come avrete di certo capito, il file happy.txt
// e' il file che contiene le barzellette,
// una per ogni singola riga
$filename = "happy.txt";
$fd = fopen($filename, "r") or die("Impossibile aprire il file.");
$lines = file($filename);
fclose($fd);
$random = rand(1, count($lines));
echo "<html>";
echo "<head>";
echo "<title>Happy Humor - by Progeny</title>";
echo "</head>";
echo "<body>";
echo "<p align="center"><a href="http://scambiobanner.aruba.it/linkxpro/linkxpro.asp?Task=Click&Mode=HTML&MemID=4976&SzID= 1&PageID=45620" target="_new"><img src="http://scambiobanner.aruba.it/linkxpro/linkxpro.asp?Task=Get&Mode=HTML&MemID=4976&SzID=1& PageID=45620" width="468" height="60" border="0"></a></p>";
echo "<font face="Verdana" size="-1">$lines[$random]";
echo "<font face="Verdana" size="-1">NetParty Virtual Community: http://www.net-party.it - http://www.net-party.it/chat";
echo "</body>";
echo "</html>";
?>