@@ -102,31 +102,31 @@ |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | switch ($lang) { |
| 105 | - case 'en': |
|
| 105 | + case 'en': |
|
| 106 | 106 | $lang_file = 'lang.en.php'; |
| 107 | - break; |
|
| 107 | + break; |
|
| 108 | 108 | |
| 109 | - case 'de': |
|
| 109 | + case 'de': |
|
| 110 | 110 | $lang_file = 'lang.de.php'; |
| 111 | - break; |
|
| 111 | + break; |
|
| 112 | 112 | |
| 113 | - case 'zh': |
|
| 113 | + case 'zh': |
|
| 114 | 114 | $lang_file = 'lang.zh.php'; |
| 115 | - break; |
|
| 115 | + break; |
|
| 116 | 116 | |
| 117 | - case 'pt': |
|
| 117 | + case 'pt': |
|
| 118 | 118 | $lang_file = 'lang.pt.php'; |
| 119 | - break; |
|
| 119 | + break; |
|
| 120 | 120 | |
| 121 | - case 'pt': |
|
| 121 | + case 'pt': |
|
| 122 | 122 | $lang_file = 'lang.pt.php'; |
| 123 | - break; |
|
| 123 | + break; |
|
| 124 | 124 | |
| 125 | - case 'es': |
|
| 125 | + case 'es': |
|
| 126 | 126 | $lang_file = 'lang.es.php'; |
| 127 | - break; |
|
| 127 | + break; |
|
| 128 | 128 | |
| 129 | - default: |
|
| 129 | + default: |
|
| 130 | 130 | $lang_file = 'lang.en.php'; |
| 131 | 131 | |
| 132 | 132 | } |
@@ -61,10 +61,10 @@ discard block |
||
| 61 | 61 | if (isset($_POST['enviar'])&& isset($_POST['option1']) ) { |
| 62 | 62 | |
| 63 | 63 | $datas->insertarDatos( |
| 64 | - $this->_ayuda->filtrarEntero($_POST['id']), |
|
| 65 | - $this->_ayuda->filtrarTexto($_POST['nombre']), |
|
| 66 | - $this->_ayuda->filtrarTexto($_POST['email']), |
|
| 67 | - $this->_ayuda->filtrarTexto($_POST['comentario']) |
|
| 64 | + $this->_ayuda->filtrarEntero($_POST['id']), |
|
| 65 | + $this->_ayuda->filtrarTexto($_POST['nombre']), |
|
| 66 | + $this->_ayuda->filtrarTexto($_POST['email']), |
|
| 67 | + $this->_ayuda->filtrarTexto($_POST['comentario']) |
|
| 68 | 68 | ); |
| 69 | 69 | echo $this->_ayuda->filtrarEntero('id'); |
| 70 | 70 | $_POST['option1']=false; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | public function insertarComentario(){ |
| 77 | 77 | |
| 78 | - /*$this->_vista->titulo = 'Registro CalimaFramework'; |
|
| 78 | + /*$this->_vista->titulo = 'Registro CalimaFramework'; |
|
| 79 | 79 | if(isset($_GET['titulo'])){ |
| 80 | 80 | $this->_vista->salida_campo = $_GET['titulo']; |
| 81 | 81 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | |
| 40 | - if (isset($_POST['email'])) { |
|
| 40 | + if (isset($_POST['email'])) { |
|
| 41 | 41 | $para="[email protected]"; |
| 42 | 42 | $this->_ayuda->enviarCorreo( |
| 43 | 43 | $_POST['email'], |
@@ -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 |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | $this->_ayuda= new Sisayu\CFPHPAyuda; |
| 50 | 50 | //$this->cargaAyudante('CfPHPAyuda'); |
| 51 | - //$this->cargaAyudante('CfPHPSeguridad'); |
|
| 51 | + //$this->cargaAyudante('CfPHPSeguridad'); |
|
| 52 | 52 | $this->_seg= new Sisayu\CfPHPSeguridad; |
| 53 | 53 | |
| 54 | 54 | $this->_sesion=new Sisnuc\CFSesion(); |
@@ -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 | } |
@@ -67,28 +67,28 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | public function verificarBd(){ |
| 69 | 69 | |
| 70 | - $proyecto=$_POST['proyecto']; |
|
| 71 | - if(isset($_POST['analytics'])!=''){ |
|
| 70 | + $proyecto=$_POST['proyecto']; |
|
| 71 | + if(isset($_POST['analytics'])!=''){ |
|
| 72 | 72 | $this->_analytics="'".$_POST['analytics']."'"; |
| 73 | - } |
|
| 74 | - $this->_analytics="'"."UA-xxxxxx"."'"; |
|
| 73 | + } |
|
| 74 | + $this->_analytics="'"."UA-xxxxxx"."'"; |
|
| 75 | 75 | |
| 76 | 76 | |
| 77 | - $analytics=$this->_analytics; |
|
| 78 | - $hostbd="'".$_POST['hostbd']."'"; |
|
| 79 | - $nombrebd="'".$_POST['nombrebd']."'"; |
|
| 80 | - $usuariobd="'".$_POST['usuariobd']."'"; |
|
| 81 | - $clavebd="'".$_POST['clavebd']."'"; |
|
| 82 | - $config="'".$_POST['config']."'"; |
|
| 77 | + $analytics=$this->_analytics; |
|
| 78 | + $hostbd="'".$_POST['hostbd']."'"; |
|
| 79 | + $nombrebd="'".$_POST['nombrebd']."'"; |
|
| 80 | + $usuariobd="'".$_POST['usuariobd']."'"; |
|
| 81 | + $clavebd="'".$_POST['clavebd']."'"; |
|
| 82 | + $config="'".$_POST['config']."'"; |
|
| 83 | 83 | |
| 84 | - $a= $this->_basedatos->verificarBdM($_POST['nombrebd'],$_POST['usuariobd'],$_POST['clavebd']); |
|
| 84 | + $a= $this->_basedatos->verificarBdM($_POST['nombrebd'],$_POST['usuariobd'],$_POST['clavebd']); |
|
| 85 | 85 | |
| 86 | - if($a){ |
|
| 86 | + if($a){ |
|
| 87 | 87 | |
| 88 | 88 | $this->paso1($proyecto,$analytics,$hostbd,$nombrebd,$usuariobd,$usuariobd,$clavebd,$config); |
| 89 | - }else{ |
|
| 90 | - $this->_ayuda->redireccionUrl('instalador?error="Los datos que estas ingresando no coniciden con los de la BD"'); |
|
| 91 | - } |
|
| 89 | + }else{ |
|
| 90 | + $this->_ayuda->redireccionUrl('instalador?error="Los datos que estas ingresando no coniciden con los de la BD"'); |
|
| 91 | + } |
|
| 92 | 92 | |
| 93 | 93 | } |
| 94 | 94 | |
@@ -38,13 +38,13 @@ discard block |
||
| 38 | 38 | $nombre=$_POST['nombre']; |
| 39 | 39 | $email=$_POST['email']; |
| 40 | 40 | $usuario=$_POST['nombre']; |
| 41 | - $clave=$this->_seg->cifrado($this->_seg->filtrarTexto($_POST['clave'])); |
|
| 41 | + $clave=$this->_seg->cifrado($this->_seg->filtrarTexto($_POST['clave'])); |
|
| 42 | 42 | |
| 43 | - $datas->insertarRegistro( |
|
| 44 | - $this->_seg->filtrarTexto($_POST['nombre']), |
|
| 45 | - $this->_seg->filtrarTexto($_POST['email']), |
|
| 46 | - '1', |
|
| 47 | - $clave |
|
| 43 | + $datas->insertarRegistro( |
|
| 44 | + $this->_seg->filtrarTexto($_POST['nombre']), |
|
| 45 | + $this->_seg->filtrarTexto($_POST['email']), |
|
| 46 | + '1', |
|
| 47 | + $clave |
|
| 48 | 48 | ); |
| 49 | 49 | $this->_ayuda->redireccionUrl('usuario'); |
| 50 | 50 | //$_POST['option1']=false; |
@@ -67,12 +67,12 @@ discard block |
||
| 67 | 67 | $_SESSION['usuario']=$usuario; |
| 68 | 68 | $this->_ayuda->redireccionUrl('index'); |
| 69 | 69 | } |
| 70 | - $this->_ayuda->redireccionUrl('usuario'); |
|
| 70 | + $this->_ayuda->redireccionUrl('usuario'); |
|
| 71 | 71 | |
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - public function cerrarSesion(){ |
|
| 75 | + public function cerrarSesion(){ |
|
| 76 | 76 | $this->_sesion->iniciarSesion('_s', false); |
| 77 | 77 | session_destroy(); |
| 78 | 78 | $this->_sesion->destruir('usuario'); |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function verificarBdM($bd,$usuario,$contraseña){ |
| 18 | - try { |
|
| 18 | + try { |
|
| 19 | 19 | $gbd = new PDO("mysql:host=localhost;dbname=".$bd, $usuario, $contraseña); |
| 20 | 20 | $gbd = null; |
| 21 | 21 | return true; |
@@ -52,12 +52,12 @@ discard block |
||
| 52 | 52 | `clave` varchar(60) NOT NULL, |
| 53 | 53 | PRIMARY KEY (`id_usuario`) |
| 54 | 54 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;'); |
| 55 | - $this->_bd->ejecucion(); |
|
| 55 | + $this->_bd->ejecucion(); |
|
| 56 | 56 | |
| 57 | - $this->_bd->consulta('CREATE TABLE IF NOT EXISTS `sesion_usuario` ( |
|
| 57 | + $this->_bd->consulta('CREATE TABLE IF NOT EXISTS `sesion_usuario` ( |
|
| 58 | 58 | `id_usuario` int(10) NOT NULL, |
| 59 | 59 | `fecha_sesion` varchar(20) NOT NULL |
| 60 | 60 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;'); |
| 61 | - $this->_bd->ejecucion(); |
|
| 61 | + $this->_bd->ejecucion(); |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | \ No newline at end of file |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - public function seleccionUsuario($email, $clave){ |
|
| 24 | + public function seleccionUsuario($email, $clave){ |
|
| 25 | 25 | //echo DB_HOST; |
| 26 | 26 | |
| 27 | 27 | //$datosQuery="select usuario, email, nivel from usuarios where usuario = :usuario"; |
@@ -708,8 +708,8 @@ discard block |
||
| 708 | 708 | $application = $this->getMock('Symfony\Component\Console\Application', array('doRun')); |
| 709 | 709 | $application->setAutoExit(false); |
| 710 | 710 | $application->expects($this->once()) |
| 711 | - ->method('doRun') |
|
| 712 | - ->will($this->throwException($exception)); |
|
| 711 | + ->method('doRun') |
|
| 712 | + ->will($this->throwException($exception)); |
|
| 713 | 713 | |
| 714 | 714 | $exitCode = $application->run(new ArrayInput(array()), new NullOutput()); |
| 715 | 715 | |
@@ -723,8 +723,8 @@ discard block |
||
| 723 | 723 | $application = $this->getMock('Symfony\Component\Console\Application', array('doRun')); |
| 724 | 724 | $application->setAutoExit(false); |
| 725 | 725 | $application->expects($this->once()) |
| 726 | - ->method('doRun') |
|
| 727 | - ->will($this->throwException($exception)); |
|
| 726 | + ->method('doRun') |
|
| 727 | + ->will($this->throwException($exception)); |
|
| 728 | 728 | |
| 729 | 729 | $exitCode = $application->run(new ArrayInput(array()), new NullOutput()); |
| 730 | 730 | |