# 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("");
<?php if (!isset($vlr[3]) || !isset($_SESSION['vtxGrupo']) || !is_numeric($_SESSION['vtxGrupo'])) { exit($this->vForceStop("Não foi possivel carregar seus privilegios. Contate o suporte técnico")); } # check user caches $this->cached = "{$this->vconf['private']}/corecache/{$vlr[3]}/usrgroup/{$_SESSION['vtxGrupo']}"; !isset($_GET['vcache']) ? $this->setCacheParams(1, 60, 1) : ""; $this->vCacheDetect(); # get user privers $v = new vortex(); $__vtxPackModule__ = $v->vtxGetLicence($this->vconf); $spack = "{$this->vconf['source']}/{$__vtxPackModule__}"; $v->vtxSystem = $__vtxPackModule__; $vtkey = $this->clearNumeric($_SESSION['vtxUser']); # $usrGPR $inQuery = "SELECT t2.module,t2.plugin,t2.app,t2.param,t3.nome,t2.action "; $inQuery .= "FROM vtx_system_prive AS t2 "; $inQuery .= "LEFT JOIN vtx_system_group AS t1 ON t2.grupo=t1.id "; $inQuery .= "LEFT JOIN vtx_system_access AS t3 ON t3.grupo = t1.id "; $inQuery .= "WHERE t3.id='{$vtkey}' "; #$inQuery .= "AND t2.action='vis' "; #$inQuery .= "GROUP BY t2.app"; $dquery = $this->adb->query($inQuery); # if error on query if ($this->adb->error) { try { throw new Exception("MySQL error {$this->adb->error} ", $this->adb->errno); } catch (Exception $e) { exit($this->vForceStop("0|Error No: " . $e->getCode() . " - " . $e->getMessage() . "|var error = true")); }
<?php #if( !isset($_SESSION['vuserGrants']) || !isset($_SESSION['VTX_MOD_ALARM']) ): $v = new vortex(); $__vtxPackModule__ = $v->vtxGetLicence($this->vconf); $spack = "{$this->vconf['source']}/{$__vtxPackModule__}"; $v->vtxSystem = $__vtxPackModule__; $vtkey = $this->clearNumeric($_SESSION['vtxUser']); # $usrGPR $inQuery = "SELECT t2.module,t2.plugin,t2.app,t2.param,t3.nome,t2.action "; $inQuery .= "FROM vtx_system_prive AS t2 "; $inQuery .= "LEFT JOIN vtx_system_group AS t1 ON t2.grupo=t1.id "; $inQuery .= "LEFT JOIN vtx_system_access AS t3 ON t3.grupo = t1.id "; $inQuery .= "WHERE t3.id='{$vtkey}' "; $dquery = $this->adb->query($inQuery); # if error on query if ($this->adb->error) { try { throw new Exception("MySQL error {$this->adb->error} ", $this->adb->errno); } catch (Exception $e) { exit($this->vForceStop("0|Error No: " . $e->getCode() . " - " . $e->getMessage() . "|var error = true")); } } $uprives = array(); if ($dquery->num_rows > 0) { $w = 0; while ($dds = $dquery->fetch_array(MYSQLI_ASSOC)) { if ($w == 0) { $xname = $this->strPrint($dds['nome']); $_SESSION['userName'] = $xname; }
$this->set("siteBase1", "{$_SERVER['HTTP_HOST']}"); # get user connections $this->set("userconect", gethostbyaddr($currentconnection)); $this->set("userip", $currentconnection); $this->set("userget", 1); //exit( header("location:")); $this->vInclude("/vortex.phar/xuser/access/tpl/base.htm", "incMidiax", $this->vconf['path']); $this->vForcePlugin($this->vconf['path'], '/xuser/login/'); } if (isset($_SERVER['REQUEST_URI']) && strlen($_SERVER['REQUEST_URI']) > 9 && !isset($vlr[1]) && !isset($vlr[2])) { exit($this->vForceStop("<h3 class='vtxAlerts vtxSysBreak toScreen'> Vortex Error 0540 :: Requisição inválida!</h3> ")); } # #################################################################### # load users plugins # #################################################################### $v = new vortex(); $__vtxPackModule__ = $v->vtxGetLicence($this->vconf); # #################################################################### # load users plugins # #################################################################### $spack = "{$this->vconf['source']}/{$__vtxPackModule__}"; $v->vtxSystem = $__vtxPackModule__; $vtxUserLicense = $v->getLicenceActive(); #$vtxUserLicense = isset($_GET['d']) ? $vtxUserLicense - $_GET['d'] :$vtxUserLicense; if ($vtxUserLicense <= 30 && $vtxUserLicense > 15) { $vtxLicxsNotify = "Vortex ACM 2.0 :: Atenção!"; $vtxLicxsAlerts = "Sua Licença para uso do Vortex ACM 2.0 expira dentro de {$vtxUserLicense} dias. <a href='' class='toBold'>Renovar Agora</a> "; } elseif ($vtxUserLicense < 15 && $vtxUserLicense > 7) { $vtxLicxsNotify = "Vortex ACM 2.0 :: Muito Importante!"; $vtxLicxsAlerts = "Sua Licença para uso do Vortex ACM 2.0 expira dentro de {$vtxUserLicense} dias. <a href='' class='toBold'>Renovar Agora</a> "; } elseif ($vtxUserLicense == 7) {
header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); # check user access login if (count($_POST) <= 0 && (!isset($_SESSION['vtxUser']) || !isset($_SESSION['vtxEnter']) || $_SESSION['vtxEnter'] < time())) { exit($this->vForceStop("<script>\$(this).vtxRemove(); setPageNavigation('/inside-access,0,200,login.htm');</script>")); # set base form //$this->vInclude("/vortex.phar/xuser/access/tpl/base.htm","incMidiax",$this->vconf['path']); # force layout display //$this->vForcePlugin($this->vconf['path'],'/data/login/'); } elseif (count($_POST) > 0 && (!isset($_SESSION['vtxUser']) || !isset($_SESSION['vtxEnter']) || $_SESSION['vtxEnter'] < time() - 60 * 60)) { exit($this->vForceStop("199991|Sessão expirada. Faça o login novamente")); } else { } # get work dir $v = new vortex(); $__vtxPackModule__ = $v->vtxGetLicence($this->vconf); $vtxUserLicense = $v->getLicenceActive(); # user license as enabled ?? if (isset($vtxUserLicense) && $vtxUserLicense <= 0) { exit($this->vForceStop("<h3 class='vtxAlerts vtxSysBreak toScreen'> 0700 :: Licença expirada. Impossível carregar e utilizar os plugins!</h3> ")); } $this->vtxSkey = $v->vGetPrivateKey(); $priv = isset($vlr) && isset($vlr[7]) ? $v->vPriveCheck($vlr, $vlr[7], 1) : ""; # set current page $vUserURICall = explode("?", $_SERVER['REQUEST_URI']); # get current url $serverRequestType = $__geturl__ = isset($vUserURICall[0]) ? $vUserURICall[0] : $vUserURICall; # check privers if (!isset($_SESSION['vuserGrants'][$vlr[4]][$vlr[5]][$vlr[6]][$vlr[7]]) && $_SESSION['vtxType'] != 1) { exit($this->vForceStop("<h3 class='vtxAlerts vtxSysImportant toScreen'> 0531 :: Sem permissão para acesso a este modulo!</h3> "));