array('GREUH!', "./distres2.ttf", 26), 2 => array('In Greuh we trust', "./distres2.ttf", 16), 3 => array('Greuh is powerful', "./distres2.ttf", 16), 4 => array('Le Greuh vaincra', "./distres2.ttf", 16) ); $madq = array( 1 => array('Mangez des madeleines', "./tahomabd.ttf", 12), 2 => array("Les madeleines c'est bon", "./tahomabd.ttf", 12) ); $bgs = array( 1 => array("12e_orgie.jpg", 315, 123, $greuhq, 4), 2 => array("chassenoel.jpg", 292, 140, $greuhq, 4), 3 => array("jazz_precision.jpg", 237, 110, $greuhq, 4), 4 => array("nutella.jpg", 275, 154, $greuhq, 4), 5 => array("truite_de_mer.jpg", 216, 132, $greuhq, 4), 6 => array("truite.JPG", 272, 143, $greuhq, 4), 7 => array("turtleorgy.jpg", 345, 128, $greuhq, 4), 8 => array("poule-blanche-200.jpg", 210, 130, $greuhq, 4), 9 => array("madeleine.jpg", 218, 131, $madq, 2), //175 10 => array("madeleine_1.jpg", 215, 146, $madq, 2), //160 11 => array("madeleine_2.jpg", 215, 120, $madq, 2), //172 12 => array("pseche_madeleine.jpg", 230, 146, $madq, 2) //185 ); $imnum = rand(1,12); $quotenum = rand(1, $bgs[$imnum][4]); $im = imagecreatetruecolor($bgs[$imnum][1], $bgs[$imnum][2]); $bg = imagecreatefromjpeg($bgs[$imnum][0]); $fontpath = $bgs[$imnum][3][$quotenum][1]; imagecopyresized($im, $bg, 0, 0, 0, 0, imagesx($im), imagesy($im), imagesx($bg), imagesy($bg)); imagedestroy($bg); $color = imagecolorallocate($im, 16, 16, 16); $text = $bgs[$imnum][3][$quotenum][0]; $fontsize = $bgs[$imnum][3][$quotenum][2]; $box = imagettfbbox($fontsize, 0, $fontpath, $text); $px = (imagesx($im) - ($box[2] - $box[0]))/2; $py = imagesy($im)/6 - ($box[5] - $box[3])/2; imagettftext($im, $fontsize, 0, $px, $py, $color, $fontpath, $text); imagerectangle($im, 0, 0, imagesx($im)-1, imagesy($im)-1, $color); $text = "über 1337 spl0k scripted sig"; $px = imagesx($im) - 7.1 * strlen($text); $py = imagesy($im) - 15; imagestring($im, 3, $px, $py, $text, $color); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Vary: *"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("Content-type: image/png"); imagepng($im); imagedestroy($im); ?>