2) $iterations = 50; if (isset($_REQUEST['iterations'])) $iterations=intval($_REQUEST['iterations']); $the_block = blockchain::getBlockWithHash($block_hash); if ($the_block === FALSE) die(); $the_name = blockchain::hash2SpecialName($the_block->hash); if ($the_name == $the_block->hash) $the_name =''; $bandeau = 50; $width = GRAPH_WIDTH*8; $height = GRAPH_HEIGHT*8; $img_w = $width; $img_h = $height+(2*$bandeau); // création d'une image plus haute pour inclure bandeaux haut et bas $img = imagecreatetruecolor($img_w, $img_h); $x0=0; $y0=$bandeau; $type=2; if (count($the_block->tx) == 1) $type = 4; blockchain::DrawBlockHeaderFooter($the_block, $img, $bandeau); topisto_spline::DefaultDrawBlock($the_block, $img, $x0, $y0, $width, $height, $type); imagepng($img, BIG_PATH.'/spline/'.$the_block->hash.'.png'); imagedestroy($img); ?>