X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/dd0ac437bd66928386cc466a716cab7a50acd62b..e780796e42f04429e069a478c1b68a80caa34260:/src/www/include/prepend.php diff --git a/src/www/include/prepend.php b/src/www/include/prepend.php index 5b75bab..4fe0989 100644 --- a/src/www/include/prepend.php +++ b/src/www/include/prepend.php @@ -2,8 +2,16 @@ // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: require_once 'include/lib/marco/Marco.php'; +require_once 'include/lib/samurai/Samurai_DB.php'; session_start(); +if (!isset($_SESSION['samurai']['id_sistema']) && isset($_GET['id_sistema'])) { + $_SESSION['samurai']['id_sistema'] = $_GET['id_sistema']; +} + +//Realizo la conexion con la base de datos +$tmp = new Samurai_DB; +$DB = $tmp->connect(); ?>