[Alba-desarrollo] SVN Alba r4814 - in prosistem/alba/trunk/alba:
apps/principal/config apps/principal/modules/menu/config
apps/principal/modules/modulo/config
apps/principal/modules/permiso/config
apps/principal/modules/seguridad/templates
apps/principal/modules/usuario/config web
commits en pressenter.com.ar
commits en pressenter.com.ar
Lun Jul 16 19:20:04 CEST 2007
Author: ftoledo
Date: 2007-07-16 14:20:02 -0300 (Mon, 16 Jul 2007)
New Revision: 4814
Added:
prosistem/alba/trunk/alba/web/principal_demo.php
Modified:
prosistem/alba/trunk/alba/apps/principal/config/logging.yml
prosistem/alba/trunk/alba/apps/principal/config/settings.yml
prosistem/alba/trunk/alba/apps/principal/config/view.yml
prosistem/alba/trunk/alba/apps/principal/modules/menu/config/security.yml
prosistem/alba/trunk/alba/apps/principal/modules/modulo/config/security.yml
prosistem/alba/trunk/alba/apps/principal/modules/permiso/config/security.yml
prosistem/alba/trunk/alba/apps/principal/modules/seguridad/templates/_login.php
prosistem/alba/trunk/alba/apps/principal/modules/usuario/config/security.yml
Log:
entorno de demostracion 'demo'
sirve para poner el sistema en modo demo y segun
el entorno, se pueden deshabilitar modulos
Modified: prosistem/alba/trunk/alba/apps/principal/config/logging.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/config/logging.yml 2007-07-16 15:43:09 UTC (rev 4813)
+++ prosistem/alba/trunk/alba/apps/principal/config/logging.yml 2007-07-16 17:20:02 UTC (rev 4814)
@@ -8,6 +8,10 @@
test:
+demo:
+ enabled: off
+ level: err
+
all:
# enabled: on
# level: debug
Modified: prosistem/alba/trunk/alba/apps/principal/config/settings.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/config/settings.yml 2007-07-16 15:43:09 UTC (rev 4813)
+++ prosistem/alba/trunk/alba/apps/principal/config/settings.yml 2007-07-16 17:20:02 UTC (rev 4814)
@@ -13,6 +13,15 @@
no_script_name: off
etag: off
i18n: on
+
+demo:
+ .settings:
+ no_script_name: on
+ i18n: on
+ cache: off
+
+
+
test:
.settings:
# E_ALL | E_STRICT & ~E_NOTICE = 2047
Modified: prosistem/alba/trunk/alba/apps/principal/config/view.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/config/view.yml 2007-07-16 15:43:09 UTC (rev 4813)
+++ prosistem/alba/trunk/alba/apps/principal/config/view.yml 2007-07-16 17:20:02 UTC (rev 4814)
@@ -20,5 +20,3 @@
use_default_slots: on
-
-
\ No newline at end of file
Modified: prosistem/alba/trunk/alba/apps/principal/modules/menu/config/security.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/menu/config/security.yml 2007-07-16 15:43:09 UTC (rev 4813)
+++ prosistem/alba/trunk/alba/apps/principal/modules/menu/config/security.yml 2007-07-16 17:20:02 UTC (rev 4814)
@@ -1,2 +1,3 @@
all:
is_secure: on
+
Modified: prosistem/alba/trunk/alba/apps/principal/modules/modulo/config/security.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/modulo/config/security.yml 2007-07-16 15:43:09 UTC (rev 4813)
+++ prosistem/alba/trunk/alba/apps/principal/modules/modulo/config/security.yml 2007-07-16 17:20:02 UTC (rev 4814)
@@ -1,3 +1,3 @@
all:
is_secure: on
- credentials: modulo
\ No newline at end of file
+ credentials: modulo
Modified: prosistem/alba/trunk/alba/apps/principal/modules/permiso/config/security.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/permiso/config/security.yml 2007-07-16 15:43:09 UTC (rev 4813)
+++ prosistem/alba/trunk/alba/apps/principal/modules/permiso/config/security.yml 2007-07-16 17:20:02 UTC (rev 4814)
@@ -1,4 +1,4 @@
all:
is_secure: on
credentials: permiso
-
\ No newline at end of file
+
Modified: prosistem/alba/trunk/alba/apps/principal/modules/seguridad/templates/_login.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/seguridad/templates/_login.php 2007-07-16 15:43:09 UTC (rev 4813)
+++ prosistem/alba/trunk/alba/apps/principal/modules/seguridad/templates/_login.php 2007-07-16 17:20:02 UTC (rev 4814)
@@ -3,6 +3,17 @@
<br>
<div class="titulo">Inicio de Sesión del Sistema</div>
<br>
+ <?php if (SF_ENVIRONMENT == 'demo'):?>
+ <div style="border: 2px dashed; border-color: red; width: 50%">
+ Ud. va a ingresar a una demo del sistema en desarrollo.<br/>
+ <br/>
+ Para iniciar la sesión utilice el usuario "<b>admin</b>" y la contraseña "<b>admin</b>".<br/>
+ De esta forma Ud. tendrá las atribuciones de administrador a excepción del manejo de usuarios.<br/>
+ La base de datos de demostración es recuperada cada <b>una hora</b>
+ y por éste motivo,<br/> si realiza cambios, éstos no se mantendrán transcurrido ese lapso.<br/>
+ </div>
+ <br/>
+ <?php endif;?>
<?php echo form_tag('seguridad/login',array('name'=>'frmlogin'))?>
<table align="center">
<tr>
Modified: prosistem/alba/trunk/alba/apps/principal/modules/usuario/config/security.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/usuario/config/security.yml 2007-07-16 15:43:09 UTC (rev 4813)
+++ prosistem/alba/trunk/alba/apps/principal/modules/usuario/config/security.yml 2007-07-16 17:20:02 UTC (rev 4814)
@@ -1,5 +1,3 @@
all:
is_secure: on
credentials: usuario
-
-
Added: prosistem/alba/trunk/alba/web/principal_demo.php
===================================================================
--- prosistem/alba/trunk/alba/web/principal_demo.php 2007-07-16 15:43:09 UTC (rev 4813)
+++ prosistem/alba/trunk/alba/web/principal_demo.php 2007-07-16 17:20:02 UTC (rev 4814)
@@ -0,0 +1,12 @@
+<?php
+
+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();
+
+?>
\ No newline at end of file
Property changes on: prosistem/alba/trunk/alba/web/principal_demo.php
___________________________________________________________________
Name: svn:keywords
+ "Id Author URL Date Rev"
Más información sobre la lista de distribución Alba-desarrollo