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


Viewing file:     inscricao_grava2.php (4.82 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php    #############################################################################
    # Nome: inscricao_grava.php                                                 #
    # System: Irpen                                                             #
    # Criado por: Breno Henrique Vivarelli                                      #
    # Empresa: Netnigro                                                         #
    # E-mail: breno@netnigro.com.br                                             #
    # Descrição: Gravação dos dados da inscrição para o congresso               #
    # Histórico:                                                                #
    #    . 01/10/2008 - Breno Henrique Vivarelli                                #
    #            Criação da Página                                              #
    #    . 06/10/2010 - Rodrigo Santos Lemberg                                    #
    #            Alteração para o 4º Seminário                                  #
    #############################################################################

    //Conexão
    
header('Content-Type: text/html; charset=iso-8859-1');
    
    
//Includes 
    
include("config/config.php");
    include(
INCLUDES "conexaoBD.php");    
    include(
INCLUDES "sentencas_sql.php");
    
    
$email_contato "contato@arpenpr.org.br";
    
//$email_contato = "marcio@netnigro.com.br"; 
    
$headers       "From: Irpen <contato@arpenpr.org.br>\n";
    
$headers       .= "Bcc : cron.irpen@netnigro.com.br\n";
    
$headers       .= "Content-type: text/html; charset=iso-8859-1" "\n";
    
    
//Parâmetros
    
$evento           '18seminario';
    
$nome          utf8_decode($_POST["txtNome"]);
    
$cartorio      utf8_decode($_POST["txtCartorio"]);
    
$endereco      utf8_decode($_POST["txtEndereco"]);
    
$cidade        utf8_decode($_POST["txtCidade"]);
    
$cep           $_POST["txtCep"];
    
$telefone      $_POST["txtTelefone"];
    
$fax           $_POST["txtFax"];
    
$celular       $_POST["txtCelular"];
    
$email         $_POST["txtEmail"];
    
    
    if (
$nome == '' || $cartorio == '' || $endereco == '' || $cidade == '' || $cep == '' || $telefone == '' || $email == '') {
        
?>
        <script type="text/javascript">
            alert('Todos os dados devem ser preenchidos');
        </script>
        <?php        die();
    }
    
    if (
$_POST["txtAcompanhante1"] != '')
        
$acomps[]       = $_POST["txtAcompanhante1"];
    
    if (
$_POST["txtAcompanhante2"] != '')
        
$acomps[]       = $_POST["txtAcompanhante2"];
        
    if (
$_POST["txtAcompanhante3"] != '')
        
$acomps[]       = $_POST["txtAcompanhante3"];
    
    
//$acompanhante  = $_POST["txtAcompanhante1"].', '.$_POST["txtAcompanhante2"].', '.$_POST["txtAcompanhante3"];
    
if ($_POST["txtAcompanhante1"] != '' || $_POST["txtAcompanhante2"] != '' || $_POST["txtAcompanhante3"]) {
        
$acompanhante  implode(',',$acomps);
    } else {
        
$acompanhante  '';
    }
    
$jantar $_POST['Jantar'];
    
    
    
/*$telefone    = str_replace("(","",$telefone);
    $telefone    = str_replace(")","",$telefone);
    $telefone    = str_replace(" ","",$telefone);
    $telefone    = str_replace("-","",$telefone);
    */
    
$assunto "INSCRIÇÃO PARA O 18º SEMINÁRIO DE TRABALHO REGISTRAL CIVIL";
    
$mensagem "Sua inscrição foi realizada com sucesso. Obrigado.";
    
$ip      $_SERVER["REMOTE_ADDR"];
    
$data    date("Y-m-d H:i:s");
    
    
    
//Corpo do e-mail         
    
$corpo "Nome: $nome\n <br>"
           
"E-mail: $email\n <br>"
           
"Assunto: $assunto\n <br>"
           
"Mensagem: $mensagem\n <br>";
           

    if(
mail($email_contato,$assunto,$corpo,$headers)) {
        
        
mail($email,$assunto,$corpo,$headers);
        
        
$sql "INSERT INTO inscricao_seminario (INS_Evento,INS_Nome, INS_Oficio, INS_Endereco, INS_Cidade, INS_Cep, INS_Telefone, INS_Fax, INS_Celular, INS_Email, INS_Acompanhante, INS_Jantar, INS_IP, INS_DataCadastro) "
             
"VALUES ('$evento', '$nome', '$cartorio', '$endereco', '$cidade', '$cep', '$telefone', '$fax', '$celular', '$email', '$acompanhante', '$jantar', '$ip', '$data')";
        
        if(
$conexao->query($sql)) {
            
            
$conexao->commit();
            
//echo "A inscrição para o 1º Seminário de Trabalho Civil Registral foi realizada com sucesso.";
            //$msg = "A inscrição para o 3º Seminário de Trabalho Civil Registral foi realizada com sucesso.";
            
$msg "A inscrição para o 18º Seminário de Trabalho Civil Registral foi realizada com sucesso.";
            
        } else {
            
            
//echo "Erro ao realizar a inscrição. Por favor, tente novamente alguns minutos depois.";
            
$msg "Erro ao realizar a inscrição. Por favor, tente novamente alguns minutos depois.";
            
        }        
    } else {
        
        echo 
"Erro ao realizar a inscrição. Por favor, tente novamente alguns minutos depois.";    
        
    }
?>
<script type="text/javascript">
    alert("<?php  echo $msg ?>");
    window.location.href = "inscricao2.php";
</script>

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