SVN Alba r6114 - in prosistem/alba/trunk/alba/web: . css
Author: ftoledo Date: 2009-04-24 15:51:34 -0300 (Fri, 24 Apr 2009) New Revision: 6114 Modified: prosistem/alba/trunk/alba/web/css/main.css prosistem/alba/trunk/alba/web/principal_demo.php prosistem/alba/trunk/alba/web/principal_dev.php Log: arreglando controladores y fix comentario en el css Modified: prosistem/alba/trunk/alba/web/css/main.css =================================================================== --- prosistem/alba/trunk/alba/web/css/main.css 2009-04-24 18:26:47 UTC (rev 6113) +++ prosistem/alba/trunk/alba/web/css/main.css 2009-04-24 18:51:34 UTC (rev 6114) @@ -91,7 +91,7 @@ float: right; margin-top: 8px; position: relative; -// left: 200px; - // top: 10px; +/* left: 200px; */ + /* top: 10px; */ width: 250px; } \ No newline at end of file Modified: prosistem/alba/trunk/alba/web/principal_demo.php =================================================================== --- prosistem/alba/trunk/alba/web/principal_demo.php 2009-04-24 18:26:47 UTC (rev 6113) +++ prosistem/alba/trunk/alba/web/principal_demo.php 2009-04-24 18:51:34 UTC (rev 6114) @@ -1,22 +1,12 @@ <?php +// this check prevents access to debug front conrollers that are deployed by accident to production servers. +// feel free to remove this, extend it or make something more sophisticated. +if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) +{ + die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); +} -define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/..')); -define('SF_APP', 'principal'); -define('SF_ENVIRONMENT', 'demo'); -define('SF_DEBUG', false); - -require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); - -sfContext::getInstance()->getController()->dispatch(); - - - -/* -<?php -##IP_CHECK## require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php'); $configuration = ProjectConfiguration::getApplicationConfiguration('principal', 'demo', false); sfContext::createInstance($configuration)->dispatch(); - -*/ Modified: prosistem/alba/trunk/alba/web/principal_dev.php =================================================================== --- prosistem/alba/trunk/alba/web/principal_dev.php 2009-04-24 18:26:47 UTC (rev 6113) +++ prosistem/alba/trunk/alba/web/principal_dev.php 2009-04-24 18:51:34 UTC (rev 6114) @@ -1,7 +1,12 @@ <?php +// this check prevents access to debug front conrollers that are deployed by accident to production servers. +// feel free to remove this, extend it or make something more sophisticated. +if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) +{ + die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); +} require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php'); + $configuration = ProjectConfiguration::getApplicationConfiguration('principal', 'dev', true); sfContext::createInstance($configuration)->dispatch(); - -
participants (1)
-
commits@pressenter.com.ar