#
f64a85f7 |
| 29-Jul-2025 |
Andreas Gohr <gohr@cosmocode.de> |
auto fixes
|
#
c468f8ca |
| 28-Jul-2025 |
Andreas Gohr <gohr@cosmocode.de> |
refactor: improve and modularize animal detection logic #87
The monolithic detectAnimal() method has been broken down into smaller, more manageable helper methods. Each method is responsible for a s
refactor: improve and modularize animal detection logic #87
The monolithic detectAnimal() method has been broken down into smaller, more manageable helper methods. Each method is responsible for a single detection mechanism (query string, bang path, hostname).
This also adds support for passing a full URL as the animal parameter on the command line, allowing for better simulation of web requests.
show more ...
|
#
f652f316 |
| 16-Apr-2024 |
splitbrain <86426+splitbrain@users.noreply.github.com> |
Automatic code style fixes
|
#
700b5633 |
| 16-Apr-2024 |
Andreas Gohr <andi@splitbrain.org> |
allow setting the farm dir via an environment variable
This allows us to preconfigure the farmer plugin in the Docker container.
|
#
4b1aad07 |
| 14-Feb-2024 |
atisne <aurelien.tisne@csgroup.eu> |
Merge remote-tracking branch 'origin/master' into feat-inherit_protected
|
#
1da41c8b |
| 20-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
(semi)automatic code style fixes
|
#
a2a8c90b |
| 20-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
use ufo operator for comparison. replaces #81
|
#
2dcb6a7d |
| 17-Mar-2023 |
atisne <aurelien.tisne@csgroup.eu> |
Update config cascade to inherit protected settings from the farmer
Useful to freeze some global choices, like authentication method, security choices, ... It's still possible to overwrite protected
Update config cascade to inherit protected settings from the farmer
Useful to freeze some global choices, like authentication method, security choices, ... It's still possible to overwrite protected settings in the animal.
show more ...
|
#
917a67f0 |
| 12-May-2022 |
Andreas Gohr <andi@splitbrain.org> |
unset animal from request
as discussed in https://github.com/splitbrain/dokuwiki/issues/3551 the animal should be removed from the list of GET parameters after it has been detected.
|
#
1d971d87 |
| 23-Apr-2019 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #59 from gkrid/fix-run-php-cli-on-animals
Fix run php-cli on animals with the hostbased configuration
|
#
5801023a |
| 23-Apr-2019 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #57 from cosmocode/manifest
✨ add support for default PWA manifest
|
#
adc011d8 |
| 05-Apr-2019 |
Szymon Olewniczak <solewniczak@rid.pl> |
Merge branch 'master' into fix-run-php-cli-on-animals
|
#
3cee9885 |
| 16-Mar-2019 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Add user conf for style inheritance
|
#
bdb1e6e9 |
| 21-Feb-2019 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Correct template placeholder string
|
#
05ea7625 |
| 16-Feb-2019 |
Anna Dabrowska <dabrowska@cosmocode.de> |
WIP style inheritance from farmer
depends on extended config cascade in dokuwiki core
|
#
04dc6bd5 |
| 21-Sep-2018 |
Szymon Olewniczak <solewniczak@rid.pl> |
quite unusual use case but maybe it'll be useful for you too.
I run the following script by php-cli:
``` <?php
//include base config $inc = realpath(__DIR__.'/../../..'); define('DOKU_INC', $inc.'
quite unusual use case but maybe it'll be useful for you too.
I run the following script by php-cli:
``` <?php
//include base config $inc = realpath(__DIR__.'/../../..'); define('DOKU_INC', $inc.'/');
// load and initialize the core system require_once(DOKU_INC.'inc/init.php');
//... ```
The script requires the dokuwiki DOKU_URL to be set properly but getBaseURL function in inc/init.php leads to bad results when $conf['baseurl'] isn't set:
``` function getBaseURL($abs=null){ global $conf; //if canonical url enabled always return absolute if(is_null($abs)) $abs = $conf['canonical'];
if(!empty($conf['basedir'])){ $dir = $conf['basedir']; }elseif(substr($_SERVER['SCRIPT_NAME'],-4) == '.php'){ $dir = dirname($_SERVER['SCRIPT_NAME']); // <- this is wrong when run on command line } ```
This commits fixes that behaviour for host based animal setup.
show more ...
|
#
27d95445 |
| 12-May-2018 |
Michael Große <mic.grosse@googlemail.com> |
feat: add support PWA manifest ✨
Greebo contains support for progressive web app manifests and a default manifest file at conf/manifest.json. This includes that manifest file for animals as well, en
feat: add support PWA manifest ✨
Greebo contains support for progressive web app manifests and a default manifest file at conf/manifest.json. This includes that manifest file for animals as well, ensuring that animals are rendered as standalone too.
show more ...
|
#
36282384 |
| 28-Apr-2016 |
Andreas Gohr <gohr@cosmocode.de> |
make sure HTTP_HOST exists. fixes waring on command line
|
#
af1c6dd8 |
| 27-Apr-2016 |
Andreas Gohr <gohr@cosmocode.de> |
reworked plugin logic
Animals can inherit the plugin state from the farmer. Their configs can now be reset to the default state which is either on or whatever is set in the farmer (when inheriting).
|
#
8262a4cb |
| 27-Apr-2016 |
Andreas Gohr <gohr@cosmocode.de> |
DOKU_FARMDIR should always have a trailing slash
|
#
bfecda9b |
| 19-Apr-2016 |
Andreas Gohr <gohr@cosmocode.de> |
explicitly sort by alphabet when hostname length is same
Should fix tests
|
#
0a5d2da2 |
| 19-Apr-2016 |
Andreas Gohr <gohr@cosmocode.de> |
cleanup and copyrights
|
#
1272da0c |
| 19-Apr-2016 |
Andreas Gohr <gohr@cosmocode.de> |
Added option to inherit users from farmer #16
Requires DokuWiki with splitbrain/dokuwiki#1542 applied.
|
#
de156015 |
| 18-Apr-2016 |
Andreas Gohr <gohr@cosmocode.de> |
automatically disable plugins for animals #12
|
#
c4c8e953 |
| 18-Apr-2016 |
Andreas Gohr <gohr@cosmocode.de> |
use base domain config to link to animals #21
|