SVN Alba r4964 - in prosistem/alba/trunk/alba/web/instalar: . images
Author: ftoledo Date: 2007-08-15 14:29:35 -0300 (Wed, 15 Aug 2007) New Revision: 4964 Added: prosistem/alba/trunk/alba/web/instalar/images/estilos.css prosistem/alba/trunk/alba/web/instalar/paso3.php Modified: prosistem/alba/trunk/alba/web/instalar/instalar.php prosistem/alba/trunk/alba/web/instalar/paso1.php prosistem/alba/trunk/alba/web/instalar/paso2.php Log: mas pasos del instalador Added: prosistem/alba/trunk/alba/web/instalar/images/estilos.css =================================================================== --- prosistem/alba/trunk/alba/web/instalar/images/estilos.css 2007-08-15 17:01:51 UTC (rev 4963) +++ prosistem/alba/trunk/alba/web/instalar/images/estilos.css 2007-08-15 17:29:35 UTC (rev 4964) @@ -0,0 +1,3 @@ +div .error { + color: red; +} \ No newline at end of file Modified: prosistem/alba/trunk/alba/web/instalar/instalar.php =================================================================== --- prosistem/alba/trunk/alba/web/instalar/instalar.php 2007-08-15 17:01:51 UTC (rev 4963) +++ prosistem/alba/trunk/alba/web/instalar/instalar.php 2007-08-15 17:29:35 UTC (rev 4964) @@ -67,6 +67,8 @@ <meta name="description" content="Proyecto de Gestión Educativa ALBA" /> <meta name="keywords" content="alba, proyecto, software libre, educacion" /> <meta name="language" content="es" /> + + <link rel="StyleSheet" type="text/css" href="images/estilos.css"> </head> <body> <div id="cabeza"> Modified: prosistem/alba/trunk/alba/web/instalar/paso1.php =================================================================== --- prosistem/alba/trunk/alba/web/instalar/paso1.php 2007-08-15 17:01:51 UTC (rev 4963) +++ prosistem/alba/trunk/alba/web/instalar/paso1.php 2007-08-15 17:29:35 UTC (rev 4964) @@ -30,6 +30,8 @@ * @license GPL */ +if (!defined('ALBA_INSTALLER')) die(); + $dirs = array( 'config', 'cache', Modified: prosistem/alba/trunk/alba/web/instalar/paso2.php =================================================================== --- prosistem/alba/trunk/alba/web/instalar/paso2.php 2007-08-15 17:01:51 UTC (rev 4963) +++ prosistem/alba/trunk/alba/web/instalar/paso2.php 2007-08-15 17:29:35 UTC (rev 4964) @@ -30,6 +30,7 @@ * @license GPL */ +if (!defined('ALBA_INSTALLER')) die(); /* helpers para comprobaciones */ function check_php() { Added: prosistem/alba/trunk/alba/web/instalar/paso3.php =================================================================== --- prosistem/alba/trunk/alba/web/instalar/paso3.php 2007-08-15 17:01:51 UTC (rev 4963) +++ prosistem/alba/trunk/alba/web/instalar/paso3.php 2007-08-15 17:29:35 UTC (rev 4964) @@ -0,0 +1,89 @@ +<?php +/** + * This file is part of Alba. + * + * Alba is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Alba is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Alba; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +/** + * instalador + * + * @package alba + * @author José Luis Di Biase <[email protected]> + * @author Héctor Sanchez <[email protected]> + * @author Fernando Toledo <[email protected]> + * @version SVN: $Id: instalar.php 4883 2007-07-30 21:41:42Z ftoledo $ + * @filesource + * @license GPL + */ + +if (!defined('ALBA_INSTALLER')) die(); + +if (isset($_POST['test_conn']) && $_POST['test_conn']==1) { + + $host = $_POST['host']; + $user = $_POST['user']; + $pass = $_POST['pass']; + $db = $_POST['db']; + + $conn = @mysql_connect($host,$user,$pass); + if (!$conn) { + $error_flag = true; + $error_msg = "No se puede conectar a la base de datos: <br>" . mysql_error(); + } +} +?> +<div id="detalle"> +<p>Detalle de conexión con la base de datos:</p> +</div> +<?php if ($error_flag):?> +<div class="error"> + <p>Ocurrió el siguiente error:</p> + <p><?php echo $error_msg?></p> +</div> +<?php endif;?> +<form name="test_conn" method="post"> +<input type="hidden" name="test_conn" value="1"> +<table> + <tr> + <td>Servidor:</td> + <td><input type="text" name="host"></td> + </tr> + <tr> + <td>Usuario:</td> + <td><input type="text" name="user"></td> + </tr> + <tr> + <td>Clave:</td> + <td><input type="text" name="pass"></td> + </tr> + <tr> + <td>Base de datos:</td> + <td><input type="text" name="db"></td> + </tr> + <tr> + <td>Crear base de datos:<br/><span style="font-size:9px">(debe tener los permisos para poder hacerlo)</style></td> + <td><input type="checkbox" name="creardb" value="1"></td> + </tr> +</table> +<br/> +<input type="submit" name="btTextConn" value="Conectar a la Base de Datos"> +</form> +<?php +// ir al siguiente paso + $paso = 4; + +?> \ No newline at end of file Property changes on: prosistem/alba/trunk/alba/web/instalar/paso3.php ___________________________________________________________________ Name: svn:keywords + "Id Author URL Date Rev"
participants (1)
-
commits@pressenter.com.ar