@@ -86,7 +86,7 @@ |
||
| 86 | 86 | if($a){ |
| 87 | 87 | |
| 88 | 88 | $this->paso1($proyecto,$analytics,$hostbd,$nombrebd,$usuariobd,$usuariobd,$clavebd,$config); |
| 89 | - }else{ |
|
| 89 | + } else{ |
|
| 90 | 90 | $this->_ayuda->redireccionUrl('instalador?error="Los datos que estas ingresando no coniciden con los de la BD"'); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -48,8 +48,7 @@ |
||
| 48 | 48 | ); |
| 49 | 49 | $this->_ayuda->redireccionUrl('usuario'); |
| 50 | 50 | //$_POST['option1']=false; |
| 51 | - } |
|
| 52 | - else{ |
|
| 51 | + } else{ |
|
| 53 | 52 | $this->_ayuda->redireccionUrl('usuario/registro'); |
| 54 | 53 | } |
| 55 | 54 | } |
@@ -20,7 +20,10 @@ |
||
| 20 | 20 | </script> |
| 21 | 21 | <!-- End Google Analytics --> |
| 22 | 22 | |
| 23 | - <title><?php if(isset($this->titulo)) echo $this->titulo; ?></title> |
|
| 23 | + <title><?php if(isset($this->titulo)) { |
|
| 24 | + echo $this->titulo; |
|
| 25 | +} |
|
| 26 | +?></title> |
|
| 24 | 27 | |
| 25 | 28 | |
| 26 | 29 | |
@@ -73,8 +73,7 @@ discard block |
||
| 73 | 73 | $columns = join (" = ?, ", $columns);
|
| 74 | 74 | $columns .= ' = ?'; |
| 75 | 75 | $query = "UPDATE ".static::$table." SET $columns WHERE id =".$this->id; |
| 76 | - } |
|
| 77 | - else {
|
|
| 76 | + } else {
|
|
| 78 | 77 | $params = join(", ", array_fill(0, count($columns), "?"));
|
| 79 | 78 | $columns = join(", ", $columns);
|
| 80 | 79 | $query = "INSERT INTO ".static::$table." ($columns) VALUES ($params)"; |
@@ -84,8 +83,7 @@ discard block |
||
| 84 | 83 | |
| 85 | 84 | if ($result){
|
| 86 | 85 | $result = array('error' => false, 'message' => self::$database->getInsertedID());
|
| 87 | - } |
|
| 88 | - else {
|
|
| 86 | + } else {
|
|
| 89 | 87 | $result = array('error' => true, 'message' => self::$database->getError());
|
| 90 | 88 | } |
| 91 | 89 | |
@@ -64,11 +64,11 @@ |
||
| 64 | 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'); |