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
0d589a8f
Commit
0d589a8f
authored
13 years ago
by
alangrafu
Browse files
Options
Downloads
Plain Diff
Merge branch 'development'
parents
86494f74
2fa85a72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
classes/Exporter.php
+5
-1
5 additions, 1 deletion
classes/Exporter.php
classes/Importer.php
+7
-2
7 additions, 2 deletions
classes/Importer.php
index.php
+1
-1
1 addition, 1 deletion
index.php
with
13 additions
and
4 deletions
classes/Exporter.php
+
5
−
1
View file @
0d589a8f
...
...
@@ -31,7 +31,11 @@ class Exporter{
array_push
(
$triples
,
$t
);
$t
[
'o'
]
=
LS
.
'Application'
;
array_push
(
$triples
,
$t
);
if
(
$conf
[
'parentApp'
]
!=
NULL
){
$t
[
'p'
]
=
OPMV
.
'wasDerivedFrom'
;
$t
[
'o'
]
=
$conf
[
'parentApp'
];
array_push
(
$triples
,
$t
);
}
$t
[
'p'
]
=
LS
.
'usedParameter'
;
$t
[
'o'
]
=
uniqid
(
"_:b"
);
...
...
This diff is collapsed.
Click to expand it.
classes/Importer.php
+
7
−
2
View file @
0d589a8f
...
...
@@ -58,7 +58,7 @@ class Importer{
//$arr = explode("lodspeakr/benegesserit", $this->basedir);
//$this->basedir = $arr[0];
$content
.
=
"
\$
conf['basedir'] =
\"
$this->basedir
\"
;
\n
"
;
$content
.
=
"
\$
conf['parentApp'] =
\"
$app
\"
;
\n
"
;
$pwd
=
getcwd
();
$content
.
=
"
\$
conf['home'] =
\"
$pwd
/
\"
;
\n
"
;
...
...
@@ -78,7 +78,12 @@ class Importer{
foreach
(
$appParams
as
$k
=>
$v
){
$content
.
=
"
\$
conf['
$k
'] =
\"
$v
\"
;
\n
"
;
}
$content
.
=
"/*ATTENTION: By default this application is available to
* be exported and copied (its configuration)
* by others. If you do not want that,
* turn the next option as false
*/
\$
conf['export'] = true;
\n\n
"
;
//Components
foreach
(
$compArr
as
$v
){
$component
=
$v
[
's'
];
...
...
This diff is collapsed.
Click to expand it.
index.php
+
1
−
1
View file @
0d589a8f
...
...
@@ -41,7 +41,7 @@ $extension = Utils::getExtension($acceptContentType);
if
(
$acceptContentType
==
NULL
){
Utils
::
send406
(
$uri
);
}
if
(
file_exists
(
$conf
[
'static'
][
'directory'
]
.
$_GET
[
'q'
])
&&
sizeof
(
$_GET
[
'q'
])
>
0
){
if
(
sizeof
(
$_GET
[
'q'
])
>
0
&&
file_exists
(
$conf
[
'static'
][
'directory'
]
.
$_GET
[
'q'
])){
echo
file_get_contents
(
$conf
[
'static'
][
'directory'
]
.
$_GET
[
'q'
]);
exit
(
0
);
}
...
...
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