some small adjustments in code and wording
This commit is contained in:
parent
35c9e18cba
commit
c51c536825
@ -10,24 +10,60 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-en">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>FlatPress - Create support data</title>
|
<title>FlatPress - Create support data</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body { font-family: Arial; background-color: #ffffff }
|
body {
|
||||||
h1 { margin-bottom: 0 }
|
font-family: Arial;
|
||||||
.error { color: #990000; padding-left: 10px }
|
background-color: #ffffff
|
||||||
.attention { color: #D35400; padding-left: 10px }
|
}
|
||||||
.success { color: #0E7924; padding-left: 10px }
|
|
||||||
.output { padding-left: 10px }
|
|
||||||
/* hidden code block - only becomes visible when pasted - onion juice ink - magic */
|
|
||||||
h1 { margin-bottom: 0 }
|
|
||||||
.codeblock { background-color: #ffffff; margin: 0; font-size: 0px }
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
h1 {
|
||||||
<p>For bug reports and help, visit the <a href="https://forum.flatpress.org" target="_blank">FlatPress forum</a>, report the bug on <a href="https://github.com/flatpressblog/flatpress/issues" target="_blank">GitHub</a> or <a href="mailto:hello@flatpress.org">send an email</a>.<br>Include these outputs (copy & paste) in English with the following information: bug description, steps to reproduce.</p>
|
margin-bottom: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
color: #990000;
|
||||||
|
padding-left: 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
.attention {
|
||||||
|
color: #D35400;
|
||||||
|
padding-left: 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
.success {
|
||||||
|
color: #0E7924;
|
||||||
|
padding-left: 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
.output {
|
||||||
|
padding-left: 10px
|
||||||
|
}
|
||||||
|
/* hidden code block - only becomes visible when pasted - onion juice ink - magic */
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
.codeblock {
|
||||||
|
background-color: #ffffff;
|
||||||
|
margin: 0;
|
||||||
|
font-size: 0px
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<p>
|
||||||
|
For bug reports and help, visit the <a
|
||||||
|
hsref="https://forum.flatpress.org" target="_blank">FlatPress forum</a>,
|
||||||
|
report the bug on <a
|
||||||
|
href="https://github.com/flatpressblog/flatpress/issues"
|
||||||
|
target="_blank">GitHub</a> or <a href="mailto:hello@flatpress.org">send
|
||||||
|
an email</a>.<br>Include these outputs (copy & paste) in English
|
||||||
|
with the following information: bug description, steps to reproduce.
|
||||||
|
</p>
|
||||||
<h1>FlatPress general</h1>
|
<h1>FlatPress general</h1>
|
||||||
<p class="codeblock">[code]</p>
|
<p class="codeblock">[code]</p>
|
||||||
<h2>Setup</h2>
|
<h2>Setup</h2>
|
||||||
@ -64,7 +100,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo '<p class="output"><strong>FlatPress version:</strong> ' . SYSTEM_VER . '</p>';
|
echo '<p class="output"><strong>FlatPress version:</strong> ' . SYSTEM_VER . '</p>';
|
||||||
echo '<p class="output"><strong>Basis directory:</strong> ' . BASE_DIR . '</p>';
|
echo '<p class="output"><strong>Base directory:</strong> ' . BASE_DIR . '</p>';
|
||||||
|
|
||||||
if ($BLOG_BASEURL) {
|
if ($BLOG_BASEURL) {
|
||||||
echo '<p class="output"><strong>Blog base URL:</strong> ' . $BLOG_BASEURL . '</p>';
|
echo '<p class="output"><strong>Blog base URL:</strong> ' . $BLOG_BASEURL . '</p>';
|
||||||
@ -107,17 +143,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($style) {
|
if ($style) {
|
||||||
echo '<p class="output"><strong>Stil:</strong> ' . $style . '</p>';
|
echo '<p class="output"><strong>Style:</strong> ' . $style . '</p>';
|
||||||
} else {
|
} else {
|
||||||
echo '<p class="output"><strong>Stil:</strong> default style</p>';
|
echo '<p class="output"><strong>Style:</strong> default style</p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($BLOG_BASEURL) {
|
if ($BLOG_BASEURL) {
|
||||||
echo '<p class="output"><strong>Activated plugins:</strong></p>';
|
echo '<p class="output"><strong>Activated plugins:</strong> ';
|
||||||
echo '<p class="output">';
|
echo implode(', ', $fp_plugins);
|
||||||
for($i = 0; $i < count($fp_plugins); $i++) {
|
|
||||||
echo ', ' . $fp_plugins [$i];
|
|
||||||
}
|
|
||||||
echo '</p>';
|
echo '</p>';
|
||||||
} else {
|
} else {
|
||||||
echo '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>';
|
echo '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>';
|
||||||
@ -129,7 +162,8 @@
|
|||||||
<h1>FlatPress file and directory permissions</h1>
|
<h1>FlatPress file and directory permissions</h1>
|
||||||
<p class="codeblock">[code]</p>
|
<p class="codeblock">[code]</p>
|
||||||
<h2>Core files</h2>
|
<h2>Core files</h2>
|
||||||
<p>As soon as the setup has been successfully executed, the setup.php file should be deleted before productive operation.</p>
|
<p>As soon as the setup has been successfully executed, the setup.php
|
||||||
|
file should be deleted before productive operation.</p>
|
||||||
<?php
|
<?php
|
||||||
if (file_exists($setupfile)) {
|
if (file_exists($setupfile)) {
|
||||||
echo '<p class="error"><strong>!</strong> The setup file is located in the main directory!</p>';
|
echo '<p class="error"><strong>!</strong> The setup file is located in the main directory!</p>';
|
||||||
@ -138,7 +172,8 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p>The defaults.php file should only be read-only for productive operation.</p>
|
<p>The defaults.php file should only be read-only for productive
|
||||||
|
operation.</p>
|
||||||
<?php
|
<?php
|
||||||
$test_file = @fopen("{$BASE_DIR}/defaults.php", "a+");
|
$test_file = @fopen("{$BASE_DIR}/defaults.php", "a+");
|
||||||
if ($test_file) {
|
if ($test_file) {
|
||||||
@ -161,7 +196,8 @@
|
|||||||
@unlink("{$BASE_DIR}/admin/chmod-test-file");
|
@unlink("{$BASE_DIR}/admin/chmod-test-file");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p>The fp-includes directory should be read-only for productive operation.</p>
|
<p>The fp-includes directory should be read-only for productive
|
||||||
|
operation.</p>
|
||||||
<?php
|
<?php
|
||||||
$test_file = @fopen("{$BASE_DIR}/fp-includes/chmod-test-file", "a+");
|
$test_file = @fopen("{$BASE_DIR}/fp-includes/chmod-test-file", "a+");
|
||||||
if ($test_file) {
|
if ($test_file) {
|
||||||
@ -174,10 +210,14 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<h2>Configuration file for the webserver</h2>
|
<h2>Configuration file for the webserver</h2>
|
||||||
<p>The main directory must be writable in order to be able to create or modify an .htaccess file with the PrettyURLs plugin.</p>
|
<p>The main directory must be writable in order to be able to create or
|
||||||
<p><strong>Note:</strong> Only web servers that are NCSA compatible, such as Apache, are familiar with the concept of .htaccess files.</p>
|
modify an .htaccess file with the PrettyURLs plugin.</p>
|
||||||
|
<p>
|
||||||
|
<strong>Note:</strong> Only web servers that are NCSA compatible, such
|
||||||
|
as Apache, are familiar with the concept of .htaccess files.
|
||||||
|
</p>
|
||||||
<?php
|
<?php
|
||||||
echo '<p>The server software is <strong>' . $_SERVER["SERVER_SOFTWARE"] . '</strong>.</p>';
|
echo '<p>The server software is <strong>' . $_SERVER ["SERVER_SOFTWARE"] . '</strong>.</p>';
|
||||||
$test_file = @fopen("{$BASE_DIR}/chmod-test-file", "a+");
|
$test_file = @fopen("{$BASE_DIR}/chmod-test-file", "a+");
|
||||||
if ($test_file) {
|
if ($test_file) {
|
||||||
echo '<p class="success"><strong>✓</strong> The FlatPress main directory is writable.</p>';
|
echo '<p class="success"><strong>✓</strong> The FlatPress main directory is writable.</p>';
|
||||||
@ -206,7 +246,8 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<h2>Themes and plugins</h2>
|
<h2>Themes and plugins</h2>
|
||||||
<p>The fp-interface directory should be read-only for productive operation.</p>
|
<p>The fp-interface directory should be read-only for productive
|
||||||
|
operation.</p>
|
||||||
<?php
|
<?php
|
||||||
$test_file = @fopen("{$BASE_DIR}/fp-interface/chmod-test-file", "a+");
|
$test_file = @fopen("{$BASE_DIR}/fp-interface/chmod-test-file", "a+");
|
||||||
if ($test_file) {
|
if ($test_file) {
|
||||||
@ -230,7 +271,8 @@
|
|||||||
@unlink("{$BASE_DIR}/fp-interface/themes/chmod-test-file");
|
@unlink("{$BASE_DIR}/fp-interface/themes/chmod-test-file");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p>The fp-plugin directory should be read-only for productive operation.</p>
|
<p>The fp-plugin directory should be read-only for productive
|
||||||
|
operation.</p>
|
||||||
<?php
|
<?php
|
||||||
$test_file = @fopen("{$BASE_DIR}/fp-plugins/chmod-test-file", "a+");
|
$test_file = @fopen("{$BASE_DIR}/fp-plugins/chmod-test-file", "a+");
|
||||||
if ($test_file) {
|
if ($test_file) {
|
||||||
@ -255,7 +297,8 @@
|
|||||||
@unlink("{$BASE_DIR}/fp-content/chmod-test-file");
|
@unlink("{$BASE_DIR}/fp-content/chmod-test-file");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p>This images directory must have write permissions so that you can upload images.</p>
|
<p>This images directory must have write permissions so that you can
|
||||||
|
upload images.</p>
|
||||||
<?php
|
<?php
|
||||||
if (file_exists("{$BASE_DIR}/fp-content/images/")) {
|
if (file_exists("{$BASE_DIR}/fp-content/images/")) {
|
||||||
$test_file = @fopen("{$BASE_DIR}/fp-content/images/chmod-test-file", "a+");
|
$test_file = @fopen("{$BASE_DIR}/fp-content/images/chmod-test-file", "a+");
|
||||||
@ -271,7 +314,8 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p>This thumbs directory must have write permissions so that scalable images can be created.</p>
|
<p>This thumbs directory must have write permissions so that scalable
|
||||||
|
images can be created.</p>
|
||||||
<?php
|
<?php
|
||||||
if (file_exists("{$BASE_DIR}/fp-content/images/.thumbs")) {
|
if (file_exists("{$BASE_DIR}/fp-content/images/.thumbs")) {
|
||||||
$test_file = @fopen("{$BASE_DIR}/fp-content/images/.thumbs/chmod-test-file", "a+");
|
$test_file = @fopen("{$BASE_DIR}/fp-content/images/.thumbs/chmod-test-file", "a+");
|
||||||
@ -287,7 +331,8 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p>This upload directory must have write permissions so that you can upload something.</p>
|
<p>This upload directory must have write permissions so that you can
|
||||||
|
upload something.</p>
|
||||||
<?php
|
<?php
|
||||||
if (file_exists("{$BASE_DIR}/fp-content/attachs/")) {
|
if (file_exists("{$BASE_DIR}/fp-content/attachs/")) {
|
||||||
$test_file = @fopen("{$BASE_DIR}/fp-content/attachs/chmod-test-file", "a+");
|
$test_file = @fopen("{$BASE_DIR}/fp-content/attachs/chmod-test-file", "a+");
|
||||||
@ -303,7 +348,8 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p>This cache directory must have write permission for the cache to function correctly.</p>
|
<p>This cache directory must have write permission for the cache to
|
||||||
|
function correctly.</p>
|
||||||
<?php
|
<?php
|
||||||
if (file_exists("{$BASE_DIR}/fp-content/cache/")) {
|
if (file_exists("{$BASE_DIR}/fp-content/cache/")) {
|
||||||
$test_file = @fopen("{$BASE_DIR}/fp-content/cache/chmod-test-file", "a+");
|
$test_file = @fopen("{$BASE_DIR}/fp-content/cache/chmod-test-file", "a+");
|
||||||
@ -322,7 +368,9 @@
|
|||||||
|
|
||||||
<h1>PHP</h1>
|
<h1>PHP</h1>
|
||||||
<p class="codeblock">[code]</p>
|
<p class="codeblock">[code]</p>
|
||||||
<p>The PHP version is <strong><?php echo phpversion();?></strong></p>
|
<p>
|
||||||
|
The PHP version is <strong><?php echo phpversion();?></strong>
|
||||||
|
</p>
|
||||||
<h2>Extensions</h2>
|
<h2>Extensions</h2>
|
||||||
<p>The PHP-Intl extension must be activated.</p>
|
<p>The PHP-Intl extension must be activated.</p>
|
||||||
<?php
|
<?php
|
||||||
@ -347,6 +395,7 @@
|
|||||||
<p class="codeblock">[code]</p>
|
<p class="codeblock">[code]</p>
|
||||||
<p>The browser used is of interest if there are display errors.</p>
|
<p>The browser used is of interest if there are display errors.</p>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Browser recognition does not always work correctly.
|
// Browser recognition does not always work correctly.
|
||||||
// This also depends on whether a current browscap has been set in php.ini or not.
|
// This also depends on whether a current browscap has been set in php.ini or not.
|
||||||
function browser() {
|
function browser() {
|
||||||
@ -363,7 +412,7 @@
|
|||||||
'/opera/i' => 'Opera',
|
'/opera/i' => 'Opera',
|
||||||
'/opr/i' => 'Opera',
|
'/opr/i' => 'Opera',
|
||||||
'/mobile/i' => 'Mobile browser',
|
'/mobile/i' => 'Mobile browser',
|
||||||
'/konqueror/i' => 'Konqueror',
|
'/konqueror/i' => 'Konqueror'
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($browsers as $regex => $value) {
|
foreach ($browsers as $regex => $value) {
|
||||||
@ -376,8 +425,12 @@
|
|||||||
echo '<p class="output"><strong>Browser: </strong>' . browser() . '</p>';
|
echo '<p class="output"><strong>Browser: </strong>' . browser() . '</p>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p>If visitors to the FlatPress blog are to be informed about cookies, this is the cookie.</p>
|
<p>If visitors to the FlatPress blog are to be informed about cookies,
|
||||||
<p><strong>Hint:</strong> The name of the cookie changes each time FlatPress is reinstalled.</p>
|
this is the cookie.</p>
|
||||||
|
<p>
|
||||||
|
<strong>Hint:</strong> The name of the cookie changes each time
|
||||||
|
FlatPress is reinstalled.
|
||||||
|
</p>
|
||||||
<?php
|
<?php
|
||||||
if ($BLOG_BASEURL) {
|
if ($BLOG_BASEURL) {
|
||||||
@cookie_setup();
|
@cookie_setup();
|
||||||
@ -388,10 +441,21 @@
|
|||||||
?>
|
?>
|
||||||
<p class="codeblock">[/code]</p>
|
<p class="codeblock">[/code]</p>
|
||||||
<h2>Output completed!</h2>
|
<h2>Output completed!</h2>
|
||||||
<p class="output"><strong>Symbols:</strong></p>
|
<p class="output">
|
||||||
<p class="success"><strong>✓</strong> No action necessary</p>
|
<strong>Symbols:</strong>
|
||||||
<p class="attention"><strong>ℹ</strong> Does not restrict functionality, but requires attention</p>
|
</p>
|
||||||
<p class="error"><strong>!</strong> Action urgently needed</p>
|
<p class="success">
|
||||||
<p>Powered by <a href="https://flatpress.org" target="_blank">FlatPress</a>.</p>
|
<strong>✓</strong> No action necessary
|
||||||
</body>
|
</p>
|
||||||
|
<p class="attention">
|
||||||
|
<strong>ℹ</strong> Does not restrict functionality, but requires
|
||||||
|
attention
|
||||||
|
</p>
|
||||||
|
<p class="error">
|
||||||
|
<strong>!</strong> Action urgently needed
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Powered by <a href="https://flatpress.org" target="_blank">FlatPress</a>.
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user