X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/5b15a6f7796a86dfeaf9f41911e7cb112f2c6a97..2d6f8464fb2007ab8dd61432bc49218001773338:/sistema/local_lib/prepend.php?ds=sidebyside diff --git a/sistema/local_lib/prepend.php b/sistema/local_lib/prepend.php index 6d89eb9..57331d5 100644 --- a/sistema/local_lib/prepend.php +++ b/sistema/local_lib/prepend.php @@ -13,8 +13,6 @@ require_once 'SAMURAI/constantes.php'; require_once 'MECON/Usuario.php'; -session_start(); - //Realizo la conexion con la base de datos $tmp = new SAMURAI_DB(); $DB =& $tmp->connect(); @@ -32,11 +30,10 @@ elseif (($_SERVER['REQUEST_URI'] != "/sistemas/samurai/sel-sistema" && !@$_SESSION['samurai']['id_sistema']) { header('Location: /sistemas/samurai/sel-sistema?redirect=index'); } -elseif (@$_SESSION['samurai']['id_sistema']) { +if (@$_SESSION['samurai']['id_sistema']) { //Creo el objeto Permiso $SAMURAI_PERM = new SAMURAI_Perm ($_SESSION['usuario'], $_SESSION['samurai']['id_sistema'], $DB); - //Creo el objeto Marco } //}}} ?>