Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Commits
ba28f5fa
Commit
ba28f5fa
authored
12 years ago
by
alvaro
Browse files
Options
Downloads
Patches
Plain Diff
Added very preliminar session support
parent
209670df
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/Utils.php
+6
-0
6 additions, 0 deletions
classes/Utils.php
common.inc.php
+10
-0
10 additions, 0 deletions
common.inc.php
with
16 additions
and
0 deletions
classes/Utils.php
+
6
−
0
View file @
ba28f5fa
...
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
common.inc.php
+
10
−
0
View file @
ba28f5fa
...
...
@@ -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'
];
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment