175 Commits

Author SHA1 Message Date
Fraenkiman
84640c6965 Output of support data
- FlatPress provides the admin with all relevant data that could contribute to solving the problem.
- In the event that templates are faulty or a plugin is disrupting FlatPress, the support data can be retrieved via the URL http(s)://your-domain.ltd/admin/support.php.
2024-02-25 20:06:33 +01:00
Fraenkiman
b9dace1686 Fixes #304 | inaccurate error messages
- Fixes #304 | inaccurate error messages in the comment editing panel
2024-02-21 18:47:22 +01:00
Fraenkiman
90d582e88c Use test file for result
- The chmod octal value from the defaults.php file is used for the hint. This has the advantage that you do not have to adjust the 13 language files every time you make a change.
- When restoring the file access rights, a test file in the fp-content directory is used to check whether it is writable. If failed, then -1
2024-02-04 02:25:54 +01:00
Fraenkiman
58368251a7 Fixes a part of the warnings in the edit comment panel under PHP8.1
Fixes: Undefined array key "xyz"
Fixes: Attempt to read property "value" on null
Fixes: Trying to access array offset on value of type null
2024-01-19 20:46:43 +01:00
Fraenkiman
830a5ffce2 Addition to #286
- Meh, integrating several plugins with one action hook does not work properly. Therefore, a separate action hook has been added for each plugin.
- The sensitive DateChanger plugin gets a place above the subject input field
- To do: The plugins in the extra repo still need to be adjusted
2024-01-15 22:05:02 +01:00
Frank Hochmuth
1e059288bc
Update admin.entry.write.tpl
- Datechanger documented
- currently only works from this source: https://github.com/flatpressblog/flatpress-extras/tree/master/fp-plugins/datechanger
- uses add_filter instead of add_action
2024-01-06 00:41:23 +01:00
Fraenkiman
4979cf2fb0 Reworked static.write and entry.write -panel
- Fixes #184

- Fixes the problem when the SEOmetatagInfo plugin and/or Tag plugin were active that no new entries or static pages could be written.
Note: Apparently the Smarty plugin function.toolbar.php does not work correctly with Smarty 4. Should be checked, as the datechanger plugin needs this.
- The HTML code of the administration area now contains a lang attribute in the html start tag to specify the language.
- The "Save page" and "Preview" -buttons in the "Create static pages" -panel now match the style of the other panels
-  Fixes various HTML errors in the PHP code and in the templates. "Write static page" and "Write entry" are now largely valid for HTML5.
- Fixed: in the SEOmetatagInfo plugin an opening <p> element followed an opening <p> element.
2023-12-21 18:35:40 +01:00
Fraenkiman
768aa6fa43 Comment center and Akismet reworked, Typo flatpress
- The ID of the respective entry is now displayed in "Manage entries" so that the admin can use the ID for comment management in Akismet/ CommentCenter.
- Creating or managing the Akismet Api Key now leads directly to akismet.com instead of wordpress.com
- The external link to the Akismet API Key Help has been updated
- The comment center now contains a link to the wiki (dealing with spam comments)
- Typo "flatpress" fixed in several places. FlatPress should always be spelled with a capital F and a capital P.
2023-11-26 01:53:16 +01:00
azett
107f6d99eb Added missing properties to fix "Dynamic properties are deprecated"
errors under PHP 8.2
2023-10-28 13:56:05 +02:00
Frank Hochmuth
d17b2de763
Merge branch 'flatpressblog:master' into upstream/makeup-leggero-v2-style 2023-09-02 12:28:38 +02:00
Fraenkiman
20b210f02d Squashed commit of the following:
commit a4711e7017e918d3568c3eeaa1f91281e559fd58
Author: Fraenkiman <frank.pcn@gmail.com>
Date:   Mon Aug 21 00:41:09 2023 +0200

    other small adjustments

    - BBcode-Facebook-Viedo now uses the latest video player API and the lazy loading mechanism of the browser
    - Added background-attachment: fix workaround for mobile devices
    - small fixes to be valid with CSS3

commit 00c0e3740349996823fb31ec80be79dceccae61d
Author: Fraenkiman <frank.pcn@gmail.com>
Date:   Fri Aug 18 20:14:05 2023 +0200

    Update plugin.bbcode.php

    - BBcode-Facebook-Viedo now uses the latest video player API and the lazy loading mechanism of the browser

commit d8688ab2f22a855461142b4533cffd553d6283ee
Author: Fraenkiman <frank.pcn@gmail.com>
Date:   Fri Aug 18 00:18:19 2023 +0200

    Update plugin.fpprotect.php

    - FP-Protect allows full-screen playback of embedded videos

commit b4ccc4a021e6437db0c78ceebe2d257760ebe454
Author: Fraenkiman <frank.pcn@gmail.com>
Date:   Tue Aug 15 23:46:57 2023 +0200

    Update common.css

    - center BBcode video if screen < 960px

commit ff3f9d84708f774736bf29ebdf0c5f34c6c8936a
Author: Fraenkiman <frank.pcn@gmail.com>
Date:   Sat Aug 12 13:31:51 2023 +0200

    Update common.css

    - BBcode video is displayed larger on larger screens

commit 9c2235729a7b34c640a55b7d0c075a36bac567dd
Author: Fraenkiman <frank.pcn@gmail.com>
Date:   Tue Aug 8 00:54:31 2023 +0200

    Update admin.css

    - now also fits the entry preview on a smartphone

commit b531da308131482dc355525daec5b4ea8e640542
Author: Fraenkiman <frank.pcn@gmail.com>
Date:   Mon Aug 7 23:41:45 2023 +0200

    Squashed commit of the following:

    commit b8c94ecac23abec830543ad9e928e62d0e02d96d
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Mon Aug 7 23:23:21 2023 +0200

        Media queries were created for individual device classes

        - Media queries were created for individual device classes (smartphone, netbook, laptop and PC) in order to

    commit e2258bf4b52212074d98d08c65f7b62989478ade
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Thu Aug 3 00:16:22 2023 +0200

        Use full width on small screens

        Mobile devices are increasingly replacing the classic PC.
        So it is all the more important to make the theme and the administration area more accessible for today's mobile devices.
        - With a screen width of up to 768px, the full width is utilized.
        - The theme is no longer compressed vertically on small screens from 720px to 768px.

    commit ff76513e2b8b8ada1bc4dc2b395911e3f6c0f95e
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Wed Aug 2 00:13:36 2023 +0200

        Update admin.css

    commit 8140761f7fa1dde2395bee101e2df16332f5ff08
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Tue Aug 1 01:03:39 2023 +0200

        the minimum width removed from the body-container

        - the minimum width removed from the body-container entirely

    commit eb651c586dd0401a1edceb5ef2e867003692f8cd
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Tue Aug 1 00:15:30 2023 +0200

        reduced the minimum width to 720px

        - reduced the minimum width to 720px for better viewing with a mobile device in landscape mode

    commit 2ce9fc605ebb83c43e49ce15ecb531695c10dbd6
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Sun Jul 30 18:57:11 2023 +0200

        Fixes a problem in the admin area when rendering font-sizes

        - Fixes a problem in the admin panel when displaying font sizes in the mobile version of Firefox and Chrome.

    commit c8d4ee702791591d3557c51ef457c7bd9bad4d2d
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Sun Jul 30 18:25:02 2023 +0200

        Fixes a problem in the admin area when rendering font-sizes

        Fixes a problem in the admin panel when displaying font sizes in the mobile version of Firefox and Chrome.

    commit 451a960dc9543cac5ebbbe51d4084b85e86ca2b7
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Sat Jul 29 03:08:33 2023 +0200

        Removes obsolete acronym element, Fixes a problem when rendering font-sizes in Safari

        - Removes obsolete acronym element in the language files and replaces it with the appr element

        - Fixes a problem in the admin area when rendering font-sizes in Safari (iPhone/iPad). #256

        The Safari version used in iOS (iPhone/iPad) sometimes "ignores" the font sizes defined with font-size when rendering web pages or adjusts them automatically to improve readability.
        In certain places this is not bad, but it can also lead to unattractive changes in the design of the admin area.

    commit a844073bdb2e199ec1338f2b7fea27422c167db6
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Mon Jul 24 00:21:37 2023 +0200

        Update common.css

        - Width of comment and contact text field defined

    commit 5c3cc4348ced03d319c72477c8a660ac4bc4632f
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Wed Jul 19 01:16:39 2023 +0200

        Fixed more CSS/Glitches

        - Vertical alignment of the BBcode toolbar
        - placed missing label elements in config panel for consistent alignment

    commit fec38755ba9929a0c5dfc614757ee8df7393d351
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Sat Jul 15 17:59:31 2023 +0200

        Update admin.css

         - fixed vertical alignment of BBCode toolbar in write panel

    commit ef13f5488fdc48efe2101fe6f1e35a103ff08b1d
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Fri Jul 14 00:25:50 2023 +0200

        Configuration panel revised

        - In the admin area, the configuration panel has been revised

    commit 54232c3dd325027926ea78592e007475798d1fd0
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Tue Jul 11 21:57:18 2023 +0200

        PhotoSwipe 4.1.3 included

        This upgrades PhotoSwipe to the January 8, 2019 release level and is the last version before rewriting to ES6. Fixed the following:

        Fixes an issue with devices that have multiple input types and PhotoSwipe does not wipe.
        Fixes an issue where the layout does not update after an alignment change in some cases.
        Previous FlatPress-specific fixes have been considered and incorporated.
        Details can be found here:
        https://github.com/dimsemenov/PhotoSwipe/releases

        With best regards
        Frank

    commit 1179f307ffa0c8b27fe10ccb47a4dfce516a1bf2
    Merge: b735135 1aab02c
    Author: Frank Hochmuth <frank.pcn@gmail.com>
    Date:   Mon Jul 10 01:29:20 2023 +0200

        Merge branch 'master' into upstream/makup-Leggero-Theme

    commit b735135a7f5911c34eee4e01b4ef56db95d6ac06
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Mon Jul 10 01:12:32 2023 +0200

        Fresh makeup for Leggero-v2 style

        This elevates the Leggero-v2 style to a more modern design.
        In most situations in life, first impressions count. The FlatPress Leggero-v2 style is what the user sees first after performing the setup.
        Potential new users may not immediately find their way to the wiki to see the variety of themes there - and hastily delete FlatPress again. Therefore I made a few small changes to the style:

        - Adjusted the alignment of the calendar widget and the search widget.
        - A single PhotoSwipe image or a whole gallery is now centered in the responsive design. #150
        - BBcode videos are no longer chopped off in responsive design, but adjusted to the width and center aligned.
        - The overall appearance is now not so angular/edgy.
        - A BBcode embedded Facebook video now has localized languages with language tag. #252
          (https://developers.facebook.com/docs/javascript/internationalization).
        - BBcode: Removed reference to an active lightbox plugin, as PhotoSwipe can be used as an alternative.
        - Fixed an error in the HTML code of PhotoSwipe-Plugin. #253
        - Lucida Console [code] ... [/code]is now correct as a font in the CSS file.
        - Admin area now has Leggero-v2 style background instead of white background.

        With best regards
        Frank

    commit f8c66f5c0b8527cc0913f85b5a10ee2e7b673d74
    Author: Fraenkiman <frank.pcn@gmail.com>
    Date:   Mon Jul 3 01:20:07 2023 +0200

        Fresh makeup for Leggero-v2 Style

        This elevates the style Leggero-v2 to a more modern looking design.

        Details:
         * IE compatibility removed
         * fixed some minor layout/CSS glitches
         * a single photoswipe image or a whole gallery is now centered in RESPONSIVE DESIGN.
         * The appearance is now not so canny and has been adapted to the body.
2023-08-21 01:10:21 +02:00
Fraenkiman
3c9cc69364 Prevents upload of files with .xsig extension
Fixes Vulnerability Stored XSS #217
2023-07-29 13:12:30 +02:00
Arvid Zimmermann
909d48296b
Merge pull request #203 from Fraenkiman/upstream/issue201
fixes several layout/css-glitches in the previous administration area and in the styles
2023-06-11 13:38:13 +02:00
Fraenkiman
ee12d6cdc9 Corrected size of link in headline
Corrected size of link in headline
2023-05-07 17:02:12 +02:00
Fraenkiman
af5c77e166 Enables NoWhereMan's statistics panel
Fixes #241 and enables NoWhereMan's statistics panel
2023-05-07 15:23:40 +02:00
Fraenkiman
4e9c9f1907 Preview for delete page and delete entry
* Preview for delete page and delete entry also corrected
2023-02-24 00:15:06 +01:00
Fraenkiman
fba5adc876 Multilingual support for "Posted by"
Closes Issue #143

Preview revised

That's funny. There is a template for the preview of static pages for 13 years, and was not used.
2023-01-30 01:39:55 +01:00
Fraenkiman
bb436ddc3b solves issue #145
*SEO Metatag Info Plugin in the standard distribution*
- includes all languages FlatPress currently supports as standard (translation via Deepl).
- Content customized texts incl. placeholder as example.
- With own hook in entry- and statictemplate, because otherwise the tag plugin is also shown when creating static pages; which is not supposed to be
2023-01-11 21:53:23 +01:00
Arvid Zimmermann
24595d595a
Merge pull request #185 from Fraenkiman/master
Please add the following changes
2023-01-08 13:40:41 +01:00
azett
f6394eac7a fixes #188 2023-01-08 13:24:41 +01:00
azett
0ee4f2e8a7 fixes #87, possible XSS in config panel 2023-01-08 13:11:22 +01:00
Fraenkiman
180366f88d
Merge branch 'flatpressblog:master' into master 2023-01-01 02:58:50 +01:00
azett
37597afee8 check for correct admin referer on enable/disable plugin (see #64) 2022-12-30 12:52:03 +01:00
azett
516bdc173a check for correct admin referer on delete entry (see #64) 2022-12-30 12:46:35 +01:00
Fraenkiman
8ac157cc1b
Merge branch 'flatpressblog:master' into master 2022-12-29 22:16:49 +01:00
azett
3a32aad0de fixes #183 2022-12-29 21:21:16 +01:00
Fraenkiman
becd7e569a
Merge branch 'flatpressblog:master' into master 2022-12-29 17:06:58 +01:00
azett
d8991285c6 added API doc; fixed code formatting 2022-12-29 14:20:31 +01:00
Fraenkiman
19c16493a8 Update admin.static.write.tpl
Removes unneeded spaces
2022-12-28 18:02:35 +01:00
azett
229752b510 fixes #180, possible XSS in entry list 2022-12-25 20:32:55 +01:00
azett
3cc223dec5 fixes #178, possible XSS via uploaded XML & MD files 2022-12-25 14:42:08 +01:00
azett
a91ca486c4 Index can't be backed up if cache needs to be built. Added helpful error message. 2022-12-18 12:51:02 +01:00
azett
742f8b04f2 added SVG to forbidden file types in order to prevent possible XSS - see https://github.com/Nguyen-Trung-Kien/CVE/blob/main/CVE-2022-24588/CVE-2022-24588.pdf 2022-12-17 14:39:15 +01:00
azett
0a7ad2ccb8 fixes #153 - thx laborix! 2022-12-17 14:23:23 +01:00
azett
5ad4647e94 Merge branch 'master' of https://github.com/flatpressblog/flatpress 2022-12-17 13:09:07 +01:00
azett
7d748fe62a fixes #171 - thx! :) 2022-12-17 13:09:00 +01:00
azett
dfa8e3013b fixes #170, thx for reporting! 2022-12-17 12:38:10 +01:00
azett
9218d118c9 Editor toolbar back to working as intended. Fixes #168, thanks for reporting in this detailled manner! 2022-12-11 14:26:58 +01:00
azett
185a27d35d PHP functions used as modifier must be registered as modifier explicitly as of Smarty 4.3 - fixed. 2022-12-11 14:04:12 +01:00
azett
1c6b423e48 Updated Smarty to 4.3.0. And the FlatPress-specific Smarty plugins now have their own directory, represented by the new constant FP_SMARTYPLUGINS_DIR. 2022-12-11 13:30:29 +01:00
azett
bdf9e780e1 fixed more PHP warnings - thx laborix! 2022-10-11 20:10:20 +02:00
azett
80abe0a55d fixed endless loop in entry overview; fixed PHP warning 2022-10-11 13:43:19 +02:00
azett
1b9022c5f6 fixed some errors occuring in Apache error log - thx laborix 2022-10-09 15:09:55 +02:00
azett
c30d52b284 Merge branch 'master' of https://github.com/flatpressblog/flatpress into issue94_smartyupdate
# resolved conflicts:
#	fp-includes/smarty/plugins/function.html_select_date.php
2022-10-08 13:43:33 +02:00
azett
92c0b2a517 Bufix: Checking uploaded files' extensions looked for the tmp file name, not the actual file name. Fixes #152 as well - thanks @s4n-h4xor! 2022-10-01 13:33:34 +02:00
azett
d5bdc72852 fixes #136 for all styles - thx @Fraenkiman 2022-08-14 14:04:30 +02:00
azett
af1aa7759b Revert "Merge branch 'master' of https://github.com/flatpressblog/flatpress"
This reverts commit e9ad11742876f9f78d743a28afd547ee7480c7f9, reversing
changes made to f30fc6204a6bc7643d7952b1df98a3aa7b462dea.
2022-07-02 13:30:56 +02:00
azett
6eaafee1fa Merge branch 'master' into responsiveadmin
# resolved conflicts:
#	admin/panels/config/admin.config.tpl
#	admin/panels/entry/admin.entry.commentlist.tpl
#	fp-plugins/commentcenter/tpls/deletecomm.tpl
#	fp-plugins/commentcenter/tpls/editpol.tpl
2022-06-27 19:24:18 +02:00
azett
db6f22f25b Merge branch 'master' into issue94_smartyupdate 2022-06-19 12:49:49 +02:00
azett
fd9aea911d First part of #114: Error msg on uploading a forbidden file. Thx laborix! 2022-06-19 12:37:56 +02:00