SVN Alba r3996 - prosistem/alba/trunk
Author: josx Date: 2007-01-10 16:34:35 -0300 (Wed, 10 Jan 2007) New Revision: 3996 Modified: prosistem/alba/trunk/index.php Log: Ahora al instalar se crea un archivo con el que se verifica si ya se instalo el sistema o no Modified: prosistem/alba/trunk/index.php =================================================================== --- prosistem/alba/trunk/index.php 2007-01-10 19:28:07 UTC (rev 3995) +++ prosistem/alba/trunk/index.php 2007-01-10 19:34:35 UTC (rev 3996) @@ -41,6 +41,10 @@ chdir("alba/"); define("ALBA_PATH", getcwd()."/"); + define("INSTALL_COMPLETE_DIR",ALBA_PATH."log"); + define("INSTALL_COMPLETE_FILE",INSTALL_COMPLETE_DIR."/"."instalacion_completa"); + + define("ALBA_WEB",ALBA_PATH."web/"); define("CONFIG_PATH", ALBA_PATH."config/"); @@ -69,6 +73,10 @@ define("REDIRECT_URL","http://" . $_SERVER['SERVER_NAME'] . CURRENT_WEB_DIR.SYMFONY_WEB_DIR."/"); + + + if(!file_exists(INSTALL_COMPLETE_FILE)) { + $f_phpversion = function_exists ("phpversion"); $f_apache_get_version = function_exists ("apache_get_version"); // $f_get_magic_quotes_gpc = function_exists ("get_magic_quotes_gpc"); @@ -337,6 +345,18 @@ </body> </html> + +<? +// si existe el archivo de flag para la instacion +} else { ?> +<html> +<body> +Usted ya ha instalado el Proyetco ALBA. Si quiere volver a instalarlo debe borra el archivo alba/log/instalacion_completa. +</body> +</html> +<? } ?> + + <?php /** @@ -473,6 +493,8 @@ @symlink(INSTALL_DIR."dist/".SYMFONY_DIR."/lib/", ALBA_PATH."lib/symfony"); @symlink(INSTALL_DIR."alba/data/symfony/web/sf/", ALBA_WEB."sf"); + touch(INSTALL_COMPLETE_FILE); + return true; } return false;
participants (1)
-
commits@pressenter.com.ar