!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_led/php/lib/db/   drwxrwxr-x
Free 11.87 GB of 61.93 GB (19.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     toba_generador_sentencias_postgres7.php (1.42 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class toba_generador_sentencias_postgres7 implements toba_generador_sentencias
{
    function 
generar_sql_select($columnas$from $where = array())
    {
        
$sql "SELECT\n\t" implode(", \n\t"$columnas);
        
$sql .= "\nFROM\n\t" implode(", "$from);
        if(! empty(
$where)) {
            
$sql .= "\nWHERE";
            foreach (
$where as $clausula) {
                
$sql .= "\n\t$clausula AND";
            }
            
$sql substr($sql0, -4);     //Se saca el ultimo AND
        
}        
        return 
$sql;
    }
    
    function 
generar_sql_insert($tabla$columnas$valores)
    {        
        
$sql "INSERT INTO " $tabla .
                    
" ( " implode(", "$columnas) . " ) ".
                    
"\n VALUES (" implode(", "$valores) . ");";
        return 
$sql;
    }

    function 
generar_sql_update($tabla$columnas$where
    {
        
$sql "UPDATE " $tabla "\nSET ".
        
implode(",\n\t",$set) .
        
"\nWHERE " implode("\n\tAND "$where ) .";";
        return 
$sql;
    }
    
    function 
generar_sql_delete($tabla$where
    {
        
$sql "DELETE FROM " $tabla .
            
" WHERE " implode(" AND ",$where ) .";";
        return 
$sql;
    }
    
    static function 
generar_clausula_where($columnas$tabla_alias)
    {        
        
$clausula = array();
        foreach(
$columnas as $columna => $valor) {
            if (isset(
$valor)) {
                if (
is_bool($valor)) {
                    
$valor = ($valor) ? 'true' 'false';
                }
                
$valor self::quote($valor);
                
$clausula[] = "$tabla_alias"$columna = $valor";
            } else {
                
$clausula[] = "$tabla_alias"$columna IS NULL";
            }
        }
        return 
$clausula;
    }
}
?>

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