Commit f039c116 authored by thejoelinux's avatar thejoelinux

passage aux sessions saas

parent c543737d
......@@ -10,15 +10,14 @@ function myautoload($class_name) {
}
}
spl_autoload_register("myautoload");
include("config/config.php");
new session_saas();
global $data;
$data = new data();
new session_saas();
if(!array_key_exists("logged_user", $_SESSION)) {
header($_SERVER['SERVER_PROTOCOL'] . ' 403 Not Authorized', true, 403);
exit();
}
// this is a json-only zone
header("Content-Type: application/json");
if(array_key_exists("o", $_REQUEST) && $_REQUEST["o"] != ""
......
......@@ -22,7 +22,4 @@ $_REQUEST["o"] = (array_key_exists("o", $_REQUEST)) ? $_REQUEST["o"] : "home";
// call of the controller
$controller = str_replace(' ','',ucwords(str_replace('_',' ',$_REQUEST["o"])))."Controller";
$ctrl = new $controller();
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
// DEBUG echo "<pre>"; print_r($_SESSION); echo "</pre>";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment