Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | 30-Apr-2025 | - | ||||
COPYING | H A D | 29-Nov-2017 | 17.6 KiB | 341 | 281 | |
README.md | H A D | 29-Nov-2017 | 1.5 KiB | 32 | 22 | |
base_tester.php.orig.php | H A D | 29-Nov-2017 | 9.9 KiB | 293 | 222 | |
plugin.info.txt | H A D | 29-Nov-2017 | 359 | 10 | 8 | |
syntax.php | H A D | 29-Nov-2017 | 11 KiB | 348 | 252 |
README.md
1Condition Plugin for DokuWiki 2============================= 3 4Use : 5 6 <if [condition_list]>doku code</if> 7 or <if [condition_list]>doku code<else>doku code</if> 8 9 [condition_list] is a set of [condition] records separated by logical operators (&&, and, ||, or, ^, xor for now), use of parenthesis is allowed, negation is achieved by using heading ! (ex !foo=bar or !(a=b || c<d) ) 10 11 [condition] is formed from a [key], followed by an [operator] (optionnal) and then a [value] (optionnal) 12 13 [key] is in the list (defined in base_tester.php as of 2009/06/10) : 14 - user : refers to the user "login" (like in $_SERVER['REMOTE_USER']) 15 - group : refers to the user group-set 16 - nsread : refers to the ability of the user to read a namespace 17 - nsedit : refers to the ability of the user to edit a namespace 18 - IP : refers to the client's IP address 19 20 [operator] signification is [key] dependent, for example : 21 - = (==) : equality, membership, read/edit ability on ... 22 - != : non-equality, non-member, no read/edit ability on ... 23 - ... 24 (browse base_tester.php for test_* methods for more information) 25 26 [value] can be a string (whitespace, ) and > free) or a " delimited string (whitespaces, ) and > are then allowed) 27 28All documentation for the User Subscriptions Plugin is available online at: 29http://wiki.splitbrain.org/plugin:condition 30 31(c) 2009 by Etienne Meleard <etienne.meleard@free.fr>, (c) 2013 by Gerry Weißbach <gweissbach@inetsoftware.de> See COPYING for license info. 32