You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
674 B
31 lines
674 B
<?php |
|
/** |
|
* Esta clase se utiliza como hook de debug |
|
* para que funcione hay que ponerla en "/src/siu" |
|
* y activar el flag "ini_debug: true" en el archivo de configuracion |
|
*/ |
|
namespace siu; |
|
|
|
use SIU\Chulupi\kernel; |
|
use SIU\Chulupi\util\cache\AdminCache; |
|
use SIU\Chulupi\nucleo\agente; |
|
|
|
class debug |
|
{ |
|
function ini() |
|
{ |
|
AdminCache::set_activo(false); |
|
|
|
\siu\modelo\controles\proceso_control::usar_cache(false); |
|
|
|
\siu\modelo\controles\proceso_control::activar(false); |
|
kernel::persona()->add_derecho('root'); |
|
// kernel::agente()->forzar_tipo(agente::TIPO_TABLET); |
|
// |
|
// AdminCache::forzar_tipo('archivo'); |
|
// kernel::usa_pretty_urls(true); |
|
} |
|
} |
|
|
|
|
|
?>
|