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
8c867678
Commit
8c867678
authored
11 years ago
by
Anika Henke
Browse files
Options
Downloads
Patches
Plain Diff
removed loading of deprecated RTL styles
parent
c8bbb094
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
inc/config_cascade.php
+0
-3
0 additions, 3 deletions
inc/config_cascade.php
inc/farm.php
+0
-2
0 additions, 2 deletions
inc/farm.php
inc/preload.php
+154
-0
154 additions, 0 deletions
inc/preload.php
lib/exe/css.php
+0
-15
0 additions, 15 deletions
lib/exe/css.php
with
154 additions
and
20 deletions
inc/config_cascade.php
+
0
−
3
View file @
8c867678
...
...
@@ -50,9 +50,6 @@ $config_cascade = array_merge(
),
'userstyle'
=>
array
(
'screen'
=>
DOKU_CONF
.
'userstyle.css'
,
// @deprecated 2012-04-09: rtl will cease to be a mode of its own,
// please use "[dir=rtl]" in any css file in all, screen or print mode instead
'rtl'
=>
DOKU_CONF
.
'userrtl.css'
,
'print'
=>
DOKU_CONF
.
'userprint.css'
,
'feed'
=>
DOKU_CONF
.
'userfeed.css'
,
'all'
=>
DOKU_CONF
.
'userall.css'
,
...
...
This diff is collapsed.
Click to expand it.
inc/farm.php
+
0
−
2
View file @
8c867678
...
...
@@ -135,9 +135,7 @@ $config_cascade = array(
),
),
'userstyle'
=>
array
(
'default'
=>
DOKU_CONF
.
'userstyle.css'
,
// 'default' was renamed to 'screen' on 2011-02-26, so will be deprecated in the next version
'screen'
=>
DOKU_CONF
.
'userstyle.css'
,
'rtl'
=>
DOKU_CONF
.
'userrtl.css'
,
// deprecated since version after 2012-04-09
'print'
=>
DOKU_CONF
.
'userprint.css'
,
'feed'
=>
DOKU_CONF
.
'userfeed.css'
,
'all'
=>
DOKU_CONF
.
'userall.css'
,
...
...
This diff is collapsed.
Click to expand it.
inc/preload.php
0 → 100644
+
154
−
0
View file @
8c867678
<?php
/**
* This overwrites the DOKU_CONF. Each animal gets its own configuration and data directory.
*
* The farm ($farm) can be any directory.
* Animals are direct subdirectories of the farm directory. They have to reflect the domain
* name: If an animal resides in http://www.domain.org:8080/mysite/test/ directories that
* will match range from $farm/8080.www.domain.org.mysite.test/ to a simple $farm/domain/.
*/
$farm
=
'C:/UniServer/www/dokuwiki-farm'
;
//$farm = '';
if
(
!
defined
(
'DOKU_CONF'
))
define
(
'DOKU_CONF'
,
conf_path
(
$farm
));
if
(
!
defined
(
'DOKU_FARM'
))
define
(
'DOKU_FARM'
,
false
);
/**
* Find the appropriate configuration directory.
*
* Try finding a matching configuration directory by stripping the website's
* hostname from left to right and pathname from right to left. The first
* configuration file found will be used; the remaining will ignored. If no
* configuration file is found, return the default confdir './conf'.
*
* @author Anika Henke <anika@selfthinker.org>
* @author virtual host part based on conf_path() from Drupal.org's /includes/bootstrap.inc
* (see http://cvs.drupal.org/viewvc/drupal/drupal/includes/bootstrap.inc?view=markup)
*/
function
conf_path
(
$farm
)
{
if
(
!
$farm
)
return
DOKU_INC
.
'conf/'
;
// htacces based
if
(
isset
(
$_REQUEST
[
'animal'
]))
{
if
(
!
is_dir
(
$farm
.
'/'
.
$_REQUEST
[
'animal'
]))
nice_die
(
"Sorry! This Wiki doesn't exist!"
);
if
(
!
defined
(
'DOKU_FARM'
))
define
(
'DOKU_FARM'
,
'htaccess'
);
return
$farm
.
'/'
.
$_REQUEST
[
'animal'
]
.
'/conf/'
;
}
// virtual host based
$uri
=
explode
(
'/'
,
$_SERVER
[
'SCRIPT_NAME'
]
?
$_SERVER
[
'SCRIPT_NAME'
]
:
$_SERVER
[
'SCRIPT_FILENAME'
]);
$server
=
explode
(
'.'
,
implode
(
'.'
,
array_reverse
(
explode
(
':'
,
rtrim
(
$_SERVER
[
'HTTP_HOST'
],
'.'
)))));
for
(
$i
=
count
(
$uri
)
-
1
;
$i
>
0
;
$i
--
)
{
for
(
$j
=
count
(
$server
);
$j
>
0
;
$j
--
)
{
$dir
=
implode
(
'.'
,
array_slice
(
$server
,
-
$j
))
.
implode
(
'.'
,
array_slice
(
$uri
,
0
,
$i
));
if
(
is_dir
(
"
$farm
/
$dir
/conf/"
))
{
if
(
!
defined
(
'DOKU_FARM'
))
define
(
'DOKU_FARM'
,
'virtual'
);
return
"
$farm
/
$dir
/conf/"
;
}
}
}
// default conf directory in farm
if
(
is_dir
(
"
$farm
/default/conf/"
))
{
if
(
!
defined
(
'DOKU_FARM'
))
define
(
'DOKU_FARM'
,
'default'
);
return
"
$farm
/default/conf/"
;
}
// farmer
return
DOKU_INC
.
'conf/'
;
}
//echo conf_path($farm);
/*
$farm = 'W:/www/dokuwiki-farm';
$farmerURL = 'wiki';
if ($_SERVER['SERVER_NAME'] != $farmerURL) {
// don't do anything if the animal doesn't exist
if(!is_dir($farm . '/' . $_SERVER['SERVER_NAME'])) nice_die("Sorry! This Wiki doesn't exist!");
if(!defined('DOKU_CONF')) define('DOKU_CONF', $farm . '/' . $_SERVER['SERVER_NAME'] . '/conf/');
} else {
if(!defined('DOKU_CONF')) define('DOKU_CONF', DOKU_INC . '/conf/');
}
*/
require_once
@
DOKU_INC
.
'inc/config_cascade.php'
;
$config_cascade
=
array
(
'main'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/dokuwiki.php'
),
'local'
=>
array
(
DOKU_CONF
.
'local.php'
),
'protected'
=>
array
(
DOKU_CONF
.
'local.protected.php'
),
),
'acronyms'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/acronyms.conf'
),
'local'
=>
array
(
DOKU_CONF
.
'acronyms.local.conf'
),
),
'entities'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/entities.conf'
),
'local'
=>
array
(
DOKU_CONF
.
'entities.local.conf'
),
),
'interwiki'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/interwiki.conf'
),
'local'
=>
array
(
DOKU_CONF
.
'interwiki.local.conf'
),
),
'license'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/license.php'
),
'local'
=>
array
(
DOKU_CONF
.
'license.local.php'
),
),
'mediameta'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/mediameta.php'
),
'local'
=>
array
(
DOKU_CONF
.
'mediameta.local.php'
),
),
'mime'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/mime.conf'
),
'local'
=>
array
(
DOKU_CONF
.
'mime.local.conf'
),
),
'scheme'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/scheme.conf'
),
'local'
=>
array
(
DOKU_CONF
.
'scheme.local.conf'
),
),
'smileys'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/smileys.conf'
),
'local'
=>
array
(
DOKU_CONF
.
'smileys.local.conf'
),
),
'wordblock'
=>
array
(
'default'
=>
array
(
DOKU_INC
.
'conf/wordblock.conf'
),
'local'
=>
array
(
DOKU_CONF
.
'wordblock.local.conf'
),
),
// whatever
'acl'
=>
array
(
'default'
=>
DOKU_CONF
.
'acl.auth.php'
,
),
'plainauth.users'
=>
array
(
'default'
=>
DOKU_CONF
.
'users.auth.php'
,
),
'userstyle'
=>
array
(
'default'
=>
DOKU_CONF
.
'userstyle.css'
,
'print'
=>
DOKU_CONF
.
'userprint.css'
,
'feed'
=>
DOKU_CONF
.
'userfeed.css'
,
'all'
=>
DOKU_CONF
.
'userall.css'
,
),
'userscript'
=>
array
(
'default'
=>
DOKU_CONF
.
'userscript.js'
),
'plugins'
=>
array
(
'local'
=>
array
(
DOKU_CONF
.
'plugins.local.php'
),
'protected'
=>
array
(
DOKU_INC
.
'conf/plugins.required.php'
,
DOKU_CONF
.
'plugins.protected.php'
,
),
),
/*'plugins' => array(
'default' => array(DOKU_CONF.'plugins.php'),
'local' => array(DOKU_CONF.'plugins.local.php'),
'protected' => array(DOKU_CONF.'plugins.protected.php'),
),*/
);
This diff is collapsed.
Click to expand it.
lib/exe/css.php
+
0
−
15
View file @
8c867678
...
...
@@ -84,16 +84,6 @@ function css_out(){
if
(
isset
(
$config_cascade
[
'userstyle'
][
$mediatype
])){
$files
[
$mediatype
][
$config_cascade
[
'userstyle'
][
$mediatype
]]
=
DOKU_BASE
;
}
// load rtl styles
// note: this adds the rtl styles only to the 'screen' media type
// @deprecated 2012-04-09: rtl will cease to be a mode of its own,
// please use "[dir=rtl]" in any css file in all, screen or print mode instead
if
(
$mediatype
==
'screen'
)
{
if
(
$lang
[
'direction'
]
==
'rtl'
){
if
(
isset
(
$styleini
[
'stylesheets'
][
'rtl'
]))
$files
[
$mediatype
]
=
array_merge
(
$files
[
$mediatype
],
$styleini
[
'stylesheets'
][
'rtl'
]);
if
(
isset
(
$config_cascade
[
'userstyle'
][
'rtl'
]))
$files
[
$mediatype
][
$config_cascade
[
'userstyle'
][
'rtl'
]]
=
DOKU_BASE
;
}
}
$cache_files
=
array_merge
(
$cache_files
,
array_keys
(
$files
[
$mediatype
]));
}
...
...
@@ -447,11 +437,6 @@ function css_pluginstyles($mediatype='screen'){
$list
[
DOKU_PLUGIN
.
"
$p
/style.css"
]
=
DOKU_BASE
.
"lib/plugins/
$p
/"
;
$list
[
DOKU_PLUGIN
.
"
$p
/style.less"
]
=
DOKU_BASE
.
"lib/plugins/
$p
/"
;
}
// @deprecated 2012-04-09: rtl will cease to be a mode of its own,
// please use "[dir=rtl]" in any css file in all, screen or print mode instead
if
(
$lang
[
'direction'
]
==
'rtl'
){
$list
[
DOKU_PLUGIN
.
"
$p
/rtl.css"
]
=
DOKU_BASE
.
"lib/plugins/
$p
/"
;
}
}
return
$list
;
}
...
...
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