Commit Graph

66 Commits

Author SHA1 Message Date
Andreas Gohr 70cc2cbf41 added logviwer admin plugin
This allows for easy viewing of the available logs.

The log format was sligthly adjusted again for easier parsing.
2020-08-13 19:48:45 +02:00
Andreas Gohr c1ec88ce7a remove calls to deprecated methods and classes 2020-05-01 23:30:25 +02:00
Phy bc20e40a4a
add overwrite option on extension upload form
By default, on frontend $overwrite is false. Backend function installFromUpload
/ installFromURL will have a default of true to preserve existing behavior for
other API users.

installArchive now will insert a frontend msg() about not installing because of
overwrite restriction. It's not being exposed by exception, but it should be
reflected on its return array list of installed plugin.

This fixes #715.
2020-03-09 18:54:53 -04:00
Andreas Gohr bcb9e6dfd9
Merge pull request #2985 from movatica/fix_fperm
Fixed inconsistent handling of falsy values on fperm setting
2020-03-04 15:13:43 +01:00
movatica 3aa7587497 Fixed inconsistent handling of falsy values on fperm setting
The $conf['fperm'] value was checked in multiple files using different methods.
This can cause permission trouble with restricted environments, i.e. when chmod is forbidden and file permissions are non-default.
Now, all checks use implicit cast to boolean which leads to consistent behaviour.

Also, a misleading variable was renamed in context to better understand one of the checks.
2020-02-18 19:29:53 +01:00
Satoshi Sahara 1d4a5a70d1 fix bundled extension list 2020-02-16 11:35:36 +09:00
Satoshi Sahara 86e8f706d2 coding style 2020-02-15 01:55:20 +09:00
Satoshi Sahara cf83359537 PSR-12 coding style 2020-02-12 08:13:06 +09:00
Andreas Gohr 8cbc5ee84f replaced deprecated utf8 functions
For now this uses full qualified namespaces, sensible imports may come
later.
2019-06-10 16:12:59 +02:00
Andreas Gohr 1935a89170 Move list of plugin types to plugin controller constant
There is no need to have them in a global variable.
2019-04-21 19:31:27 +02:00
Andreas Gohr 3a7140a158 moved plugin controller to Extension namespace 2019-04-20 21:55:27 +02:00
Michael Große 5a8d6e48ea
Rename HTTPClient namespace to HTTP
This should make namespace a bit more flexible in scope and allow us to
move more functionality there later.
2019-03-26 22:05:09 +01:00
Michael Große 198564ab36
Refactor HTTPClient into different files 2019-03-17 13:36:40 +01:00
Michael Große 923e149a1f
Merge branch 'master' into psr2 2019-02-15 01:05:01 +01:00
LarsGit223 bf209a6726 extension: set User-Agent header to 'DokuWiki HTTP Client (Extension Manager)'
This solves problems with project hosters which do not start an download immediately
if the User-Agent seems to be a browser, also see #2410.
2018-10-22 19:46:36 +02:00
Andreas Gohr 18b1e90a59 PSR-2 for extension plugin 2018-05-08 20:28:18 +02:00
Andreas Gohr 64159a61e9 line lengths shortened
This makes sure all files use line lenghts shorter than 120 characters.

This is a quick fix. It might not always be the nicest change.
2018-04-27 19:07:43 +02:00
Andreas Gohr b4f2363aa1 remove DOKU_INC checks
There is no need for this check, since these files should not have any
main code that is executed on direct call.

Fixes PSR1.Files.SideEffects.FoundWithSymbols
2018-04-27 14:32:42 +02:00
Michael Große 9edb4cd501 fix: correctly show conflicts in extension manager 2017-08-27 19:51:02 +02:00
Andreas Gohr 8cec8a5474 clean extension names. fixes #2042
This makes sure the provided extension ID is a valid id before
initializing it in the extension manager.
2017-07-05 19:48:33 +02:00
Andreas Gohr c23fdc4603 added authpdo to the list of bundled plugins 2016-06-10 09:51:47 +02:00
Andreas Gohr 874f411fe8 Merge pull request #1240 from splitbrain/plugindeletedfiles
remove deleted files on update of extension
2015-07-27 10:52:03 +02:00
Andreas Gohr b28801bc7f added plugin to list of bundled extensions 2015-07-18 12:51:25 +02:00
Gerrit Uitslag 1afa9ba84a remove deleted files on update of extension
Resolves #1192

`/lib/plugins/<plugin>/deleted.files`
which list files that can be removed e.g.
```
# This is a list of files that were present in previous plugin releases
# but were removed later. An up to date plugin should not have any of
# the files installed
action.php
folder/file.txt
```
2015-07-16 22:14:13 +02:00
Andreas Gohr 18f4ec973d fixed isBundled() check when remote info is unavailable 2015-05-25 10:41:49 +02:00
Andreas Gohr 605f8e8d0e added composer setup and the first composer package php-archive 2015-05-15 15:42:12 +02:00
Andreas Gohr 79e7937762 Remove error supression for file_exists()
In an older version of PHP a file_exists() call would issue a warning
when the file did not exist. This was fixed in later PHP releases. Since
we require PHP 5.3 now, there's no need to supress any error here
anymore. This might even give a minor performance boost.
2015-01-07 10:47:45 +01:00
Gerrit Uitslag 253d4b48ec more PHPDocs, unused var, small bit code reformatting 2014-10-01 15:32:05 +02:00
Andreas Gohr 59d6be9544 update manager.dat correctly on install. closes #704 2014-05-13 19:43:18 +02:00
Andreas Gohr c0d17c851c removed another case of superflous multiple cache invalidation 2014-05-13 19:43:18 +02:00
Andreas Gohr 811653d715 fix icon for plugins following templates in extension manager 2014-05-10 15:18:20 +02:00
Andreas Gohr bc1b7a8a0f better filename parsing
The filename found in the URL will be used for old plugins missing a
base entry in their plugin.info.txt and lacking a subdirectory inside
the archive as well. This patch makes sure possible query strings aren't
included in the filename.

Note: io_download() will also try to get a filename from any
content-disposition header.

If no filename can be found we simply use an md5 sum of the URL and hope
the plugin will contain it's own hint for naming.
2014-01-08 20:28:17 +01:00
Andreas Gohr 4bad83d828 use DOKU_LF
PHP_EOL is platform dependent, so you get in trouble while migrating
between platforms.
2014-01-08 20:19:20 +01:00
Andreas Gohr ec8911d497 remove unneeded try/catch blocks
they were just catching and rethrowing
2014-01-08 20:18:04 +01:00
Andreas Gohr cf37525f0a typo fix 2014-01-06 21:31:14 +01:00
Andreas Gohr 189c9cabe2 purge cache only once on install
this is not a extension specific cache but a global one. no need to
purge for each installed extension
2014-01-06 21:29:52 +01:00
Andreas Gohr 0826f6cbd9 now use new core funtion to recursively delete 2014-01-06 21:06:09 +01:00
Anika Henke 77da6d6ca6 added css and html changes for RTL scripts to extension manager 2014-01-05 22:25:41 +00:00
Andreas Gohr a4667104ff added git warning 2014-01-05 21:22:31 +01:00
Andreas Gohr 9672d9f3bf removed the old plugin manager 2014-01-05 20:58:48 +01:00
Andreas Gohr 5284857cb2 protect authplain and current auth plugin 2014-01-05 20:45:32 +01:00
Andreas Gohr bcdcd3d147 do not show updates for bundled plugins 2014-01-05 20:39:25 +01:00
Andreas Gohr 16660d32b7 use config for firguring out if an extension is protected 2014-01-05 20:29:14 +01:00
Andreas Gohr 220ab8d2df even more fixes for the bundled extension list 2014-01-05 20:01:45 +01:00
Andreas Gohr 947a047235 template:default is no longer bundled 2014-01-05 19:57:07 +01:00
Andreas Gohr 9a2e74c192 the plugin is called testing not test 2014-01-05 19:55:36 +01:00
Andreas Gohr 9597c3b83b just not handle enable/disable for templates for now 2013-08-11 12:05:09 +02:00
Andreas Gohr e445eeb3b6 fixed button logic 2013-08-11 11:19:34 +02:00
Andreas Gohr 8d295da079 language cleanup
removed all unused strings
2013-08-10 11:46:09 +02:00
Andreas Gohr fee60c9e19 manual install tab now works 2013-08-10 10:23:04 +02:00