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


Viewing file:     boleto_importar_arquivo_pagto.php (8.37 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
    
//http://www.w3schools.com/PHP/php_file_upload.asp
    
    #############################################################################
    # Nome: contato.php                                                         #
    # System: Irpen                                                             #
    # Criado por: Breno Henrique Vivarelli                                      #
    # Empresa: Netnigro                                                         #
    # E-mail: breno@netnigro.com.br                                             #
    # Descrição: Contatos dos associados com o IRPEN                            #
    # Histórico:                                                                #
    #    . 08/07/2008 - Breno Henrique Vivarelli                                #
    #            Criação da Página                                              # 
    #############################################################################  
    
    // Includes
    
include("../../config/config.php");
    include(
INCLUDES "inc_Conexao.php");
    include(
INCLUDES "sentencas_sql.php");
    include(
INCLUDES "funcoes_uteis.php");
    include(
INCLUDES "valida_usuario.inc.php");

    if (
$_FILES["arquivo_banco"]["name"])
    {
        
$arquivo $_FILES["arquivo_banco"]["name"];
        
        
$atualizado 'N';
        
$coerci false;
        
        
$caminho "/home/httpd/htdocs/irpen1br/admin/boletos/arquivos_importados/";
        
//$caminho = "/home/httpd/htdocs/irpen1br/desenvolvimento/admin/boletos/arquivos_importados/";
        
move_uploaded_file($_FILES["arquivo_banco"]["tmp_name"], $caminho $_FILES["arquivo_banco"]["name"]);
        

        
$fp fopen($caminho $arquivo,"r"); 
        if (
feof($fp))
        {
            
$msg "Conteudo do Arquivo inválido!";
        }
        else
        {
            
$erro 0;
            while (!
feof($fp))
            {
                
$linha fgets($fp);
                
$linha trim($linha);
                
$ID_Registro substr($linha,0,1);
                
                if (
$ID_Registro==1)
                {
                    
$num_contrato   substr($linha,50,5);
                    
$num_contrato   intval($num_contrato);
                    
                    
$data_pagamento substr($linha,328,8);
                    
                    
$valor_pago     substr($linha,253,13);
                    
$valor_pago     intval($valor_pago);
                    
$valor_pago        $valor_pago 100;
                    
                    
$motivo            substr($linha,318,2);
                    
                    
$ano substr($data_pagamento,0,4);
                    
$mes substr($data_pagamento,4,2);
                    
$dia substr($data_pagamento,6,2);
                    
                    
$data_pagamento "$ano-$mes-$dia";
                    
//date ("Y-m-d", mktime (0,0,0,substr($data_pagamento,2,2), substr($data_pagamento,0,2), substr($data_pagamento,4,2)));
                    
                    //echo $num_contrato.'<br />';
                    
                    
if ($num_contrato 1000) {
                    
                        
$mensagem 'Boletos Processados com Sucesso.';
                    
                        if (
$motivo == "B3")
                        {
                            
$sql " UPDATE irp_servicos_boletos "
                                 
" SET SVB_ValorPago = '$valor_pago', "
                                 
" SVB_DataPagamento = '$data_pagamento', "
                                 
" SVB_PagoSN = 'S' "
                                 
" WHERE SVB_RowID = '$num_contrato' "
                            
mysql_query($sql);
                            
                            
$sql2 "
                                UPDATE contatos
                                     INNER JOIN irp_servicos_mensalidades ON SRM_Oficio_DR = CON_Oficios_DR
                                     INNER JOIN irp_servicos_boletos ON SVB_Mensalidade_DR = SRM_RowID
                                SET CON_AssociadoSN = 'S'
                                WHERE SVB_RowID = 
$num_contrato
                            "
;
                            
mysql_query($sql2);
                        }
                        
                        
$atualizado 'S';
                    
                    } else {
                        
$coerci true;
                        
$msg 'Atenção! Esse arquivo contém pagamentos de inscrições do COERCI.';
                    }
                }
            }
        }
        
fclose($fp);
    }    
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <?php
        
if ($atualizado == 'S')
        {
?>
            <script language="javascript">
                alert("<?= $mensagem?>");
            </script>
        <?php }
    
?>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Description" content="IRPEN">
    <meta name="Keywords" content="">
    <meta name="resource-type" content="document">
    <meta name="classification" content="Internet">
    <meta name="robots" content="all">
    <meta name="rating" content="General">
    <meta name="Author" content="Ninart! Solucoes para Web.">
    <meta name="language" content="pt-br">
    <link rel="shortcut icon" href="imagens/favicon.gif"type="image/gif">   
    <link rel="stylesheet" href="<?=  HOST;?>css/irpen.css" type="text/css" />
    <link rel="stylesheet" media="all" type="text/css" href="<?=  HOST;?>css/menu_dropline.css" />
    <!--[if IE]>
    <link rel="stylesheet" media="all" type="text/css" href="css/menu_dropline_ie.css" />
    <![endif]-->
    <!--[if lt IE 7]>
        <link rel="stylesheet" media="all" type="text/css" href="css/menu_dropline_ie6.css" />
    <![endif]-->  
    <title>IRPEN | Instituto de Registro Civil de Pessoas Naturais do Paraná - 2008</title>
    <script type="text/javascript" src="<?=  HOST;?>includes/jquery-1.2.6.js"></script>
    <script type="text/javascript" src="<?=  HOST;?>includes/jquery.form.js"></script>
    <script type="text/javascript" src="<?=  HOST;?>includes/email.js"></script>          
    <script type="text/javascript" src="contato.js"></script>
    <script type="text/javascript" language="javascript">
        <?php if ($msg != "") { ?>
        alert("<?= $msg;?>");
        <?php ?>
    </script>
    <style type="text/css">
<!--
.style1 {
    color: #666666;
    font-weight: bold;
}
-->
</style>
</head>
<body>
    <div id="wrap">
    
        <?php include "../topo_gestao.php";?>

        <!-- content-wrap starts -->
        <div id="content-wrap">
            <table width="100%" border="0">
                <tr><!--
                    <td align="left" valign="top" width="20%">
                        <?php 
                            
//Menu do site
                            //include(DIR_ADMIN . "menu_gestao.php");
                        
?>
                    </td>
                    <td align="left" valign="top" bgcolor="#cccccc">&nbsp;
                    </td>-->
                    <td align="left" valign="top" bgcolor="#FFFFFF" width="1%">&nbsp;
                    </td>
                    <td align="left" valign="top">            
                        <table width="100%" border="0" >
                            <tr>
                                <td align="left" valign="top">
                                    <h2>Processar arquivo de pagamento </h2>
                                    <div id="linha_h2" ></div> 
                                    <form action="boleto_importar_arquivo_pagto.php" method="post" enctype="multipart/form-data" name="form" id="form">
                                        <table width="40%" border="0" align="center" cellpadding="2" cellspacing="2">     
                                            <tr>
                                                <td align="left" valign="top">                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">Arquivo:</td>
                                                <td align="left"><input name="arquivo_banco" type="file" id="arquivo_banco" size="40" /></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center">
<!--
                                                <input type="submit" name="btnImportar" id="btnImportar" value="Processar" /></td>  
-->
                                            </tr>
                                        </table>
                                    </form>       
                                </td>
                            </tr>  
                        </table>
                        <br />
                    </td>  
                </tr>                
            </table>
        </div>
        <div align="center">
            <strong><br />
            Rua Mal. Deodoro, 51 - Galeria Ritz - 18º Andar | Fone: (41) 3232-9811 | CEP 80.020-905 - Curitiba - Paraná</strong>
            <!-- content-wrap ends-->
        </div>
        <!-- footer starts -->
        <div id="footer-wrap">
        </div>
        <div id="rodape">
        </div>
    </div>
</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.0035 ]--