]> git.llucax.com Git - mecon/samurai.git/blobdiff - src/www/include/prepend.php
(no commit message)
[mecon/samurai.git] / src / www / include / prepend.php
index 5b75babd4c196b0cd41e817c2ee6583250be6b85..4fe098910f1b2daca162567f4f41e1fe7f201cbf 100644 (file)
@@ -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();
 
 ?>