!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/modelo/migraciones/   drwxr-xr-x
Free 14.93 GB of 61.93 GB (24.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     toba_migracion_2_6_0.php (1.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class toba_migracion_2_6_0 extends toba_migracion
{
    function 
instancia__cambios_estructura()
    {        
        
/**
        * Se evita el mensaje 'ERROR:  cannot ALTER TABLE "apex_objeto" because
        * it has pending trigger events' de postgres 8.3
        */
        
$sql 'SET CONSTRAINTS ALL IMMEDIATE;';
        
$this->elemento->get_db()->ejecutar($sql);
        
$sql = array();        
        
        
$sql[] = 'ALTER TABLE apex_objeto_ei_formulario_ef ADD COLUMN placeholder  TEXT  NULL;';
        
$sql[] = 'ALTER TABLE apex_objeto_ei_filtro_col ADD COLUMN placeholder  TEXT  NULL;';
        
$this->elemento->get_db()->ejecutar($sql);
        
        
$sql 'SET CONSTRAINTS ALL DEFERRED;';
        
$this->elemento->get_db()->ejecutar($sql);
    }
    
    
/**
     * Codifica las preguntas secretas en base_64 para que este a tono con la operacion de usuarios.
     */
    
function instancia__convertir_preguntas_secretas() 
    {
        
$sql 'SELECT cod_pregunta_secreta, pregunta, respuesta FROM apex_usuario_pregunta_secreta;';
        
$preguntas $this->elemento->get_db()->consultar($sql);
        if (! empty(
$preguntas)) {                                                    //Si se recuperaron preguntas/respuestas secretas
            
$sqls = array();
            foreach(
$preguntas as $dato) {
                
$id $dato['cod_pregunta_secreta'];
                
$preg base64_encode($dato['pregunta']);    
                
$resp base64_encode($dato['respuesta']);
            
                
$sqls[] = "UPDATE apex_usuario_pregunta_secreta SET pregunta = '$preg', respuesta = '$resp' WHERE cod_pregunta_secreta = '$id';";    //Encripto y armo la SQL correspondiente
            
}
            if (! empty(
$sqls)) {
                
$this->elemento->get_db()->ejecutar($sqls);
            }
        }        

    }        
}
?>

:: 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.8005 ]--