!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/proyectos/toba_referencia/php/componentes/ei_mapa/   drwxrwxr-x
Free 14.48 GB of 61.93 GB (23.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ci_ejemplo_1.php (2.25 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ci_ejemplo_1 extends toba_ci
{
    
//-----------------------------------------------------------------------------------
    //---- mapa -------------------------------------------------------------------------
    //-----------------------------------------------------------------------------------

    
protected $fuente_no_configurada false;
    
    function 
conf__pant_inicial(toba_ei_pantalla $pantalla)
    {
        try {
            
$parametros toba::db('fuente_gis')->get_parametros();
        }catch(
toba_error $e) {
            
$msg 'Para utilizar el ejemplo GIS es necesario instalar la base de datos disponible en: <a href="http://repositorio.siu.edu.ar/trac/toba/attachment/wiki/Descargar/">Ejemplo GIS</a> <BR>';
            
$msg .= 'Luego configure apropiadamente la fuente de datos para GIS';
            
$pantalla->set_descripcion($msg'info');
            
$pantalla->eliminar_dep('mapa');
            
$this->fuente_no_configurada true;
        }
    }
    
    function 
conf__mapa(toba_ei_mapa $mapa)
    {
        
$parametros toba::db('fuente_gis')->get_parametros();
        
$dns_conexion "user={$parametros['usuario']} dbname={$parametros['base']}  password={$parametros['clave']}  host={$parametros['profile']} port={$parametros['puerto']}";
        
toba::logger()->debug" Parametros conexion: \n $dns_conexion");

        
$mapa->set_viewport('500''500');
        
$mapa->set_datos('Enviado en el CONF');

        
//Obtengo el objeto de mapscript para setearle correctamente las direcciones de las imagenes
        
$obj $mapa->get_mapa();
        
$ruta toba::proyecto()->get_www_temp();
        
$obj->web->set('imageurl'$ruta['url']);
        
$obj->web->set('imagepath'$ruta['path']);

        
//Obtengo los layers y ciclo para fijarle la conexion correcta de la base a modo de ejemplo
        
$layers $mapa->get_nombre_layers();                    //Aca accedo al objeto toba_ei_mapa
        
foreach($layers as $nombre) {
            
$obj->getLayerByName($nombre)->set('connection'$dns_conexion);        //Aca accedo al objeto de mapscript
        
}
    }

    function 
evt__mapa__nosenada($datos)
    {
        
ei_arbol($datos);
    }

    function 
generar_html()
    {
        try {
             
parent::generar_html();
        } catch(
toba_error_def $e) {
            if (
$this->fuente_no_configurada) {
                throw new 
toba_error('Por favor configure la fuente de datos para ejecutar el ejemplo');
            } else {
                throw 
$e;
            }
        }
    }
    
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6035 ]--