site as $site) { foreach ($site->article as $article) { $tempname = md5($article->photo); $geturl = $article->photo; if (!is_readable($imagedir.$tempname.".png")) { @exec("/usr/bin/wget ".$geturl." -O ".$imagedir.$tempname.""); @exec("/usr/bin/convert -thumbnail x150 ".$imagedir.$tempname." -bordercolor gray90 -background black +polaroid -depth 8 -quality 80 ".$imagedir.$tempname.".png"); @unlink($imagedir.$tempname); @header("Location: ".$_SERVER["PHP_SELF"].""); @exit(); } $iz = @getimagesize($imagedir.$tempname.".png"); $izz = $iz["3"]; echo "link."\">title." : ".$article->title."\" alt=\"".$site->title." : ".$article->title."\" ".$izz." />\r\n"; } } } // Generate CSS for "hover" function so($imagedir) { foreach (glob($imagedir."*.png") as $numbers) { $i++; echo "p img#id_".$i." {\r\n"; echo "\tposition: relative;\r\n"; echo "\tborder: none;\r\n"; echo "\tmargin: -2em;\r\n"; echo "\tz-index: ".rand(0,500).";\r\n"; echo "}\r\n"; echo "p img#id_".$i.":hover {\r\n"; echo "\tz-index: 10000;\r\n"; echo "}\r\n"; } } ?> Fotovegg

Fotovegg