From 626bb5bce78572a64c5bc3a1868cd1ea20bf6eaf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Nana?= <sebastien.nana@maarch.org>
Date: Thu, 19 Nov 2009 18:18:46 +0000
Subject: [PATCH]

---
 core/trunk/index.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/core/trunk/index.php b/core/trunk/index.php
index 72dce25c65a..1d2a35e5324 100644
--- a/core/trunk/index.php
+++ b/core/trunk/index.php
@@ -10,14 +10,17 @@
 * @license GPL v3
 * @author  Laurent Giovannoni  <dev@maarch.org>
 */
-session_name('PeopleBox');
-session_start();
+
+include_once('core/init.php');
 require_once("core/class/class_functions.php");
 require_once("core/class/class_portal.php");
+require_once("core/class/class_core_tools.php");
 $portal = new portal();
 $portal->unset_session();
 $portal->build_config();
 $func = new functions();
+$core = new core_tools();
+$_SESSION['custom_override_id'] = $core->get_custom_id();
 //$func->show_array($_SESSION['config']);
 //$func->show_array($_SESSION['businessapps']);
 //$func->show_array($_SESSION['tablename']);
@@ -27,7 +30,7 @@ if(isset($_SESSION['config']['defaultlang']) && !empty($_SESSION['config']['defa
 }
 /*print_r($_SESSION['config']);
 exit;*/
-if($_GET['origin'] == "scan")
+if(isset($_GET['origin']) && $_GET['origin'] == "scan")
 {
 	header("location: apps/".$_SESSION['businessapps'][0]['appid']."/reopen.php");
 }
-- 
GitLab