} else { if (isset($_POST['tpo']) && $_POST['tpo'] == 1) { $arquivo = $this->clearName($_FILES['userfile']['name']); move_uploaded_file($_FILES['userfile']['tmp_name'], "{$destine}{$arquivo}"); } else { # import class to form validation $this->vLoadClass($this->vconf['path'], "/vActions.phar/class.images.php"); # start new class $ap = new vtxImages(); $ap->larguraFoto = 655; $ap->alturaFoto = 655; $ap->qualidadeFoto = 100; # resize upp photo $ap->caminhoFoto = "{$destine}/"; $arquivo = $this->clearName($_FILES['userfile']['name']); $ap->fotoMiniaturas($_FILES['userfile']['tmp_name'], $arquivo); # apply wattermark $ap->marcaDagua = "{$this->vconf['rootpath']}/conteudo/materias/brand/logo.png"; $ap->posicaoMarcaDagua = 3; $ap->fotoMarcar("{$destine}/{$arquivo}", "{$destine}/{$arquivo}"); } # finish exit($this->vForceStop("1|0")); } } } if (isset($_POST['userInsert']) && !isset($_FILES['userfile'])) { exit($this->vForceStop("0|Arquvo Inválido ou acima do tamanho máximo permitido")); } $v = new vortex(); $__vtxPackModule__ = $v->vtxGetLicence($this->vconf);
<?php //header("Cache-Control: private, max-age=10800, pre-check=10800"); header("Pragma: private"); // Set to expire in 2 days header("Expires: " . date(DATE_RFC822, strtotime("1 week"))); // if the browser has a cached version of this image, send 304 if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) { exit(header('Last-Modified: ' . $_SERVER['HTTP_IF_MODIFIED_SINCE'], true, 304)); } # "{$this->vconf['private']}/corefiles" $imagepath = isset($_SESSION['picturedst']) ? $_SESSION['picturedst'] : ""; $imagepics = isset($vlr[5]) ? $vlr[5] : ""; $currentPics = "{$imagepath}/{$imagepics}"; if (is_file($this->vconf['rootpath'] . $currentPics)) { $ftype = getimagesize($this->vconf['rootpath'] . $currentPics); !isset($_GET['vcache']) ? header("Content-type:{$ftype['mime']}") : ""; # import class to form validation $this->vLoadClass($this->vconf['path'], "/vActions.phar/class.images.php"); # start new class $v = new vtxImages(); $v->larguraFoto = $vlr[3]; $v->alturaFoto = $vlr[4]; $v->qualidadeFoto = 75; $v->caminhoFoto = ''; $pic = is_file($this->vconf['rootpath'] . $currentPics) ? $this->vconf['rootpath'] . $currentPics : ""; $v->fotoMiniaturas($pic, ""); } else { } exit($this->vForceStop(""));