session_start(); $path = "files/"; if (!isset($_SESSION['imgpath']) && !isset($_POST['submit'])) { ?>
} else if (!isset($_SESSION['imgpath']) && isset($_POST['imgfile'])) { copy ($_FILES['imagefile']['tmp_name'], time().$_FILES['imagefile']['name']) or die ("Could not copy"); $_SESSION['imgpath'] = time().$_FILES['imagefile']['name']; } if (isset($_SESSION['imgpath'])) { if (!empty($_REQUEST['blur'])) { exec("convert " . $path . $_SESSION['imgpath'] . " -gaussian 0x" . $_REQUEST['blur'] . " " . $path . "new_" . $_SESSION['imgpath']); } echo ""; } ?>