!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/lib/registro/conflictos/   drwxr-xr-x
Free 14.72 GB of 61.93 GB (23.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     toba_registro_conflicto_constraints.php (1.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class toba_registro_conflicto_constraints extends toba_registro_conflicto
{
    
/**
     * @var toba_error_db
     */
    
protected $db_error;
    
    function  
__construct($registro$db_error)
    {
        
parent::__construct($registro);
        
$this->numero 2;
        
$this->db_error $db_error;
        
        
$sql_state $this->db_error->get_sqlstate();
        switch (
$sql_state) {
            case 
'db_23503':
                
$this->tipo toba_registro_conflicto::warning;
                break;
            default: 
                
$this->tipo toba_registro_conflicto::fatal;
        }
        
    }

    function 
get_descripcion()
    {
        
$tabla $this->registro->get_tabla();
        
$sql_conflictivo $this->registro->to_sql();
        
$sql_state $this->db_error->get_sqlstate();
        
$mensaje $this->db_error->get_mensaje_motor();

        
//Creo un mensaje orientativo sobre el conflicto
        
switch ($this->tipo) {
            case 
toba_registro_conflicto::warning$mensaje_final "[W:$this->numero] ";
                                             break;
            case 
toba_registro_conflicto::fatal$mensaje_final "[F:$this->numero] "
        }
        
        
$mensaje_final .= "Error de constraints en la tabla $tabla.\n";
        if (
$this->descripcion_componente !== '') {
            
$mensaje_final .= "Error en un componente {$this->descripcion_componente}.\n";        
        }        
        switch (
$sql_state) {        
            case 
'db_23503':
                
$mensaje_final .= " Existe un error de foreign keys, si cree que se trata de un problema de temporalidad ejecute el comando en modo transaccional. \n";
                break;
            case 
'db_26505':
                
$mensaje_final .= " Hay un error de unique keys. \n";
                break;
            default:    
                
$mensaje_final .= " El error no fue reconocido por el importador. \n";
        }        
        
        
$mensaje_final .= "Postgres dijo: $mensaje.\n El sql conflictivo es: $sql_conflictivo";        
        return 
$mensaje_final;
    }
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.822 ]--