diff --git a/admin/panels/maintain/admin.maintain.tpl b/admin/panels/maintain/admin.maintain.tpl
index ee270e7..8ccd423 100644
--- a/admin/panels/maintain/admin.maintain.tpl
+++ b/admin/panels/maintain/admin.maintain.tpl
@@ -21,5 +21,6 @@
{$panelstrings.opt3}
{$panelstrings.opt4}
{$panelstrings.opt5}
+ {$panelstrings.opt6}
{/if}
diff --git a/admin/support.php b/admin/support.php
new file mode 100644
index 0000000..df6f87d
--- /dev/null
+++ b/admin/support.php
@@ -0,0 +1,302 @@
+
+
+
+
+
+
+ FlatPress - Create support data
+
+
+
+
+ For bug reports and help, visit the FlatPress forum, report the bug on GitHub or send an email.
Include these outputs (copy & paste) in English with the following information: bug description, steps to reproduce.
+ FlatPress general
+ Setup
+ FlatPress version: ' . SYSTEM_VER . '';
+ echo 'Basis directory: ' . BASE_DIR . '
';
+ echo 'Blog base URL: ' . BLOG_BASEURL . '
';
+
+ if ($LANG_DEFAULT) {
+ echo 'Language (automatic): ' . $LANG_DEFAULT . '
';
+ } else {
+ echo 'Language (automatic): ℹ not recognized
';
+ }
+
+ if ($lang) {
+ echo 'Language (set): ' . $lang . '
';
+ } else {
+ echo 'Language (set): not set
';
+ }
+
+ echo 'Theme: ' . $theme . '
';
+
+ if ($style) {
+ echo 'Stil: ' . $style . '
';
+ } else {
+ echo 'Stil: default style
';
+ }
+
+ echo 'Activated plugins:
';
+ echo '';
+ for($i = 0; $i < count($fp_plugins); $i++) {
+ echo ', ' . $fp_plugins [$i];
+ }
+ echo '
';
+ ?>
+
+
+ FlatPress file and directory permissions
+ Core files
+ As soon as the setup has been successfully executed, the setup.php file should be deleted before productive operation.
+ ! The setup file is located in the main directory!';
+ } else {
+ echo '✓ No .htaccess file was found in the main directory.
';
+ }
+ ?>
+
+ The admin directory should be read-only for productive operation.
+ ℹ The core files in the admin directory are writable!';
+ } else {
+ echo '✓ The core files in the admin directory are not writable.
';
+ }
+ @fclose($test_file);
+ @unlink("{$BASE_DIR}/admin/chmod-test-file");
+ ?>
+
+ The fp-includes directory should be read-only for productive operation.
+ ℹ The core files in the fp-includes directory are writable!';
+ } else {
+ echo '✓ The core files in the fp-includes directory are not writable.
';
+ }
+ @fclose($test_file);
+ @unlink("{$BASE_DIR}/fp-includes/chmod-test-file");
+ ?>
+
+ Themes and plugins
+ The fp-content directory must be writable for FlatPress to work.
+ ✓ The fp-content directory is writable.';
+ } else {
+ echo '! The directory fp-content is not writable!
';
+ }
+ @fclose($test_file);
+ @unlink("{$BASE_DIR}/fp-content/chmod-test-file");
+ ?>
+
+ The fp-plugin directory should be read-only for productive operation.
+ ℹ The plugin directory fp-plugins writable!';
+ } else {
+ echo '✓ The plugin directory fp-plugins is not writable.
';
+ }
+ @fclose($test_file);
+ @unlink("{$BASE_DIR}/fp-plugins/chmod-test-file");
+ ?>
+
+ The fp-interface directory should be read-only for productive operation.
+ ℹ The theme directory fp-interface writable!';
+ } else {
+ echo '✓ The theme directory fp-interface is not writable.
';
+ }
+ @fclose($test_file);
+ @unlink("{$BASE_DIR}/fp-interface/chmod-test-file");
+ ?>
+
+ .htaccess und defaults.php
+ The root directory must be writable in order to be able to create or modify an .htaccess file with the PrettyURLs plugin.
+ Note: Only web servers that are NCSA compatible, such as Apache, are familiar with the concept of .htaccess files.
+ The server software is ' . $_SERVER["SERVER_SOFTWARE"] . '.';
+ $test_file = @fopen("{$BASE_DIR}/chmod-test-file", "a+");
+ if ($test_file) {
+ echo '✓ The FlatPress main directory is writable.
';
+ } else {
+ echo 'ℹ The FlatPress main directory is not writable!
';
+ }
+ @fclose($test_file);
+ @unlink("{$BASE_DIR}/chmod-test-file");
+
+ // Do not create a .hthaccess file, otherwise the PrettyURLs plugin cannot create its own file. Better is .htaccess.txt
+ $test_file = @fopen("{$BASE_DIR}/.htaccess.txt", "a+");
+ if ($test_file) {
+ echo '✓ The .htaccess file is writable.
';
+ } else {
+ echo 'ℹ The .htaccess file is not writable!
';
+ }
+ @fclose($test_file);
+ @unlink("{$BASE_DIR}/.htaccess.txt");
+
+ $htaccess = BASE_DIR . '/.htaccess';
+ if (file_exists($htaccess)) {
+ echo 'ℹ A .htaccess file already exists in the main directory!
';
+ } else {
+ echo '✓ No .htaccess file was found in the main directory.
';
+ }
+ ?>
+
+ The defaults.php file should only be read-only for productive operation.
+ ℹ The defaults.php file can be changed!';
+ } else {
+ echo '✓ The defaults.php file cannot be changed.
';
+ }
+ @fclose($test_file);
+ ?>
+
+ Upload directory (fp-content/attachs)
+ This directory must have write permissions so that you can upload something.
+ ✓ The upload directory is writable.';
+ } else {
+ echo '! The upload directory is not writable!
';
+ }
+ @fclose($test_file);
+ @unlink("{$BASE_DIR}/fp-content/attachs/chmod-test-file");
+ } else {
+ echo 'ℹ The upload directory does not exist.
';
+ }
+ ?>
+
+ Cache directory (fp-content/cache)
+ This directory must have write permission for the cache to function correctly.
+ ✓ The cache directory is writable.';
+ } else {
+ echo '! The cache directory is not writable!
';
+ }
+ @fclose($test_file);
+ @unlink("{$BASE_DIR}/fp-content/cache/chmod-test-file");
+ } else {
+ echo '! The directory cache does not exist.
';
+ }
+ ?>
+
+ PHP
+ The PHP version is
+ Extensions
+ The PHP-Intl extension must be activated.
+ ! The intl Extension is not activated!';
+ } else {
+ echo '✓ The intl Extension is activated.
';
+ }
+ ?>
+
+ The GDlib extension must be activated to create image thumbnails.
+ ! The GD Extension is not activated!';
+ } else {
+ echo '✓ The GD Extension is activated.
';
+ }
+ ?>
+
+ Other
+ The browser used is of interest if there are display errors.
+ 'Internet explorer',
+ '/trident/i' => 'Internet explorer',
+ '/edge/i' => 'Edge',
+ '/firefox/i' => 'Firefox',
+ '/safari/i' => 'Safari',
+ '/chrome/i' => 'Chrome',
+ '/opera/i' => 'Opera',
+ '/opr/i' => 'Opera',
+ '/mobile/i' => 'Mobile browser',
+ '/konqueror/i' => 'Konqueror',
+ ];
+
+ foreach ($browsers as $regex => $value) {
+ if (preg_match($regex, $user_agent)) {
+ $browser = $value;
+ }
+ }
+ return $browser;
+ }
+ echo 'Browser: ' . browser() . '
';
+ ?>
+
+ If visitors to the FlatPress blog are to be informed about cookies, this is the cookie.
+ Hint: The name of the cookie changes each time FlatPress is reinstalled.
+ FlatPress Session cookie: ' . SESS_COOKIE . '';
+ ?>
+
+ Output completed!
+ Symbols:
+ ✓ No action necessary
+ ℹ Does not restrict functionality, but requires attention
+ ! Action urgently needed
+ Powered by FlatPress.
+
+
diff --git a/fp-interface/lang/cs-cz/lang.admin.maintain.php b/fp-interface/lang/cs-cz/lang.admin.maintain.php
index 4ecab4e..8a2f263 100644
--- a/fp-interface/lang/cs-cz/lang.admin.maintain.php
+++ b/fp-interface/lang/cs-cz/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Obnovit oprávnění souborů',
'opt4' => 'Ukázat informace o PHP',
'opt5' => 'Zjistit aktualizace',
+ 'opt6' => 'Zobrazit údaje o podpoře',
'chmod_info' => 'Pokud se oprávnění souboru nepodařilo obnovit na ' . decoct(FILE_PERMISSIONS) . ', vlastník souboru pravděpodobně není stejný jako vlastník webového serveru.
' . //
'Případně můžete ignorovat toto oznámení.'
diff --git a/fp-interface/lang/da-dk/lang.admin.maintain.php b/fp-interface/lang/da-dk/lang.admin.maintain.php
index f9768da..86e3453 100644
--- a/fp-interface/lang/da-dk/lang.admin.maintain.php
+++ b/fp-interface/lang/da-dk/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Gendan rettigheder til filadgang',
'opt4' => 'Vis PHP-information om webserveren',
'opt5' => 'Tjek for nye versioner',
+ 'opt6' => 'Vis supportdata',
'chmod_info' => 'Hvis filrettighederne ikke kunne nulstilles til ' . decoct(FILE_PERMISSIONS) . ', er ejeren af filen sandsynligvis ikke den samme som ejeren af webserveren.
' . //
'Normalt kan du ignorere dette tip.'
diff --git a/fp-interface/lang/de-de/lang.admin.maintain.php b/fp-interface/lang/de-de/lang.admin.maintain.php
index f25844e..3a4a7f5 100644
--- a/fp-interface/lang/de-de/lang.admin.maintain.php
+++ b/fp-interface/lang/de-de/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Wiederherstellen der Dateizugriffsrechte',
'opt4' => 'Zeige PHP-Informationen des Webservers',
'opt5' => 'Prüfe auf neue Versionen',
+ 'opt6' => 'Zeige Supportdaten',
'chmod_info' => 'Wenn die Dateiberechtigungen nicht auf ' . decoct(FILE_PERMISSIONS) . ' zurückgesetzt werden konnten, ist wahrscheinlich der Eigentümer der Datei nicht derselbe wie der des Webservers.
' . //
'Normalerweise kann man diesen Hinweis ignorieren.'
diff --git a/fp-interface/lang/el-gr/lang.admin.maintain.php b/fp-interface/lang/el-gr/lang.admin.maintain.php
index f92d4df..812af0a 100644
--- a/fp-interface/lang/el-gr/lang.admin.maintain.php
+++ b/fp-interface/lang/el-gr/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Επαναφορά δικαιωμάτων αρχείων',
'opt4' => 'Εμφάνιση πληροφοριών σχετικά με την PHP',
'opt5' => 'Έλεγχος για αναβαθμίσεις',
+ 'opt6' => 'Εμφάνιση δεδομένων υποστήριξης',
'chmod_info' => 'Αν τα δικαιώματα του αρχείου δεν μπόρεσαν να επανέλθουν σε ' . decoct(FILE_PERMISSIONS) . ', ο ιδιοκτήτης του αρχείου δεν είναι πιθανότατα ο ίδιος με τον ιδιοκτήτη του διακομιστή ιστού.
' . //
'Συνήθως αυτή η ειδοποίηση μπορεί να αγνοηθεί.'
diff --git a/fp-interface/lang/en-us/lang.admin.maintain.php b/fp-interface/lang/en-us/lang.admin.maintain.php
index f0ef681..d20bc2e 100755
--- a/fp-interface/lang/en-us/lang.admin.maintain.php
+++ b/fp-interface/lang/en-us/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Restore file permissions',
'opt4' => 'Show info about PHP',
'opt5' => 'Check for updates',
+ 'opt6' => 'Show support data',
'chmod_info' => 'If the file permissions could not be reset to ' . decoct(FILE_PERMISSIONS) . ', the owner of the file is probably not the same as the owner of the web server.
' . //
'Normalement, tu peux ignorer cette remarque.'
diff --git a/fp-interface/lang/es-es/lang.admin.maintain.php b/fp-interface/lang/es-es/lang.admin.maintain.php
index 33b67fd..e4a731d 100644
--- a/fp-interface/lang/es-es/lang.admin.maintain.php
+++ b/fp-interface/lang/es-es/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Restaurar permisos de archivos',
'opt4' => 'Mostrar información sobre PHP',
'opt5' => 'Buscar actualizaciones',
+ 'opt6' => 'Mostrar datos de apoyo',
'chmod_info' => 'Si los permisos del archivo no se pudieron restablecer a ' . decoct(FILE_PERMISSIONS) . ', es probable que el propietario del archivo no sea el mismo que el del servidor web.
' . //
'Por lo general, puede ignorar este aviso.'
diff --git a/fp-interface/lang/fr-fr/lang.admin.maintain.php b/fp-interface/lang/fr-fr/lang.admin.maintain.php
index 441054f..e1ff83b 100644
--- a/fp-interface/lang/fr-fr/lang.admin.maintain.php
+++ b/fp-interface/lang/fr-fr/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Restaurer les permissions de fichiers',
'opt4' => 'Afficher info.php',
'opt5' => 'Vérifier les mises à jour',
+ 'opt6' => 'Afficher les données de support',
'chmod_info' => 'Si les permissions du fichier n\'ont pas pu être remises à ' . decoct(FILE_PERMISSIONS) . ', il est probable que le propriétaire du fichier ne soit pas le même que celui du serveur web.
' . //
'tre différent du serveur web.'
diff --git a/fp-interface/lang/it-it/lang.admin.maintain.php b/fp-interface/lang/it-it/lang.admin.maintain.php
index a84baf8..fa9509b 100644
--- a/fp-interface/lang/it-it/lang.admin.maintain.php
+++ b/fp-interface/lang/it-it/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Ripristina i permessi dei file',
'opt4' => 'Visualizza informazioni su PHP',
'opt5' => 'Controllo aggiornamenti',
+ 'opt6' => 'Mostra i dati di supporto',
'chmod_info' => 'Se non è stato possibile reimpostare i permessi del file a ' . decoct(FILE_PERMISSIONS) . ', probabilmente il proprietario del file non è lo stesso del server web.
' . //
'Di solito puoi ignorare questo avviso.'
diff --git a/fp-interface/lang/ja-jp/lang.admin.maintain.php b/fp-interface/lang/ja-jp/lang.admin.maintain.php
index cd02334..7da534a 100644
--- a/fp-interface/lang/ja-jp/lang.admin.maintain.php
+++ b/fp-interface/lang/ja-jp/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'ファイルパーミッションの回復',
'opt4' => 'PHP情報を表示します',
'opt5' => 'アップデートをチェックします',
+ 'opt6' => 'サポートデータの表示',
'chmod_info' => 'ファイルのパーミッションを' . decoct(FILE_PERMISSIONS) . 'にリセットできなかった場合、ファイルの所有者がウェブサーバーの所有者と同じでない可能性があります。
' . //
'でも通常、この通知を無視することができます。'
diff --git a/fp-interface/lang/nl-nl/lang.admin.maintain.php b/fp-interface/lang/nl-nl/lang.admin.maintain.php
index cb157b0..830bfb1 100644
--- a/fp-interface/lang/nl-nl/lang.admin.maintain.php
+++ b/fp-interface/lang/nl-nl/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Bestandsmachtigingen herstellen',
'opt4' => 'Toon info over PHP',
'opt5' => 'Controleren op updates',
+ 'opt6' => 'Toon ondersteuningsgegevens',
'chmod_info' => 'Als de bestandsrechten niet konden worden teruggezet naar ' . decoct(FILE_PERMISSIONS) . ', is de eigenaar van het bestand waarschijnlijk niet dezelfde als de eigenaar van de webserver.
' . //
'Meestal kunt u deze kennisgeving negeren.'
diff --git a/fp-interface/lang/pt-br/lang.admin.maintain.php b/fp-interface/lang/pt-br/lang.admin.maintain.php
index 7a37806..e47bc47 100644
--- a/fp-interface/lang/pt-br/lang.admin.maintain.php
+++ b/fp-interface/lang/pt-br/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Restaure as permissões de arquivos',
'opt4' => 'Mostre as informações sobre o PHP',
'opt5' => 'Procure atualizações',
+ 'opt6' => 'Mostrar dados de suporte',
'chmod_info' => 'Se não for possível redefinir as permissões do arquivo para ' . decoct(FILE_PERMISSIONS) . ', o proprietário do arquivo provavelmente não é o mesmo que o proprietário do servidor Web.
' . //
'Geralmente você pode ignorar este aviso.'
diff --git a/fp-interface/lang/ru-ru/lang.admin.maintain.php b/fp-interface/lang/ru-ru/lang.admin.maintain.php
index 3663f78..d2a7ff5 100644
--- a/fp-interface/lang/ru-ru/lang.admin.maintain.php
+++ b/fp-interface/lang/ru-ru/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Восстановить права доступа к файлам',
'opt4' => 'Показать информацию о PHP',
'opt5' => 'Проверить наличие обновлений',
+ 'opt6' => 'Показать данные о поддержке',
'chmod_info' => 'Если права доступа к файлу не удалось сбросить на ' . decoct(FILE_PERMISSIONS) . ', владелец файла, вероятно, не совпадает с владельцем веб-сервера.
' . //
'Обычно это уведомление можно проигнорировать.'
diff --git a/fp-interface/lang/sl-si/lang.admin.maintain.php b/fp-interface/lang/sl-si/lang.admin.maintain.php
index 996ef2a..4915691 100644
--- a/fp-interface/lang/sl-si/lang.admin.maintain.php
+++ b/fp-interface/lang/sl-si/lang.admin.maintain.php
@@ -10,6 +10,7 @@ $lang ['admin'] ['maintain'] ['default'] = array(
'opt3' => 'Obnovi dovoljenja datotek',
'opt4' => 'Prikaži informacije o PHP',
'opt5' => 'Preveri posodobitve',
+ 'opt6' => 'Prikaži podatke o podpori',
'chmod_info' => 'Če pravic datoteke ni bilo mogoče ponastaviti na ' . decoct(FILE_PERMISSIONS) . ', lastnik datoteke verjetno ni isti kot lastnik spletnega strežnika.
' . //
'Običajno lahko to obvestilo prezrete.'