error_reporting(0); include("functions.php"); $h1 = "DJ Mike's Image Maker 2"; $h2 = "Implode"; ##### Start implode if ( $_GET[implode] ) { $implode = trim($_GET[implode]); ##### Validate implode if ( preg_match( "#[^0-9\-\.]#", "$implode", $x) ) { $_SESSION[error] = "Enter numbers only"; header("location:$self"); } ############# $image = new Imagick($_SESSION[path]); foreach ($image as $frame) { $frame->implodeImage($implode); } $format = strtolower( $image->getimageformat() ); $path = "temp/$ID.$_SESSION[views].$format"; $frames = $image->getNumberImages(); if ( $frames > 1) { $image->writeImages("$path", TRUE); } else { $image->writeImage("$path"); } # save settings $_SESSION[path] = $path; $_SESSION[implode] = $implode; header("Location: display.php"); exit; } ######### end swirl include("top.php"); ?>