Skip to content
Snippets Groups Projects
Commit ba28f5fa authored by alvaro's avatar alvaro
Browse files

Added very preliminar session support

parent 209670df
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,12 @@ class Utils{
echo $uri."\n\n";
exit(0);
}
public static function send401($msg){
header("HTTP/1.0 404 Not Found");
echo $msg;
exit(0);
}
public static function send404($uri){
header("HTTP/1.0 404 Not Found");
......
......@@ -48,12 +48,22 @@ $conf['type']['priorities']['rdfs:Resource'] = -1;
//Debug
$conf['debug'] = false;
//Session module
//First version: really simple user/pass
$conf['session']['user'] = 'admin';
$conf['session']['password'] = 'admin';
//Modules: LODSPeaKr will try to match the requested URI
//using the modules in the following order
$conf['modules'] = array();
$conf['modules']['directory'] = 'classes/modules/';
$conf['modules']['available'] = array('static','uri', 'type', 'service');
//Uncomment next line to enable sessions
//$conf['modules']['available'] = array('session', 'static','uri', 'type', 'service');
include_once('settings.inc.php');
$conf['view']['standard']['baseUrl'] = $conf['basedir'];
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment