R: [aha] yes we spam
Luigi Pagliarini
luigi at artificialia.com
Fri Apr 11 21:28:20 CEST 2008
fico!
> -----Messaggio originale-----
> Da: aha-bounces at ecn.org [mailto:aha-bounces at ecn.org] Per conto di xDxD
> Inviato: venerdì 11 aprile 2008 20.30
> A: List on artistic activism and net culture
> Oggetto: Re: [aha] yes we spam
>
> io/cose re-interpretato per immagini
>
> http://www.artisopensource.net/hacks/elections.php
>
> :)
>
> -- code --
>
> <?php
>
>
> $content =
> file_get_contents("http://www.partitodemocratico2008.org/rispo
> ste.php");
>
> $results =
> preg_match_all("/<div.*cbody.*>.*<p>(.*)<\/p.*>.*<\/div.*>/ism
> U",$content,$risi);
>
>
> for($i=0; $i<count($risi[1]); $i++){
>
> $x = rand(0,2000);
> $y = rand(0,2000);
> $w = rand(50,500);
> $h = rand(50,500);
> $fsize = rand(10,100);
> $testo = $risi[1][$i];
> $r = rand(0,255);
> $g = rand(0,255);
> $b = rand(0,255);
>
> echo("<div style='color: rgb(" . $r . "," . $g . "," . $b .
> ");width: " . $w . "px;height: " . $h .
> "px;background:transparent;font:
> " . $fsize . "px sans-serif;position: absolute;top:" . $y .
> "px;left:" .
> $x . "px;text-align: center;'>" . $testo . "</div>");
>
> $words = preg_split("/\s+/ismU",$testo);
> for($j=0; $j<count($words[0]); $j++){
> $w = $words[0][$j];
> $rssfoto =
> file_get_contents("http://api.flickr.com/services/feeds/photos
> _public.gne?tags="
> . $w);
> $rfoto = preg_match_all("/><img
> src="(.*)".*\/>/ismU",$rssfoto,$risfoto);
> for($k=0; $k<count($risfoto[1]); $k++){
> $x1 = rand(0,2000);
> $y1 = rand(0,2000);
> $testo1 = $risfoto[1][$k];
>
>
> echo("<div style='background:rgb(" . $r . ","
> . $g . ","
> . $b . ");padding: 5px 5px 5px 5px;position: absolute;top:" . $y1 .
> "px;left:" . $x1 . "px'><img src='" . $testo1 . "'></div>");
> }
> }
>
> }
>
> ?>
>
>
>
> _______________________________________________
> Aha mailing list
> Aha at ecn.org
> http://www.ecn.org/mailman/listinfo/aha
>
More information about the Aha
mailing list