Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pro
loki
Commits
de08394f
Commit
de08394f
authored
9 years ago
by
Krzysztof Kutt
Browse files
Options
Download
Email Patches
Plain Diff
przekierowanie logów loki do /dev/null
parent
fff31107
master
3-standalone-swi-prolog
adaptive_ui
provviz
sparqlupdate
wikigame
xttviewer-2022-03-23
xttviewer-2017-09-19
revisionsrater-2017-09-19
rdfloki-2018-09-16
rdfloki-2017-09-19
rdfeditor-2017-09-19
prov-2017-09-19
lokiontology-2023-03-15
lokiontology-2022-03-23
lokiontology-2017-09-19
loki-2023-03-15
loki-2022-03-23
loki-2017-09-19
loki-2016-10-26
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
loki/syntax.php
+2
-2
loki/syntax.php
loki/utl/loki_utl.php
+1
-1
loki/utl/loki_utl.php
with
3 additions
and
3 deletions
+3
-3
loki/syntax.php
View file @
de08394f
...
...
@@ -219,7 +219,7 @@ class syntax_plugin_loki extends DokuWiki_Syntax_Plugin
$fullgoal
=
"[library(rdf)],load_rdf('"
.
TEMP_DIR
.
"dokuwiki.rdf"
.
$hash
.
"', H),checklist(assert, H) ,"
.
$goal
;
if
(
strlen
(
$goal
)
==
0
)
{
$fullgoal
=
rtrim
(
$fullgoal
,
','
)
.
'.'
;
}
exec
(
'LANG=pl_PL.utf-8; /usr/bin/swipl -q -g "'
.
$fullgoal
.
'" -t halt > '
.
TEMP_DIR
.
'dokuwiki.loki'
.
$hash
.
$msgerr
)
;
exec
(
'LANG=pl_PL.utf-8; /usr/bin/swipl -q -g "'
.
$fullgoal
.
'" -t halt > '
.
TEMP_DIR
.
'dokuwiki.loki'
.
$hash
.
$msgerr
.
' 2> /dev/null'
)
;
// exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -g "'.$fullgoal.'" -t halt > '.TEMP_DIR.'dokuwiki.prolog'.$hash.$msgerr) ;
if
(
$GLOBALS
[
'ACT'
]
==
'preview'
)
{
...
...
@@ -351,7 +351,7 @@ class syntax_plugin_loki extends DokuWiki_Syntax_Plugin
{
//exec('LANG=pl_PL.utf-8; /usr/bin/swipl -f '.TEMP_DIR.'dokuwiki.code -g "'.$goal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki') ;
//exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '.TEMP_DIR.'dokuwiki.code'.$hash.' -g "'.$trace.$goal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki'.$hash.$msgerr) ;
exec
(
'LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '
.
TEMP_DIR
.
'dokuwiki.code'
.
$hash
.
' -g "'
.
$trace
.
$goal
.
'" -t halt > '
.
TEMP_DIR
.
'dokuwiki.loki'
.
$hash
.
$msgerr
)
;
exec
(
'LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '
.
TEMP_DIR
.
'dokuwiki.code'
.
$hash
.
' -g "'
.
$trace
.
$goal
.
'" -t halt > '
.
TEMP_DIR
.
'dokuwiki.loki'
.
$hash
.
$msgerr
.
' 2> /dev/null'
)
;
$retval
=
file_get_contents
(
TEMP_DIR
.
"dokuwiki.loki"
.
$hash
);
if
(
file_exists
(
TEMP_DIR
.
"disperrors"
.
$hash
))
$renderer
->
doc
.
=
"
\n
"
.
file_get_contents
(
TEMP_DIR
.
"disperrors"
.
$hash
);
...
...
This diff is collapsed.
Click to expand it.
loki/utl/loki_utl.php
View file @
de08394f
...
...
@@ -32,7 +32,7 @@ class LokiUtl {
exec
(
'grep ".*" -rh $(grep -rl ".*" '
.
TEMP_DIR
.
' | grep "'
.
$scope
.
'") >> '
.
TEMP_DIR
.
'dokuwiki.code'
.
$hash
);
}
exec
(
'LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '
.
TEMP_DIR
.
'dokuwiki.code'
.
$hash
.
' -g "'
.
$goal
.
'" -t halt > '
.
TEMP_DIR
.
'dokuwiki.loki'
.
$hash
)
;
exec
(
'LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '
.
TEMP_DIR
.
'dokuwiki.code'
.
$hash
.
' -g "'
.
$goal
.
'" -t halt > '
.
TEMP_DIR
.
'dokuwiki.loki'
.
$hash
.
' 2> /dev/null'
)
;
$result
=
file_get_contents
(
TEMP_DIR
.
"dokuwiki.loki"
.
$hash
);
if
(
$gather_data
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help