@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | //verificamos la version de php en tu servidor web o local |
| 27 | 27 | if (version_compare(PHP_VERSION, '5.3.20', '<')) |
| 28 | 28 | { |
| 29 | - 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); |
|
| 29 | + 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 | 30 | } |
| 31 | 31 | |
| 32 | 32 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | private $_analytics; |
| 46 | 46 | public function __construct() { |
| 47 | 47 | parent::__construct(); |
| 48 | - $this->_basedatos=$this->cargaModelo('instalador'); |
|
| 48 | + $this->_basedatos=$this->cargaModelo('instalador'); |
|
| 49 | 49 | |
| 50 | 50 | $this->_ayuda= new Sisayu\CFPHPAyuda; |
| 51 | 51 | } |
@@ -68,29 +68,29 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public function verificarBd(){ |
| 70 | 70 | |
| 71 | - $proyecto=$_POST['proyecto']; |
|
| 72 | - if(isset($_POST['analytics'])!=''){ |
|
| 71 | + $proyecto=$_POST['proyecto']; |
|
| 72 | + if(isset($_POST['analytics'])!=''){ |
|
| 73 | 73 | $this->_analytics="'".$_POST['analytics']."'"; |
| 74 | - } |
|
| 75 | - $this->_analytics="'"."UA-xxxxxx"."'"; |
|
| 74 | + } |
|
| 75 | + $this->_analytics="'"."UA-xxxxxx"."'"; |
|
| 76 | 76 | |
| 77 | 77 | |
| 78 | - $analytics=$this->_analytics; |
|
| 79 | - $hostbd="'".$_POST['hostbd']."'"; |
|
| 80 | - $nombrebd="'".$_POST['nombrebd']."'"; |
|
| 81 | - $usuariobd="'".$_POST['usuariobd']."'"; |
|
| 82 | - $clavebd="'".$_POST['clavebd']."'"; |
|
| 83 | - $config="'".$_POST['config']."'"; |
|
| 78 | + $analytics=$this->_analytics; |
|
| 79 | + $hostbd="'".$_POST['hostbd']."'"; |
|
| 80 | + $nombrebd="'".$_POST['nombrebd']."'"; |
|
| 81 | + $usuariobd="'".$_POST['usuariobd']."'"; |
|
| 82 | + $clavebd="'".$_POST['clavebd']."'"; |
|
| 83 | + $config="'".$_POST['config']."'"; |
|
| 84 | 84 | |
| 85 | - $a= $this->_basedatos->verificarBdM($_POST['nombrebd'],$_POST['usuariobd'],$_POST['clavebd']); |
|
| 85 | + $a= $this->_basedatos->verificarBdM($_POST['nombrebd'],$_POST['usuariobd'],$_POST['clavebd']); |
|
| 86 | 86 | |
| 87 | - if($a){ |
|
| 87 | + if($a){ |
|
| 88 | 88 | |
| 89 | 89 | $this->paso1($proyecto,$analytics,$hostbd,$nombrebd,$usuariobd,$usuariobd,$clavebd,$config); |
| 90 | 90 | |
| 91 | - }else{ |
|
| 92 | - $this->_ayuda->redireccionUrl('instalador?error="Los datos que estas ingresando no coniciden con los de la BD"'); |
|
| 93 | - } |
|
| 91 | + }else{ |
|
| 92 | + $this->_ayuda->redireccionUrl('instalador?error="Los datos que estas ingresando no coniciden con los de la BD"'); |
|
| 93 | + } |
|
| 94 | 94 | |
| 95 | 95 | } |
| 96 | 96 | |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | fwrite($file, "/* en el controlador concatena la constante con el llamado a la funcion generarCadenaAleatoria() de Cf_PHPSeguridad */" . PHP_EOL); |
| 178 | 178 | fwrite($file, "define('Cf_CSRF_SECRET','Cfbeta');" . PHP_EOL.PHP_EOL); |
| 179 | 179 | |
| 180 | - fwrite($file, "/* Si usted va a utilizar SSL debe de cambiar a true */" . PHP_EOL); |
|
| 180 | + fwrite($file, "/* Si usted va a utilizar SSL debe de cambiar a true */" . PHP_EOL); |
|
| 181 | 181 | fwrite($file, "define('Cf_SESION_PARAMETRO_SEGURO','false');" . PHP_EOL.PHP_EOL); |
| 182 | 182 | |
| 183 | 183 | fwrite($file, "/* #base de datos */" . PHP_EOL. PHP_EOL); |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | fwrite($file, ""); |
| 193 | 193 | fclose($file); |
| 194 | 194 | |
| 195 | - $this->_ayuda->redireccionUrl('instalador/crearBaseDatos'); |
|
| 195 | + $this->_ayuda->redireccionUrl('instalador/crearBaseDatos'); |
|
| 196 | 196 | |
| 197 | 197 | } |
| 198 | 198 | |