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


Viewing file:     casamentos_imprime.php (11.63 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
#############################################################################
    # Nome: noticia_cad.php                                                     #
    # System: Irpen                                                             #
    # Criado por: Rodrigo J Polette                                             #
    # Empresa: Netnigro                                                         #
    # E-mail: rodrigo@netnigro.com.br                                           #
    # Descrição: Formulário de cadastro da certidão de Nascimento               #
    # Histórico:                                                                #
    #    . 24/02/2010 - Rodrigo Justus Polette                                  #
    #            Criação da Página                                              #
    #############################################################################
    
    // Includes
    
include("../../config/config.php");
    include(
INCLUDES "conexaoBD.php");
    include(
INCLUDES "sentencas_sql.php");
    include(
INCLUDES "funcoes_uteis.php");
    include(
INCLUDES "valida_usuario.inc.php");
    include(
"funcoes_matricula.php");
    
header("Content-Type: text/html; charset=utf-8"); 
    
    
$id_casamento intval($_GET['id']);
    
    
$cod_oficio intval($_SESSION['cod_oficio']);
    
$sql "SELECT * FROM certidoes_casamentos WHERE CCA_RowID = $id_casamento AND CCA_Oficio_DR = $cod_oficio LIMIT 1";
    
$rs_dados $conexao->query($sql);
    
$dados $rs_dados->fetch_assoc();
    
    
//Checagem da matricula...
    
$matricula_certa CalculoMatricula_2($dados['CCA_TipoCasamento'],$dados['CCA_DataAto'],$dados['CCA_Livro'],$dados['CCA_Folha'],$dados['CCA_Termo']);
    if (
$dados['CCA_NumMatricula'] != $matricula_certa) {
        
$sql "UPDATE certidoes_casamentos SET CCA_NumMatricula = '$matricula_certa' WHERE CCA_RowID = $id_casamento LIMIT 1";
        
$conexao->query($sql);
        
$dados['CCA_NumMatricula'] = $matricula_certa;
    }
    
    
$sql "SELECT OFI_Descricao, OFI_Endereco, OFI_Bairro, OFI_Estado, OFI_Cidades_DR, OFI_MostraLogoSN, comarcas.CID_Descricao AS CID_Comarca, cidades.CID_Descricao, CON_Descricao "
          
."FROM oficios INNER JOIN cidades ON OFI_Cidades_DR = cidades.CID_RowID LEFT JOIN cidades comarcas ON comarcas.CID_RowID = cidades.CID_NivelSuperior_DR "
          
."INNER JOIN contatos ON OFI_RowID = CON_Oficios_DR AND CON_Tabeliao = 'S' AND CON_AtivoSN = 'S' WHERE OFI_RowID = $cod_oficio LIMIT 1";
    
$rs_dados_oficio $conexao->query($sql);
    
$dados_oficio $rs_dados_oficio->fetch_assoc();
    
/*Array (
    [OFI_Descricao] => REGISTRO CIVIL E REGISTRO DE TITULOS E DOCUMENTOS E PESSOAS JURIDICAS
    [OFI_Endereco] => AVENIDA IGUA�U,445 
    [OFI_Bairro] => 
    [OFI_Estado] => PR 
    [OFI_Cidades_DR] => 28 
    [CID_Descricao] => CAPITAO LEONIDAS MARQUES
    [CON_Descricao] => Tal nome...
)*/

/*Array(
    [CCA_RowID] => 1
    [CCA_Oficio_DR] => 18215
    [CCA_DataCadastro] => 2010-02-25
    [CCA_TipoCasamento] => 4
    [CCA_NumMatricula] => 08593601552009200036085007459850
    [CCA_NomesDatasNacionFiliacao] => Rodrigo Justus Polette, Kathland Wilker Alves
...
...
    [CCA_DataAto] => 2009-07-26
    [CCA_RegimeBens] => 01
    [CCA_NomesNovos] => Rodrigo Justus Polette e Kathland Wilker Alves Polette
    [CCA_ObsAverbacoes] => Observações e aberbações
)*/

$tipo_regime[1] = "Comunh&atilde;o universal de bens";
$tipo_regime[2] = "Comunh&atilde;o parcial de bens";
$tipo_regime[3] = "Separa&ccedil;&atilde;o de bens (por escritura)";
$tipo_regime[4] = "Separa&ccedil;&atilde;o Legal/Total de bens (por obrigatoriedade de lei)";
$tipo_regime[5] = "Participa&ccedil;&atilde;o final nos equestos";


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Certidão de Casamento</title>
<style type="text/css">
<!--
.borda {
    border:1px solid #000;
}
-->
</style>
</head>

<body>
<table width="90%" align="center" border="0" cellspacing="4" cellpadding="2">
      <tr>
              <td align="center" height="80">
            <?php if ($dados_oficio['OFI_MostraLogoSN'] == 'S') { ?>
                  <img src="../../imagens/brasaorep.gif" height="70">
            <?php ?>
            </td>
      </tr>     
    <tr>
        <td align="center">
            <?php if ($dados_oficio['OFI_MostraLogoSN'] == 'S') { ?>
            <font size="2" face="Verdana">REGISTRO CIVIL DE PESSOAS NATURAIS</font>
            <?php } else { echo ""; } ?>
            <br /><br />
            <font size="3" face="Verdana">CERTIDÃO DE CASAMENTO</font></td>
    </tr>
    <tr>
        <td align="center"><strong><font size="2" face="Verdana">NOME DOS NOIVOS:</font></strong></td>
    </tr>
    <tr>
        <td align="center"><strong><font size="2" face="Verdana"><?= utf8_encode($dados['CCA_NomesNovos']);?></font></strong></td>
    </tr>
    <tr>
        <td align="center"><strong><font size="2" face="Verdana">MATRÍCULA:</font></strong></td>
    </tr>
    <tr>
        <td align="center"><strong><font size="2" face="Verdana"><?= formataMatricula($dados['CCA_NumMatricula']);?></font></strong></td>
    </tr>
    <tr>
            <td><br /></td>
    </tr>
    <tr>
        <td align="left">
            <table width="100%" border="0" cellspacing="2" cellpadding="2">
                <tr>
                    <td><strong>
                    <font size="1" face="Verdana">
                        NOMES COMPLETOS DE SOLTEIRO, DATAS E LOCAIS DE NASCIMENTO, NACIONALIDADE E FILIAÇÃO DOS CONJUGES
                    </font></strong></td>
                </tr>
                <tr height="100">
                    <td align="left" class="borda" valign=top><font size="2" face="Verdana">
                        <?= stripslashes(utf8_encode($dados['CCA_NomesDatasNacionFiliacao']));?>
                    </font></td>
                </tr>
            </table>
         </td>
    </tr>
    <tr>
        <td align="left"><table width="100%" border="0" cellspacing="2" cellpadding="2">
            <tr>
                <td><strong><font size="1" face="Verdana">DATA DE REGISTRO POR EXTENSO</font></strong></td>
                <td width="1%"><strong><font size="2" face="Verdana">DIA</font></strong></td>
                <td width="1%"><strong><font size="2" face="Verdana">MES</font></strong></td>
                <td width="1%"><strong><font size="2" face="Verdana">ANO</font></strong></td>
            </tr>
            <?php
                
list($ano,$mes,$dia) = explode('-',$dados['CCA_DataAto']);
                
$data_extenso date('l, d \d\e F \d\e Y',mktime(0,0,0,$mes,$dia,$ano));
                
                
$de = array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
                
$para = array("Domingo","Segunda-Feira","Terça-Feira","Quarta-Feira","Quinta-Feira","Sexta-Feira","Sábado");
                
                
$de array_merge($de,    array("January","February","March","April","May","June","July","August","September","October","November","December"));
                
$para array_merge($para,array("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"));
                
                
$data_extenso str_replace($de,$para,$data_extenso);
            
?>
            <tr>
                <td align="left" class="borda"><font size="2" face="Verdana"><?= $data_extenso;?></font></td>
                <td align="center" class="borda"><font size="2" face="Verdana"><?= $dia;?></font></td>
                <td align="center" class="borda"><font size="2" face="Verdana"><?= $mes;?></font></td>
                <td align="center" class="borda"><font size="2" face="Verdana"><?= $ano;?></font></td>
            </tr>
        </table></td>
    </tr>
    <tr>
        <td align="left">
            <table width="100%" border="0" cellspacing="2" cellpadding="2">
                <tr>
                    <td nowrap="nowrap"><strong><font size="1" face="Verdana">REGIME DE BENS DO CASAMENTO</font></strong></td>
                </tr>
                <tr>
                    <td class="borda"><font size="2" face="Verdana">
                        <?= $tipo_regime[intval($dados['CCA_RegimeBens'])];?>
                    </font></td>
                </tr>
            </table>
           </td>
    </tr>
    <tr>
        <td align="left">
            <table width="100%" border="0" cellspacing="2" cellpadding="2">
                <tr>
                    <td nowrap="nowrap"><strong><font size="1" face="Verdana">
                        NOME QUE CADA UM DOS CONJUGES PASSOU A UTILIZAR (QUANDO HOVER ALTERAÇÃO)
                    </font></strong></td>
                    </tr>
                <tr height="100">
                    <td class="borda" valign=top><font size="2" face="Verdana">
                        <strong><?= utf8_encode($dados['CCA_NomesNovos']);?></strong>
                    </font></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="left"><table width="100%" border="0" cellspacing="2" cellpadding="2">
            <tr >
                <td nowrap="nowrap"><strong><font size="1" face="Verdana">
                    OBSERVAÇÕES AVERBAÇÕES</strong>
                </font></td>
                </tr>
            <tr height="100" valign="top">
                <td class="borda"><font size="2" face="Verdana" valign="top">
                       <?= stripslashes(utf8_encode($dados['CCA_ObsAverbacoes']));?>
                   </font></td>
                </tr>
        </table></td>
    </tr>
    <tr>
        <td align="left"><table width="100%" border="0" cellspacing="2" cellpadding="2">
            <tr>
                <td width="50%"><font size="2" face="Verdana">
                    <?= utf8_encode($dados_oficio['OFI_Descricao']);?>
                </font></td>
                <td valign="top"><font size="2" face="Verdana">
                    O conteúdo da certidão é verdadeiro. Dou fé.
                </font></td>
                </tr>
            <tr>
                <td><font size="2" face="Verdana">
                      <?= utf8_encode($dados_oficio['CON_Descricao']);?>
                  </font></td>
                <td valign="top"><font size="2" face="Verdana">
                Data e Local: 
               <?php
                    
echo utf8_encode(strtoupper($dados_oficio['CID_Descricao']).", ");
                    
setlocale(LC_TIME"pt_BR.utf8");
                    echo 
strftime("%d de %B de %Y"time());
                
?>
                
                </font></td>
            </tr>
            <?php
                
if ($dados_oficio['OFI_Estado']=="")
                    
$dados_oficio['OFI_Estado'] = "PR";
            
?>
            <tr>
                <td><font size="2" face="Verdana">
                    <?= utf8_encode(strtoupper($dados_oficio['CID_Descricao'] . "/" $dados_oficio['OFI_Estado']));?>
                </font></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td><strong><font size="2" face="Verdana">
                    Comarca:</strong> <?= utf8_encode(strtoupper($dados_oficio['CID_Comarca']));?>
                </font></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td><font size="2" face="Verdana">
                    <?= utf8_encode($dados_oficio['OFI_Endereco']);?>
                </font></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td align="center" style="border-top:1px solid #000;"><font size="2" face="Verdana">
                    Assinatura do Oficial ou Substituto
                </font></td>
            </tr>
        </table>
        </td>
    </tr>
</table>
</body>
</html>

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