# 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); # check current month dir exists $month = date("Y-m"); $pathFolder = isset($_SESSION['userDIR']) ? $_SESSION['userDIR'] : "/conteudo/{$__vtxPackModule__}/publico/upps/"; $pathFolder .= $month; $typeAccept = isset($_GET['type']) && $_GET['type'] == 1 ? "gif|png|jpg|doc|xls|txt|pdf|zip|bmp" : "gif|png|jpg"; $this->set("dir", isset($_GET['dir']) ? $_GET['dir'] : $pathFolder); $this->set("hd", isset($_GET['type']) && $_GET['type'] == 1 ? "" : 1, true); $this->set("tpo", isset($_GET['type']) && $_GET['type'] == 1 ? 1 : 0, true); $this->set("types", str_replace("|", ", ", $typeAccept)); $this->set("uppTypes", $typeAccept); $this->vForceTPL($this->vconf['path'], "/vortex.phar/files/mkfile/"); exit($this->vForceStop("carga"));
<?php ############################################################################################################## ## get user data ############################################################################################################## $helper = isset($_GET['h']) ? str_replace(",", "/", $_GET['h']) : ""; $helpFile = "/{$helper}/tpl/base.htm"; $helpConf = "/{$helper}/tpl/conf.htm"; is_file($this->vconf['source'] . $helpFile) ? $this->vInclude($helpFile, "helpinc", $this->vconf['source']) : $this->set("helpinc", "", true); is_file($this->vconf['source'] . $helpConf) ? $this->vInclude($helpConf, "helpconf", $this->vconf['source']) : $this->set("helpconf", "", true); # load default help $v = new vortex(); $__vtxPackValue__ = $v->vtxGetLicence($this->vconf, 1); @eval($__vtxPackValue__); # set sys params $this->set("vsysVersion", $____vlicsversion); $this->set("vsysMode", $____vlicsmodules); $this->set("vsysID", $____vlicsmodpack); $this->set("vsysContract", $____vlicsconcode); $this->set("vsysCompany", $____vlicscompany); $this->set("vsysCNPJ", $____vlicscodcomp); $this->set("vsysAddress", !empty($____vlicsaddres2) ? "{$____vlicsaddres1} <br /> {$____vlicsaddres2} " : $____vlicsaddres1); $this->set("vsyDomain", implode("<br>", $____vlicsdomains)); $this->set("vsyExpire", date('d/m/Y', $____vlicvalidate)); $this->set("vsyActivate", date('d/m/Y', $____vlicactivate)); $keyLicense = "phar://{$this->vconf['private']}/coredist/{$this->vconf['syspack']}/{$this->vconf['vtxlics']}"; $keyLicense = file_get_contents($keyLicense); $this->set("vsysKey", rtrim($keyLicense)); $this->vForceTPL($this->vconf['path'], "/vortex.phar/enginer/help/"); $this->vForceStop("");