X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/d0ae155a8be2168110755cce58865068b34bfe91..547067710b8d12d2e72d9bf401da3513ff69e89d:/sistema/www/index.php diff --git a/sistema/www/index.php b/sistema/www/index.php index f078c72..aed8f73 100644 --- a/sistema/www/index.php +++ b/sistema/www/index.php @@ -1,5 +1,5 @@ setSistema(SAMURAI_PERM); +if (!$SAMURAI_PERM->tiene(SAMURAI_PERM_DEVELOPER)) { + $SAMURAI_PERM->setSistema($_SESSION['samurai']['id_sistema']); + $SAMURAI_PERM->chequear(SAMURAI_PERM_USUARIO_BAJA, SAMURAI_PERM_USUARIO_MODIF, SAMURAI_PERM_USUARIO_ALTA, + SAMURAI_PERM_PERFIL_ALTA,SAMURAI_PERM_PERFIL_BAJA,SAMURAI_PERM_PERFIL_MODIF,SAMURAI_PERM_PERFIL_TIPO, + SAMURAI_PERM_DEVELOPER); +} +$MARCO =& new MECON_Marco ('/var/www/sistemas/samurai/sistema/conf/confSecciones.php', $SAMURAI_PERM); +//}}} + +//VERIFICO SI SE PASO ALGUNA ACCION {{{ + if (isset($_GET['accion'])) { + switch ($_GET['accion']) { + case 'usuarios': header('Location:usuarios/usuarios'); + break; + case 'perfiles': header('Location:perfiles/perfiles'); + break; + } } - /// }}} - $MARCO = new Marco ('../conf/confSecciones.php'); - $MARCO->addBody(new HTML_Image('images/inicio.jpg')); +//}}} + require_once 'MECON/HTML/Image.php'; + $MARCO->addBody(new MECON_HTML_Image('images/inicio.jpg')); $MARCO->setEspacios(false); $MARCO->display(); ?>