Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
f42d1c75
Commit
f42d1c75
authored
19 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
option for disabling debug output
darcs-hash:20051027183410-7ad00-5ca48cf2d4058016f5cf07887d9eaa7b07a4043f.gz
parent
a89b76cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
conf/dokuwiki.php
+1
-0
1 addition, 0 deletions
conf/dokuwiki.php
doku.php
+1
-1
1 addition, 1 deletion
doku.php
inc/common.php
+6
-0
6 additions, 0 deletions
inc/common.php
inc/parserutils.php
+3
-3
3 additions, 3 deletions
inc/parserutils.php
lib/exe/detail.php
+1
-2
1 addition, 2 deletions
lib/exe/detail.php
with
12 additions
and
6 deletions
conf/dokuwiki.php
+
1
−
0
View file @
f42d1c75
...
...
@@ -37,6 +37,7 @@ $conf['deaccent'] = 1; //convert accented chars to unaccented
$conf
[
'useheading'
]
=
0
;
//use the first heading in a page as its name
$conf
[
'refcheck'
]
=
1
;
//check for references before deleting media files
$conf
[
'refshow'
]
=
0
;
//how many references should be shown, 5 is a good value
$conf
[
'allowdebug'
]
=
1
;
//make debug possible, disable after install! 0|1
/* Antispam Features */
...
...
This diff is collapsed.
Click to expand it.
doku.php
+
1
−
1
View file @
f42d1c75
...
...
@@ -45,7 +45,7 @@
if
(
empty
(
$ACT
))
$ACT
=
'show'
;
if
(
$ACT
==
'debug'
){
if
(
$conf
[
'allowdebug'
]
&&
$ACT
==
'debug'
){
html_debug
();
exit
;
}
...
...
This diff is collapsed.
Click to expand it.
inc/common.php
+
6
−
0
View file @
f42d1c75
...
...
@@ -1120,6 +1120,12 @@ function check(){
}
else
{
msg
(
'mb_string extension not available - PHP only replacements will be used'
,
0
);
}
if
(
$conf
[
'allowdebug'
]){
msg
(
'Debugging support is enabled. If you don\'t need it you should set $conf[\'allowdebug\'] = 0'
,
-
1
);
}
else
{
msg
(
'Debugging support is disabled'
,
1
);
}
msg
(
'Your current permission for this page is '
.
$INFO
[
'perm'
],
0
);
...
...
This diff is collapsed.
Click to expand it.
inc/parserutils.php
+
3
−
3
View file @
f42d1c75
...
...
@@ -90,16 +90,16 @@ function p_cached_xhtml($file){
{
//well then use the cache
$parsed
=
io_readfile
(
$cache
);
$parsed
.
=
"
\n
<!-- cachefile
$cache
used -->
\n
"
;
if
(
$conf
[
'allowdebug'
])
$parsed
.
=
"
\n
<!-- cachefile
$cache
used -->
\n
"
;
}
else
{
$parsed
=
p_render
(
'xhtml'
,
p_cached_instructions
(
$file
),
$info
);
//try to use cached instructions
if
(
$info
[
'cache'
]){
io_saveFile
(
$cache
,
$parsed
);
//save cachefile
$parsed
.
=
"
\n
<!-- no cachefile used, but created -->
\n
"
;
if
(
$conf
[
'allowdebug'
])
$parsed
.
=
"
\n
<!-- no cachefile used, but created -->
\n
"
;
}
else
{
@
unlink
(
$cache
);
//try to delete cachefile
$parsed
.
=
"
\n
<!-- no cachefile used, caching forbidden -->
\n
"
;
if
(
$conf
[
'allowdebug'
])
$parsed
.
=
"
\n
<!-- no cachefile used, caching forbidden -->
\n
"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
lib/exe/detail.php
+
1
−
2
View file @
f42d1c75
...
...
@@ -14,8 +14,7 @@
$IMG
=
getID
(
'media'
);
$ID
=
cleanID
(
$_REQUEST
[
'id'
]);
//FIXME remove me later
if
(
$_REQUEST
[
'debug'
]){
if
(
$conf
[
'allowdebug'
]
&&
$_REQUEST
[
'debug'
]){
print
'<pre>'
;
foreach
(
explode
(
' '
,
'basedir userewrite baseurl useslash'
)
as
$x
){
print
'$'
.
"conf['
$x
'] = '"
.
$conf
[
$x
]
.
"';
\n
"
;
...
...
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