Beispiel #1
0
    $v = new forms();
    $v->classeErro = 'formPointer';
    $falha[] = $v->validatorField('passact', "Digite senha atual");
    if (!empty($_POST['pass'])) {
        $msgErro = $v->validatorEqual($_POST['pass'], $_POST['passt'], "Senhas não conferem");
        $falha[] = $v->validatorFieldSet('pass', $msgErro);
    }
    if (isset($_POST['pass']) && strlen($_POST['pass']) < 6) {
        $falha[] = $v->validatorFieldSet('pass', "+ Digite uma com 6 caracteres \n");
    }
    if (!empty($_POST['passact'])) {
        $pass = sha1(trim($_POST['passact']));
        $msgErro = $v->validatorTotalTable('vtx_system_access', "userkey='{$pass}' and id='{$enterID}' ", $this->adb) <= 0 ? "+ Senha atual invalida" : '';
        $falha[] = $v->validatorFieldSet('passact', $msgErro);
    }
    ### proced to register
    $falhas = implode("", $falha);
    $logs = strlen($falhas);
    if (strlen($falhas) > 0) {
        exit($this->vForceStop("0|" . nl2br($v->errorForm) . "|{$falhas}"));
    } else {
        $vtableF1[] = 'userkey';
        $vtablev1[] = sha1(trim($_POST['pass']));
        $inQuery = $v->tableSingleInsert('vtx_system_access', $vtableF1, $vtablev1, "id='" . $this->clearNumeric($_SESSION['vtxUser']) . "'");
        $this->vquery($inQuery);
        exit($this->vForceStop("1|Senha Atualizada com sucesso"));
    }
}
$enterID = $this->clearNumeric($_SESSION['vtxUser']);
$this->set("formact", '/load-user-pass,0,20,change.htm?r=' . time());
$this->vForceTPL($this->vconf['path'], "/vortex.phar/data/pass/");
Beispiel #2
0
    $inQuery .= $v->tableSingleInsert('vtx_system_videoview', $tableF, $tablev);
    $inQuery = str_replace("'oxid'", "@vid", $inQuery);
    $dsql = $this->vQuery($inQuery, "", 1);
    exit($this->vForceStop($this->adb->insert_id));
    exit($this->vForceStop(""));
}
if (isset($_GET['put']) && isset($_GET['video'])) {
    # import class to form validation
    $this->vLoadClass($this->vconf['path'], "/vActions.phar/class.forms.php");
    # start new class
    $v = new forms();
    $tableF[1] = 'video';
    $tableF[2] = 'start';
    $tableF[3] = 'end';
    $tablev[1] = $this->clearNumeric($_GET['serie']);
    $tablev[2] = $this->clearNumeric($_GET['watch']);
    $tablev[3] = time();
    $inQuery = $v->tableSingleInsert('vtx_system_videoview', $tableF, $tablev);
    $dsql = $this->vQuery($inQuery);
    exit($this->vForceStop($this->adb->insert_id));
}
##############################################################################################################
## 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);
$this->vForceTPL($this->vconf['path'], "/vortex.phar/enginer/help/");
$this->vForceStop("");
Beispiel #3
0
    } else {
        $tableF[1] = 'nome';
        $tableF[2] = 'nascimento';
        $tableF[3] = 'mail1';
        $tableF[5] = 'cadastro';
        $tableF[6] = 'cpf';
        $tableF[7] = 'mail2';
        $tableF[9] = 'sexo';
        $tablev[1] = $this->strPut($_POST['nome']);
        $tablev[2] = $this->clearNumeric($_POST['nascimento']);
        $tablev[3] = $this->strPut($_POST['email']);
        $tablev[5] = time();
        $tablev[6] = $this->clearNumeric($_POST['cpf']);
        $tablev[7] = $this->strPut($_POST['email2']);
        $tablev[9] = $this->clearNumeric($_POST['sexo']);
        $inQuery = $v->tableSingleInsert('vtx_system_access', $tableF, $tablev, "id='{$enterID}'");
        $dsql = $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"));
            }
        } else {
            $tuser = $_POST['userID'];
            exit($this->vForceStop("1|{$tuser}"));
        }
    }
}
##############################################################################################################