66 Commits

Author SHA1 Message Date
onli
5013d583f2 Apply PHP8 compat fixes for backend controllers
Taken from https://github.com/s9y/Serendipity/pull/750
2021-05-06 20:45:19 +02:00
Thomas Hochstein
53694e2691 Unconditionally keep upgraded_version in plugin cache.
See #685 for more information.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-28 13:22:01 +01:00
Thomas Hochstein
0b2d6bf931 Really set source of plugins.
Fixes d179f1b1540768eb13e75795457822e6477541cc

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-25 15:03:31 +01:00
Thomas Hochstein
d179f1b154 Add plugin source to list of plugins.
* plugin_api.inc.php:
  - Add static list of bundled plugins.
  - Add function to check if plugin is
    bundled.
* plugins.inc.php:
  - Set source of plugin
    (Spartacus, bundled or local).
* plugins.inc.tpl:
  - Display plugin source.
* Add language constants.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-24 15:57:48 +01:00
Thomas Hochstein
f576501737 Revert "Save remote plugin source when merging remote / local data."
This reverts commit 8c702769e428f49671f20b6d1e57c210e52222a7.

We can do this better.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-24 15:36:49 +01:00
Thomas Hochstein
8c702769e4 Save remote plugin source when merging remote / local data.
When installing / updating plugins, plugin data
is fetched from Spartacus first; those plugins
will habe "Spartacus" as "pluginlocation".

Later on, information about installed plugins
is fetched from cache / database, overwriting
the previously fetched data for all installed
plugins. After that, "pluginlocation" is
"local" even for plugins that live on
Spartacus if they have been installed.

So we save "pluginlocation" data to a new
"pluginsource" field before merging /
overwriting so we can detect plugins that
are available on Spartacus.

This data is present in plugins.inc.tpl
and can be used there.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-23 22:28:43 +01:00
Stephan Brunker
502b837dd6 Fix a lot of single issues and overhaul the language settings
see docs/NEWS and the plugin/changelog files for details
2019-10-13 22:49:03 +02:00
Thomas Hochstein
53f63342c6 Fix typo / unify PHP and smarty variable names.
"requirement_failures" from PHP is saved in
"requirements_failues" - "requirements" as
in plural, and with a typo. That doesn't make
sense. Let's use "requirement_failures"
everywhere.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-11 02:18:09 +02:00
onli
52838c0f7b fix: plugin page died because of non-countable object 2018-10-07 19:08:15 +02:00
Thomas Hochstein
b7f479e9fc Display ChangeLog in plugin lists (if available).
Code was using wrong file path variable for checking
the presence of a ChangeLog file.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-07-09 15:07:47 +02:00
klemens
5a95db314a spelling fixes 2017-04-06 22:26:07 +02:00
onli
f947c66f66 Add multiple missing CSRF tokens (#439)
Deleting comments, disabling comment threads, installing plugins, toggling a spartacus update check
2017-01-16 15:32:16 +01:00
onli
9d18a74440 Fix: Both plugin types not upgradeable in shared list (#383) 2016-03-29 19:49:26 +02:00
onli
668363eb1b Merge event and sidebar update page into one (#383) 2016-03-20 14:40:08 +00:00
onli
f7c0fa23bc Show spartacus errors, maka ajax detection global 2015-01-30 22:07:08 +01:00
onli
100c344a14 Use png instead of gif, fix ajax get 2015-01-28 23:45:37 +01:00
onli
c3d6d57db3 show activity indicator and update status 2015-01-28 01:54:38 +01:00
Ian
8da4c647a8 cleanup tabs and whites 2014-11-24 14:17:38 +01:00
onli
92afc37753 Introduce serendipity_specialchars-wrapper for encoding bug (#236)
PHP 5.4 sets UTF-8 as the default for htmlspecialchars, htmlentities and html_entity_decode. The first two will echo an empty string when given a string with umlauts. This commits introduces serendipity_specialchar-wrapper that are meant to be a temporary solution for the s9y-core until PHP 5.6 fixed the bug, so the native charset option of s9y continues to work.
2014-11-23 23:41:08 +01:00
onli
31543ef39a Show no update msg for event and sidebar (#226) 2014-11-11 16:47:11 +01:00
onli
48f820cc33 Don't show stackable-error on plugin upgrade (#45) 2014-06-09 21:42:17 +02:00
Ian
a25a662a02 fix 7e15a61 - see comments
We might need to find out why this behaved differently.
2014-06-06 16:21:56 +02:00
Ian
c38eb784aa debug test missing smarty class for 7e15a61 2014-06-06 14:23:58 +02:00
Ian
7e15a61ed7 compare plugin smarty requirement check with current version 2014-06-06 11:17:32 +02:00
garvinhicking
71e4a6c1a9 Issue #164 - addresses commit @917fb30 2014-05-28 11:38:59 +02:00
onli
bd100c1f4f correct approach to detect installed plugins (#45) 2014-05-27 00:45:42 +02:00
onli
1fcdf783e5 Prevent api to install unstackable plugins twice (#45) 2014-05-27 00:24:28 +02:00
onli
917fb303f2 fix: restore template sidebar settings (#164) 2014-05-26 23:23:35 +02:00
Ian
9083aef7a0 minor - set hooks to use single quotes as everywhere 2014-03-14 10:20:53 +01:00
Garvin Hicking
3d7765f066 upport 1.7.6 security fixes 2014-02-06 09:36:31 +01:00
onli
daa3afe812 Fix drag'n drop in plugin configs
As discussed in #65. Uses a simpler approach to detect the order of the items and their activation at the same time
2013-10-09 16:43:15 +02:00
Ian
1b06ae8c30 upport d080d7e 2013-08-11 15:51:43 +02:00
Ian
2b71d7f814 upport 592ed17007899c80899a6a776607e613c20a8819
fixed $serendipity['baseurl'] → $serendipity['baseURL']
Maybe this was the real issue!!! Anything to revert?
2013-08-10 15:48:56 +02:00
Garvin Hicking
c5708f746c Added new event hooks for plugin and template installation/update 2013-07-23 09:46:44 +02:00
onli
d80a8334c8 Use return instead of echo in the remaining core
Debug-messages still may use echo, and some functions in functions_image and trackback still use it to generate progress messages, which should get cleaned up as well but is not that urgent
2013-07-05 19:16:11 +02:00
onli
9a989dddb3 Remove Advanced-JS option 2013-06-23 20:12:06 +02:00
onli
342d8676bf show_plugin_config: use return instead of echo 2013-06-21 12:28:43 +02:00
onli
02d4df2a02 Move internal plugins into plugin-folder
Stepping stone to later use spartacus for all of them. Will break installed plugins
2013-06-16 19:39:44 +02:00
onli
ae74401668 2k11 is default template, included admin-tpls, and made it installable 2013-05-30 22:19:07 +02:00
onli
a56b5382e1 removed TEMPLATE_SWITCH 2013-05-27 21:06:52 +02:00
onli
6b49f49ba0 ported plugin drag&drop to jquery 2013-05-24 20:40:39 +02:00
Ian
7e061d8c8c fixed addnew plugin count 2013-01-04 18:41:15 +01:00
Matthias Mees
7288ffdef8 Fixed most of the redundant br elements in the core. 2012-12-03 13:35:59 +01:00
Ian
fb81d6a121 added temporary backend developer template dir switch - Please read:
The smartified code as forked from master to 2.0 being outsourced,
now is to find in /include/admin/tplold, which will still be used as
the default backend template dir.
To switch to the new version, please paste the dirs and files of s9y-admin-tpl
as adviced in the readme and reload, but also add a
```php
	// End of Serendipity configuration file
	// You can place your own special variables after here:

	define('SWITCH_TEMPLATE_VERSION', 'true');

```
to the end of your serendipity_config_local.inc.php.

To switch back to the old smartified files, just set a // to the define().
2012-11-20 14:38:28 +01:00
Ian
1ebbeeef36 fixed smartification pluggroup name 2012-06-03 11:51:31 +02:00
onli
8bf8b28885 plugins.inc.php: added missing setFormtoken() 2012-03-02 16:31:52 +01:00
onli
642e25aaed plugins.inc.php: added missing event-hook 2012-03-02 16:16:59 +01:00
onli
38104f37e2 smartified plugins.nc.php 2012-03-02 15:39:58 +01:00
Garvin Hicking
8420699997 template and plugin option groups, experimental 2011-01-03 09:11:17 +00:00
Garvin Hicking
ceecc3f256 html fix 2010-08-26 15:48:31 +00:00