@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | //verificamos la version de php en tu servidor web o local |
28 | 28 | if (version_compare(PHP_VERSION, '5.3.20', '<')) |
29 | 29 | { |
30 | - die('Su Hosting tiene una version < a PHP 5.3.20 debes actualizar para esta version de Calima. su version actual de PHP es: '.PHP_VERSION); |
|
30 | + die('Su Hosting tiene una version < a PHP 5.3.20 debes actualizar para esta version de Calima. su version actual de PHP es: ' . PHP_VERSION); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | //Cargamos los Espacios de nombres para el nucleo y los ayudantes |
@@ -46,12 +46,12 @@ discard block |
||
46 | 46 | public function __construct() { |
47 | 47 | parent::__construct(); |
48 | 48 | |
49 | - $this->_ayuda= new Sisayu\CFPHPAyuda; |
|
49 | + $this->_ayuda = new Sisayu\CFPHPAyuda; |
|
50 | 50 | //$this->cargaAyudante('CfPHPAyuda'); |
51 | 51 | //$this->cargaAyudante('CfPHPSeguridad'); |
52 | - $this->_seg= new Sisayu\CFPHPSeguridad; |
|
52 | + $this->_seg = new Sisayu\CFPHPSeguridad; |
|
53 | 53 | |
54 | - $this->_sesion=new Sisnuc\CFSesion(); |
|
54 | + $this->_sesion = new Sisnuc\CFSesion(); |
|
55 | 55 | |
56 | 56 | } |
57 | 57 | |
@@ -59,16 +59,16 @@ discard block |
||
59 | 59 | { |
60 | 60 | // Se verifica que en el archivo de configuracion.php la constante Cf_CONFIG_INICIO==true |
61 | 61 | //Si esta en True se lanza el instalador de Cf |
62 | - if(Cf_CONFIG_INICIO==true){ |
|
62 | + if (Cf_CONFIG_INICIO == true) { |
|
63 | 63 | $this->_sesion->iniciarSesion('_s', false); |
64 | - if($_SESSION['nivel']==1){ |
|
64 | + if ($_SESSION['nivel'] == 1) { |
|
65 | 65 | $this->_vista->titulo = 'CalimaFramework'; |
66 | 66 | $this->_vista->imprimirVista('index', 'data'); |
67 | - }else{ |
|
67 | + } else { |
|
68 | 68 | $this->_ayuda->redireccionUrl('usuario'); |
69 | 69 | } |
70 | 70 | |
71 | - }elseif (Cf_CONFIG_INICIO=='false') { |
|
71 | + }elseif (Cf_CONFIG_INICIO == 'false') { |
|
72 | 72 | |
73 | 73 | $this->_vista->titulo = 'CalimaFramework'; |
74 | 74 | $this->_vista->imprimirVista('index', 'data'); |