Skip to content

Commit

Permalink
Apply upgrade to 2017-02-19e 'Frusterick Manners'
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Sep 20, 2017
1 parent 4c8f884 commit 3cd1032
Show file tree
Hide file tree
Showing 2,101 changed files with 154,002 additions and 8,791 deletions.
2 changes: 1 addition & 1 deletion dokuwiki/README
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ at http://www.dokuwiki.org/
For Installation Instructions see
http://www.dokuwiki.org/install

DokuWiki - 2004-2014 (c) Andreas Gohr <andi@splitbrain.org>
DokuWiki - 2004-2016 (c) Andreas Gohr <andi@splitbrain.org>
and the DokuWiki Community
See COPYING and file headers for license info

2 changes: 1 addition & 1 deletion dokuwiki/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2014-09-29d "Hrun"
2017-02-19e "Frusterick Manners"
9 changes: 7 additions & 2 deletions dokuwiki/bin/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
order allow,deny
deny from all
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
Order allow,deny
Deny from all
</IfModule>
7 changes: 4 additions & 3 deletions dokuwiki/bin/dwpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ protected function setup(DokuCLI_Options $options) {
$options->registerOption(
'user',
'work as this user. defaults to current CLI user',
'u'
'u',
'username'
);
$options->setHelp(
'Utility to help command line Dokuwiki page editing, allow '.
Expand Down Expand Up @@ -239,15 +240,15 @@ protected function obtainLock($wiki_id) {
if($this->force) $this->deleteLock($wiki_id);

$_SERVER['REMOTE_USER'] = $this->username;

if(checklock($wiki_id)) {
$this->error("Page $wiki_id is already locked by another user");
exit(1);
}

lock($wiki_id);

$_SERVER['REMOTE_USER'] = '_'.$this->username.'_';
if(checklock($wiki_id) != $this->username) {
if(checklock($wiki_id)) {
$this->error("Unable to obtain lock for $wiki_id ");
var_dump(checklock($wiki_id));
exit(1);
Expand Down
10 changes: 6 additions & 4 deletions dokuwiki/bin/gittool.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected function main(DokuCLI_Options $options) {
/**
* Tries to install the given extensions using git clone
*
* @param $extensions
* @param array $extensions
*/
public function cmd_clone($extensions) {
$errors = array();
Expand Down Expand Up @@ -130,7 +130,7 @@ public function cmd_clone($extensions) {
/**
* Tries to install the given extensions using git clone with fallback to install
*
* @param $extensions
* @param array $extensions
*/
public function cmd_install($extensions) {
$errors = array();
Expand Down Expand Up @@ -206,12 +206,13 @@ public function cmd_repos() {
* Install extension from the given download URL
*
* @param string $ext
* @return bool
* @return bool|null
*/
private function downloadExtension($ext) {
/** @var helper_plugin_extension_extension $plugin */
$plugin = plugin_load('helper', 'extension_extension');
if(!$ext) die("extension plugin not available, can't continue");

$plugin->setExtension($ext);

$url = $plugin->getDownloadURL();
Expand Down Expand Up @@ -291,12 +292,13 @@ private function findRepos() {
* Returns the repository for the given extension
*
* @param $extension
* @return bool|string
* @return false|string
*/
private function getSourceRepo($extension) {
/** @var helper_plugin_extension_extension $ext */
$ext = plugin_load('helper', 'extension_extension');
if(!$ext) die("extension plugin not available, can't continue");

$ext->setExtension($extension);

$repourl = $ext->getSourcerepoURL();
Expand Down
3 changes: 2 additions & 1 deletion dokuwiki/bin/striplangs.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ protected function setup(DokuCLI_Options $options) {
$options->registerOption(
'keep',
'Comma separated list of languages to keep in addition to English.',
'k'
'k',
'langcodes'
);
$options->registerOption(
'english-only',
Expand Down
20 changes: 20 additions & 0 deletions dokuwiki/bin/wantedpages.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ protected function main(DokuCLI_Options $options) {
}
}

/**
* Determine directions of the search loop
*
* @param string $entry
* @param string $basepath
* @return int
*/
protected function dir_filter($entry, $basepath) {
if($entry == '.' || $entry == '..') {
return WantedPagesCLI::DIR_CONTINUE;
Expand All @@ -77,6 +84,13 @@ protected function dir_filter($entry, $basepath) {
return WantedPagesCLI::DIR_CONTINUE;
}

/**
* Collects recursively the pages in a namespace
*
* @param string $dir
* @return array
* @throws DokuCLI_Exception
*/
protected function get_pages($dir) {
static $trunclen = null;
if(!$trunclen) {
Expand Down Expand Up @@ -108,6 +122,12 @@ protected function get_pages($dir) {
return $pages;
}

/**
* Parse instructions and returns the non-existing links
*
* @param array $page array with page id and file path
* @return array
*/
function internal_links($page) {
global $conf;
$instructions = p_get_instructions(file_get_contents($page['file']));
Expand Down
9 changes: 7 additions & 2 deletions dokuwiki/conf/.htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## no access to the conf directory
order allow,deny
deny from all
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
Order allow,deny
Deny from all
</IfModule>
5 changes: 3 additions & 2 deletions dokuwiki/conf/dokuwiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
$conf['auth_security_timeout'] = 900; //time (seconds) auth data is considered valid, set to 0 to recheck on every page view
$conf['securecookie'] = 1; //never send HTTPS cookies via HTTP
$conf['remote'] = 0; //Enable/disable remote interfaces
$conf['remoteuser'] = '!!not set !!'; //user/groups that have access to remote interface (comma separated)
$conf['remoteuser'] = '!!not set!!'; //user/groups that have access to remote interface (comma separated)

/* Antispam Features */
$conf['usewordblock']= 1; //block spam based on words? 0|1
Expand Down Expand Up @@ -149,7 +149,7 @@
// bz2 generates smaller files, but needs more cpu-power
$conf['gzip_output'] = 0; //use gzip content encodeing for the output xhtml (if allowed by browser)
$conf['compress'] = 1; //Strip whitespaces and comments from Styles and JavaScript? 1|0
$conf['cssdatauri'] = 0; //Maximum byte size of small images to embed into CSS, won't work on IE<8
$conf['cssdatauri'] = 512; //Maximum byte size of small images to embed into CSS, won't work on IE<8
$conf['send404'] = 0; //Send a HTTP 404 status for non existing pages?
$conf['broken_iua'] = 0; //Platform with broken ignore_user_abort (IIS+CGI) 0|1
$conf['xsendfile'] = 0; //Use X-Sendfile (1 = lighttpd, 2 = standard)
Expand All @@ -158,6 +158,7 @@

/* Network Settings */
$conf['dnslookups'] = 1; //disable to disallow IP to hostname lookups
$conf['jquerycdn'] = 0; //use a CDN for delivering jQuery?
// Proxy setup - if your Server needs a proxy to access the web set these
$conf['proxy']['host'] = '';
$conf['proxy']['port'] = '';
Expand Down
50 changes: 27 additions & 23 deletions dokuwiki/conf/interwiki.conf
Original file line number Diff line number Diff line change
@@ -1,37 +1,41 @@
# Each URL may contain one of the placeholders {URL} or {NAME}
# Each URL may contain one of these placeholders
# {URL} is replaced by the URL encoded representation of the wikiname
# this is the right thing to do in most cases
# {NAME} this is replaced by the wikiname as given in the document
# no further encoding is done
# only mandatory encoded is done, urlencoding if the link
# is an external URL, or encoding as a wikiname if it is an
# internal link (begins with a colon)
# {SCHEME}
# {HOST}
# {PORT}
# {PATH}
# {QUERY} these placeholders will be replaced with the appropriate part
# of the link when parsed as a URL
# If no placeholder is defined the urlencoded name is appended to the URL

# To prevent losing your added InterWiki shortcuts after an upgrade,
# you should add new ones to interwiki.local.conf

wp http://en.wikipedia.org/wiki/{NAME}
wpfr http://fr.wikipedia.org/wiki/{NAME}
wpde http://de.wikipedia.org/wiki/{NAME}
wpes http://es.wikipedia.org/wiki/{NAME}
wppl http://pl.wikipedia.org/wiki/{NAME}
wpjp http://ja.wikipedia.org/wiki/{NAME}
wpmeta http://meta.wikipedia.org/wiki/{NAME}
doku http://www.dokuwiki.org/
dokubug http://bugs.dokuwiki.org/index.php?do=details&amp;task_id=
rfc http://tools.ietf.org/html/rfc
wp https://en.wikipedia.org/wiki/{NAME}
wpfr https://fr.wikipedia.org/wiki/{NAME}
wpde https://de.wikipedia.org/wiki/{NAME}
wpes https://es.wikipedia.org/wiki/{NAME}
wppl https://pl.wikipedia.org/wiki/{NAME}
wpjp https://ja.wikipedia.org/wiki/{NAME}
wpmeta https://meta.wikipedia.org/wiki/{NAME}
doku https://www.dokuwiki.org/
rfc https://tools.ietf.org/html/rfc
man http://man.cx/
amazon http://www.amazon.com/exec/obidos/ASIN/{URL}/splitbrain-20/
amazon.de http://www.amazon.de/exec/obidos/ASIN/{URL}/splitbrain-21/
amazon.uk http://www.amazon.co.uk/exec/obidos/ASIN/
amazon https://www.amazon.com/dp/{URL}?tag=splitbrain-20
amazon.de https://www.amazon.de/dp/{URL}?tag=splitbrain-21
amazon.uk https://www.amazon.co.uk/dp/{URL}
paypal https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=
phpfn http://www.php.net/{NAME}
coral http://{HOST}.{PORT}.nyud.net:8090{PATH}?{QUERY}
freecache http://freecache.org/{NAME}
sb http://www.splitbrain.org/go/
phpfn https://secure.php.net/{NAME}
skype skype:{NAME}
google.de http://www.google.de/search?q=
go http://www.google.com/search?q={URL}&amp;btnI=lucky
google.de https://www.google.de/search?q=
go https://www.google.com/search?q={URL}&amp;btnI=lucky
user :user:{NAME}

# To support VoIP/SIP links
# To support VoIP/SIP/TEL links
callto callto://{NAME}

tel tel:{NAME}
16 changes: 8 additions & 8 deletions dokuwiki/conf/license.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@
'url' => 'http://creativecommons.org/licenses/publicdomain/',
);
$license['cc-by'] = array(
'name' => 'CC Attribution 3.0 Unported',
'url' => 'http://creativecommons.org/licenses/by/3.0/',
'name' => 'CC Attribution 4.0 International',
'url' => 'http://creativecommons.org/licenses/by/4.0/',
);
$license['cc-by-sa'] = array(
'name' => 'CC Attribution-Share Alike 3.0 Unported',
'url' => 'http://creativecommons.org/licenses/by-sa/3.0/',
'name' => 'CC Attribution-Share Alike 4.0 International',
'url' => 'http://creativecommons.org/licenses/by-sa/4.0/',
);
$license['gnufdl'] = array(
'name' => 'GNU Free Documentation License 1.3',
'url' => 'http://www.gnu.org/licenses/fdl-1.3.html',
);
$license['cc-by-nc'] = array(
'name' => 'CC Attribution-Noncommercial 3.0 Unported',
'url' => 'http://creativecommons.org/licenses/by-nc/3.0/',
'name' => 'CC Attribution-Noncommercial 4.0 International',
'url' => 'http://creativecommons.org/licenses/by-nc/4.0/',
);
$license['cc-by-nc-sa'] = array(
'name' => 'CC Attribution-Noncommercial-Share Alike 3.0 Unported',
'url' => 'http://creativecommons.org/licenses/by-nc-sa/3.0/',
'name' => 'CC Attribution-Noncommercial-Share Alike 4.0 International',
'url' => 'http://creativecommons.org/licenses/by-nc-sa/4.0/',
);

10 changes: 5 additions & 5 deletions dokuwiki/conf/mysql.conf.php.example
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $conf['plugin']['authmysql']['TablesToLock']= array("users", "users AS u","group
* of the user. If the result table is empty or contains more than one
* row, access will be denied.
*
* The plugin accesses the password as 'pass' so a alias might be necessary.
* The plugin accesses the password as 'pass' so an alias might be necessary.
*
* Following patters will be replaced:
* %{user} user name
Expand Down Expand Up @@ -107,10 +107,10 @@ $conf['plugin']['authmysql']['getGroups'] = "SELECT name as `group`
/* This statement should return a table containing all user login names
* that meet certain filter criteria. The filter expressions will be added
* case dependend by the plugin. At the end a sort expression will be added.
* Important is that this list contains no double entries fo a user. Each
* Important is that this list contains no double entries for a user. Each
* user name is only allowed once in the table.
*
* The login name will be accessed as 'user' to a alias might be neseccary.
* The login name will be accessed as 'user' to an alias might be neseccary.
* No patterns will be replaced in this statement but following patters
* will be replaced in the filter expressions:
* %{user} in FilterLogin user's login name
Expand Down Expand Up @@ -174,7 +174,7 @@ $conf['plugin']['authmysql']['delGroup'] = "DELETE FROM groups
WHERE gid='%{gid}'";

/* This statement should return the database index of a given user name.
* The plugin will access the index with the name 'id' so a alias might be
* The plugin will access the index with the name 'id' so an alias might be
* necessary.
* following patters will be replaced:
* %{user} user name
Expand Down Expand Up @@ -240,7 +240,7 @@ $conf['plugin']['authmysql']['delUserGroup']= "DELETE FROM usergroup
AND gid='%{gid}'";

/* This statement should return the database index of a given group name.
* The plugin will access the index with the name 'id' so a alias might
* The plugin will access the index with the name 'id' so an alias might
* be necessary.
*
* Following patters will be replaced:
Expand Down
6 changes: 1 addition & 5 deletions dokuwiki/conf/wordblock.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
# patches welcome
#
https?:\/\/(\S*?)(-side-effects|top|pharm|pill|discount|discount-|deal|price|order|now|best|cheap|cheap-|online|buy|buy-|sale|sell)(\S*?)(cialis|viagra|prazolam|xanax|zanax|soma|vicodin|zenical|xenical|meridia|paxil|prozac|claritin|allegra|lexapro|wellbutrin|zoloft|retin|valium|levitra|phentermine)
gay\s*sex
bi\s*sex
incest
https?:\/\/(\S*?)(bi\s*sex|gay\s*sex|fetish|incest|penis|\brape\b)
zoosex
gang\s*bang
facials
ladyboy
fetish
\btits\b
\brape\b
bolea\.com
52crystal
baida\.org
Expand Down
9 changes: 7 additions & 2 deletions dokuwiki/data/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
order allow,deny
deny from all
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
Order allow,deny
Deny from all
</IfModule>

0 comments on commit 3cd1032

Please sign in to comment.