646 Commits

Author SHA1 Message Date
d811c0bc56
@onli fix for s9y/Serendipity#772 2022-02-12 23:29:38 +01:00
fe7f2e16dd
Fix file permission. Add .gitignore for Nova IDE. 2022-02-11 17:36:36 +01:00
Markus Birth
91bfb3a8c9 Remove included Smarty in favour of Composer install. Also removed all
manual loadings of Smarty to let autoloader handle this.
2022-02-10 03:12:54 +01:00
onli
d79ea27422 Reset template script cache token also when saving configuration
Makes it easier to test script changes
2021-09-13 21:11:32 +02:00
surrim
9a60f9a494
Php8 fixes for #766 (#769)
* init empty vars to avoid PHP8 warnings

* removed debug output for serendipity_session_destroy()

* init smarty fixed for PHP8

* removed optional parameters for PHP 8

* 2k11 template fixes, maybe updating smarty will solve everything

* init or test undefined variables for PHP 8

* remove only existing files

* make sure string is not empty before comparing the first letter

* check if SMARTY_DIR was already defined

* use mb_language('uni') for unicode

* fixed image filter bug

* Smarty debug fixed in external lib

* fixed archive bug

* fixed entries bug

* updated plugin versions

Co-authored-by: surrim <surrim@happyhydro.org>
2021-07-18 22:14:23 +02:00
onli
e8bb99752f Fix: Deleting a user throw a token not found error message
Setting POST['serendipity']['user'] triggers the login routine. When that happens a new session is generated, and afterwards the token check fails.
2021-06-08 23:42:59 +02:00
onli
323860150d PHP 8 compatibility fix for installing themes 2021-06-06 21:47:34 +02:00
onli
137ca00367 PHP 8 compat fixes for future entries on overview page 2021-06-06 17:45:42 +02:00
onli
20de7bd442 php 8 compat fix for saving plugin order 2021-05-30 11:47:18 +02:00
onli
f4d5a76add php 8 compat for bbcode plugin configuration 2021-05-29 17:17:08 +02:00
Matthias Gutjahr
8d1dd2994c
php 8 compat fix
Signed-off-by: Matthias Gutjahr <mattsches@gmail.com>
2021-05-26 23:41:39 +02:00
onli
56f17439a1 php 8 compat fix for upgradeable plugins list 2021-05-18 19:37:05 +02:00
onli
cd96ca66c7 php8 compat fixes for personal settings 2021-05-13 21:39:32 +02:00
onli
e448d1c384 php 8 compat for ML item insert into article 2021-05-13 20:16:21 +02:00
onli
28c199c7aa php8 compat fixes for groups section 2021-05-13 17:57:07 +02:00
onli
9f4153dbc4 php8 compat fixes for user creation 2021-05-13 17:03:50 +02:00
onli
17786592e7 php 8 compat fixes for plugin installation 2021-05-13 15:33:27 +02:00
onli
ed24403d36 php 8 compat fixes for comment section 2021-05-13 15:19:54 +02:00
onli
d28b15381c php 8 compat fixes for ML directory section 2021-05-13 14:57:19 +02:00
onli
4cab1db38d php 8 compat: Image upload 2021-05-13 14:13:58 +02:00
onli
60f5277435 php 8 compat fixes t oallow category creation 2021-05-09 21:57:43 +02:00
onli
25cfb97ece php8 compat fixes to save entries again 2021-05-09 17:17:54 +02:00
onli
4c246ad426 php8 compat fixes for entry preview 2021-05-09 16:54:27 +02:00
onli
a6ca0d7fe5 PHP8 compat fixes for media library 2021-05-06 20:45:19 +02:00
onli
ab9962a1f8 PHP8 compat fixes for entry list 2021-05-06 20:45:19 +02:00
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
onli
90dd334327 PHP 8 compatibility fixes for the installer 2021-05-02 09:50:58 +02:00
surrim
11d903efdb unified parameter for backend_image_add hook 2021-02-03 16:34:07 +01:00
Garvin Hicking
37cd0c3808 [TASK] Adds 'image_id' to event 'backend_image_add' in addData array 2020-09-16 11:21:05 +02:00
Uwe Krause
bd3a9ec832 check if php extension xml is available. fixes #741 2020-08-23 15:23:23 +00:00
Uwe Krause
626aac6335 check if php extension xml is available. fixes #741 2020-08-23 15:23:23 +00:00
onli
e1bda89dc0 Split timestamp field for supported HTML5 input types 2020-08-15 07:40:05 +00:00
Stephan Brunker
e893914c7c media: fixup empty selection for upload and empty multiselection issues 2020-05-29 22:16:17 +02:00
onli
17761c6214 Show a warning in the ugprader when plugins are not current (#477) 2020-05-29 11:25:24 +02:00
onli
0ad7691634 Show an error message when the sqlite database is readonly (#427) 2020-05-28 14:07:36 +02:00
Stephan Brunker
0409717586 media_upload: check for empty file input 2020-05-27 21:49:14 +02:00
Stephan Brunker
8e24108b88 admin/entries.inc.php: strip multilingual from iframe entry 2020-05-27 21:49:14 +02:00
Stephan Brunker
0cf227f335 Totally resorted the language files, added subscription strings 2020-05-27 21:49:11 +02:00
Stephan Brunker
0d7f55e616 fix oddments in admin/users and admin/entries 2020-04-14 13:56:45 +02:00
Thomas Hochstein
e288d7e43e Fix display of upgrade notification.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-04-03 09:15:33 +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
fd49846aa1 Add different error messages for ML rename.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-25 13:06:33 +01:00
Thomas Hochstein
18ab57b76b ML: Really add error message when renaming fails.
Fixes 1c95c173a22e15fa22b21d3466b8e5cc9e626645
2020-03-25 11:03:34 +01:00
Thomas Hochstein
1c95c173a2 ML: Add error message when renaming fails.
Completing 1ed4b9e7eca2a0c371582a454c232c

As we already have an (unused) language
constant for this error, we seem to have
had this kind of check before ...

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-25 00:54:48 +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
onli
be422b5e83 Add maintenance tasK: native -> utf8, utf8 -> utf8mb4
Note: Native to utf8 will not work if the data in the database table is actually utf8! These are helper functions for during the alpha, to make testing easier, not tasks for the beta/stable
2020-03-23 17:15:56 +01:00
onli
af036ca58d Add warning to upgrade task for utf8mb4 upgrade 2020-03-23 09:57:59 +01:00