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


Viewing file:     boleto_gerar.php (9.78 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
#############################################################################
    # Nome: boleto_gerar.php                                                    #
    # System: Irpen                                                             #
    # Criado por: Rodrigo J Polette                                             #
    # Empresa: Netnigro                                                         #
    # E-mail: rodrigo@netnigro.com.br                                           #
    # Descrição: Geração de boletos para oficios                                #
    # Histórico:                                                                #
    #     
    #############################################################################  
    
    // 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(
"mensalidade_class.php");
    
    
$nome  $_SESSION["nome_usuario"];
    
$email $_SESSION["email_usuario"];
    
    
$admin $_SESSION['cod_perfil'] == 1;
    
    if ((
count($_POST)>0) and $admin) {
        
$data_vencto     $_POST['txtDataVencto'];
        
$mes_referencia $_POST['txtMesReferencia'];
        
$ano_referencia $_POST['txtAnoReferencia'];
        
$id_texto_usar    $_POST['cboSelecaoTexto'];
        
        
$mensalidades     = new Mensalidades();
        if (
$mensalidades->gerarMensalidadesBoletos($data_vencto,$mes_referencia,$ano_referencia,$id_texto_usar))
            
$msg "Mensalidades e boletos gerados com sucesso!";
        else
            
$msg "Erro ao gerar as mensalidades e boletos!";        
    }
?>
<!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>
    <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]-->
    <link rel="stylesheet" media="all" type="text/css" href="<?=  HOST;?>includes/jquery.datepick/jquery.datepick.css" />
    <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/jquery.datepick/jquery.datepick.js"></script>
    <script type="text/javascript" src="<?=  HOST;?>includes/jquery.datepick/jquery.datepick-pt-BR.js"></script>
    <script type="text/javascript" src="<?=  HOST;?>includes/jquery.maskedinput-1.2.2.js"></script>
    <script type="text/javascript" src="<?=  HOST;?>includes/email.js"></script>          
    <script type="text/javascript" src="contato.js"></script>
    <!--
    <script language="javascript" type="text/javascript" src="<?=  HOST;?>lib/tinymce/tiny_mce.js"></script>
    <script language="javascript" type="text/javascript" src="<?=  HOST;?>lib/tinymce/plugins/tinybrowser/tb_tinymce.js.php"></script>-->
    <script language="javascript" type="text/javascript">
        <!-- TinyMCE -->
        <?php /*
        tinyMCE.init({
            mode : "textareas",
            theme : "advanced",
            language : 'pt',
            plugins :'style,table,advhr,advimage,iespell,searchreplace,contextmenu,paste,noneditable,preview',
            file_browser_callback : "tinyBrowser",
            button_tile_map : true,
            convert_urls : false,
            fix_list_elements: true, 
            apply_source_formatting : true,
            extended_valid_elements: "fieldset[class|id],legend[class|id],br[class],div[align|class|id]",
            //Css 
            content_css: "../css/irpen.css",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",    
            theme_advanced_buttons1_add : "fontselect,fontsizeselect,separator,forecolor,backcolor",
            theme_advanced_buttons2_add_before: "cut,copy,paste,pasteword,separator,search,replace,separator",
            theme_advanced_buttons3_add_before : "tablecontrols,separator",
            theme_advanced_buttons3_add : "iespell,advhr", 
            theme_advanced_disable : "styleselect,strikethrough"
        });
        */
?>
        
        <?php if ($msg != "") { ?>
        alert("<?= $msg;?>");
        <?php ?>
        
        function Valida() {
            
            if (document.getElementById('txtDataVencto').value=="") {
                alert('Favor preencher a data de vencimento!');
                return false;
            }
            
            if (confirm('Gerar boletos deste vencimento?'))
                return true;
            else
                return false;
        }

        $(document).ready(function(){
            $('#txtDataVencto').datepick().mask("99/99/9999");
        });
    </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>Criar boletos </h2>
                                    <div id="linha_h2" ></div> 
                                    <form action="" method="post" name="frmContato" id="frmContato" onsubmit="return Valida();">
                                        <table width="98%" border="0">     
                                            <tr>
                                                <td width="43%" align="left" valign="top">                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="20" align="right">Data de vencimento: </td>
                                                <td width="57%" height="20" align="left"><input name="txtDataVencto" type="text" id="txtDataVencto" size="13" maxlength="10" /></td>
                                            </tr>
                                            <tr>
                                                <td height="20" align="right">Mes/Ano refer&ecirc;ncia</td>
                                                <td height="20" align="left">
                                                    <input type="text" name="txtMesReferencia" id="txtMesReferencia" size="4" maxlength="2" />
                                                    /
                                                <input name="txtAnoReferencia" type="text" id="txtAnoReferencia" value="<?= date("Y");?>" size="5" maxlength="4" /></td>
                                            </tr>
                                            <tr>
                                                <td height="20" align="right">Texto:</td>
                                                <td height="20" align="left">
                                                    <select name="cboSelecaoTexto" id="cboSelecaoTexto">
                                                        <option value="0">Nenhum</option>
                                                        <?php
                                                            $sql 
"SELECT SVM_RowID, SVM_Descritivo FROM irp_servicos_mensagens_boletos WHERE SVM_AtivoSN = 'S' ORDER BY SVM_Descritivo";
                                                            
$res mysqli_query($conexao,$sql);
                                                            while (
$opt mysqli_fetch_assoc($res)) {
                                                                echo 
"<option value='$opt[SVM_RowID]'>$opt[SVM_Descritivo]</option>";
                                                            }
                                                        
?>
                                                    </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="20" colspan="2" align="center">
                                                    <input name="btnGerar" type="submit" id="btnGerar" value="Criar boletos" /></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 ]--