@@ -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,31 +68,31 @@ 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 | - echo $clavebd="'".$_POST['clavebd']."'"; |
|
| 83 | - $config="'".$_POST['config']."'"; |
|
| 78 | + $analytics=$this->_analytics; |
|
| 79 | + $hostbd="'".$_POST['hostbd']."'"; |
|
| 80 | + $nombrebd="'".$_POST['nombrebd']."'"; |
|
| 81 | + $usuariobd="'".$_POST['usuariobd']."'"; |
|
| 82 | + echo $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 | 87 | |
| 88 | 88 | |
| 89 | - if($a){ |
|
| 89 | + if($a){ |
|
| 90 | 90 | |
| 91 | 91 | $this->paso1($proyecto,$analytics,$hostbd,$nombrebd,$usuariobd,$clavebd,$config); |
| 92 | 92 | |
| 93 | - }else{ |
|
| 94 | - $this->_ayuda->redireccionUrl('instalador?error="Los datos que estas ingresando no coniciden con los de la BD"'); |
|
| 95 | - } |
|
| 93 | + }else{ |
|
| 94 | + $this->_ayuda->redireccionUrl('instalador?error="Los datos que estas ingresando no coniciden con los de la BD"'); |
|
| 95 | + } |
|
| 96 | 96 | |
| 97 | 97 | } |
| 98 | 98 | |
@@ -100,10 +100,10 @@ discard block |
||
| 100 | 100 | public function paso1($proyecto,$analytics,$hostbd,$nombrebd,$usuariobd,$clavebd,$config){ |
| 101 | 101 | |
| 102 | 102 | |
| 103 | - echo $proyecto; |
|
| 103 | + echo $proyecto; |
|
| 104 | 104 | |
| 105 | 105 | chmod (RUTA_NUCLEO."CFConfiguracion.php", 0777); |
| 106 | - //chmod($hostbd.$proyecto."Sistema/Nucleo/CFConfiguracion.php", 0755); |
|
| 106 | + //chmod($hostbd.$proyecto."Sistema/Nucleo/CFConfiguracion.php", 0755); |
|
| 107 | 107 | |
| 108 | 108 | $file = fopen(RUTA_NUCLEO."CFConfiguracion.php", "w"); |
| 109 | 109 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | fwrite($file, "/* en el controlador concatena la constante con el llamado a la funcion generarCadenaAleatoria() de Cf_PHPSeguridad */" . PHP_EOL); |
| 182 | 182 | fwrite($file, "define('Cf_CSRF_SECRET','Cfbeta');" . PHP_EOL.PHP_EOL); |
| 183 | 183 | |
| 184 | - fwrite($file, "/* Si usted va a utilizar SSL debe de cambiar a true */" . PHP_EOL); |
|
| 184 | + fwrite($file, "/* Si usted va a utilizar SSL debe de cambiar a true */" . PHP_EOL); |
|
| 185 | 185 | fwrite($file, "define('Cf_SESION_PARAMETRO_SEGURO','false');" . PHP_EOL.PHP_EOL); |
| 186 | 186 | |
| 187 | 187 | fwrite($file, "/* #base de datos */" . PHP_EOL. PHP_EOL); |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | fwrite($file, ""); |
| 197 | 197 | fclose($file); |
| 198 | 198 | |
| 199 | - $this->_ayuda->redireccionUrl('instalador/crearBaseDatos'); |
|
| 199 | + $this->_ayuda->redireccionUrl('instalador/crearBaseDatos'); |
|
| 200 | 200 | |
| 201 | 201 | } |
| 202 | 202 | |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | $this->paso1($proyecto,$analytics,$hostbd,$nombrebd,$usuariobd,$clavebd,$config); |
| 92 | 92 | |
| 93 | - }else{ |
|
| 93 | + } else{ |
|
| 94 | 94 | $this->_ayuda->redireccionUrl('instalador?error="Los datos que estas ingresando no coniciden con los de la BD"'); |
| 95 | 95 | } |
| 96 | 96 | |