[aha] yes we spam

xDxD xdxd.vs.xdxd at gmail.com
Fri Apr 11 20:29:35 CEST 2008


io/cose re-interpretato per immagini

http://www.artisopensource.net/hacks/elections.php

:)

-- code --

<?php


$content = 
file_get_contents("http://www.partitodemocratico2008.org/risposte.php");

$results = 
preg_match_all("/<div.*cbody.*>.*<p>(.*)<\/p.*>.*<\/div.*>/ismU",$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("/&gt;&lt;img 
src=&quot;(.*)&quot;.*\/&gt;/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>");
            }
    }
   
}

?>





More information about the Aha mailing list