@@ -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(); |
@@ -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 |
@@ -268,8 +268,8 @@ |
||
268 | 268 | |
269 | 269 | $command = $this->getMock('TestCommand', array('execute')); |
270 | 270 | $command->expects($this->once()) |
271 | - ->method('execute') |
|
272 | - ->will($this->returnValue('2.3')); |
|
271 | + ->method('execute') |
|
272 | + ->will($this->returnValue('2.3')); |
|
273 | 273 | $exitCode = $command->run(new StringInput(''), new NullOutput()); |
274 | 274 | $this->assertSame(2, $exitCode, '->run() returns integer exit code (casts numeric to int)'); |
275 | 275 | } |
@@ -148,7 +148,7 @@ |
||
148 | 148 | { |
149 | 149 | $progress = $this->getMock('Symfony\Component\Console\Helper\ProgressHelper', array('display')); |
150 | 150 | $progress->expects($this->exactly(4)) |
151 | - ->method('display'); |
|
151 | + ->method('display'); |
|
152 | 152 | |
153 | 153 | $progress->setRedrawFrequency(2); |
154 | 154 |
@@ -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(); |