some small adjustments in code and wording
This commit is contained in:
parent
35c9e18cba
commit
c51c536825
@ -14,20 +14,56 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>FlatPress - Create support data</title>
|
||||
<style type="text/css">
|
||||
body { font-family: Arial; background-color: #ffffff }
|
||||
h1 { 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 }
|
||||
body {
|
||||
font-family: Arial;
|
||||
background-color: #ffffff
|
||||
}
|
||||
|
||||
h1 {
|
||||
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 }
|
||||
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 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>
|
||||
<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>
|
||||
<p class="codeblock">[code]</p>
|
||||
<h2>Setup</h2>
|
||||
@ -64,7 +100,7 @@
|
||||
}
|
||||
|
||||
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) {
|
||||
echo '<p class="output"><strong>Blog base URL:</strong> ' . $BLOG_BASEURL . '</p>';
|
||||
@ -107,17 +143,14 @@
|
||||
}
|
||||
|
||||
if ($style) {
|
||||
echo '<p class="output"><strong>Stil:</strong> ' . $style . '</p>';
|
||||
echo '<p class="output"><strong>Style:</strong> ' . $style . '</p>';
|
||||
} else {
|
||||
echo '<p class="output"><strong>Stil:</strong> default style</p>';
|
||||
echo '<p class="output"><strong>Style:</strong> default style</p>';
|
||||
}
|
||||
|
||||
if ($BLOG_BASEURL) {
|
||||
echo '<p class="output"><strong>Activated plugins:</strong></p>';
|
||||
echo '<p class="output">';
|
||||
for($i = 0; $i < count($fp_plugins); $i++) {
|
||||
echo ', ' . $fp_plugins [$i];
|
||||
}
|
||||
echo '<p class="output"><strong>Activated plugins:</strong> ';
|
||||
echo implode(', ', $fp_plugins);
|
||||
echo '</p>';
|
||||
} else {
|
||||
echo '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>';
|
||||
@ -129,7 +162,8 @@
|
||||
<h1>FlatPress file and directory permissions</h1>
|
||||
<p class="codeblock">[code]</p>
|
||||
<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
|
||||
if (file_exists($setupfile)) {
|
||||
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
|
||||
$test_file = @fopen("{$BASE_DIR}/defaults.php", "a+");
|
||||
if ($test_file) {
|
||||
@ -161,7 +196,8 @@
|
||||
@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
|
||||
$test_file = @fopen("{$BASE_DIR}/fp-includes/chmod-test-file", "a+");
|
||||
if ($test_file) {
|
||||
@ -174,8 +210,12 @@
|
||||
?>
|
||||
|
||||
<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><strong>Note:</strong> Only web servers that are NCSA compatible, such as Apache, are familiar with the concept of .htaccess files.</p>
|
||||
<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>
|
||||
<strong>Note:</strong> Only web servers that are NCSA compatible, such
|
||||
as Apache, are familiar with the concept of .htaccess files.
|
||||
</p>
|
||||
<?php
|
||||
echo '<p>The server software is <strong>' . $_SERVER ["SERVER_SOFTWARE"] . '</strong>.</p>';
|
||||
$test_file = @fopen("{$BASE_DIR}/chmod-test-file", "a+");
|
||||
@ -206,7 +246,8 @@
|
||||
?>
|
||||
|
||||
<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
|
||||
$test_file = @fopen("{$BASE_DIR}/fp-interface/chmod-test-file", "a+");
|
||||
if ($test_file) {
|
||||
@ -230,7 +271,8 @@
|
||||
@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
|
||||
$test_file = @fopen("{$BASE_DIR}/fp-plugins/chmod-test-file", "a+");
|
||||
if ($test_file) {
|
||||
@ -255,7 +297,8 @@
|
||||
@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
|
||||
if (file_exists("{$BASE_DIR}/fp-content/images/")) {
|
||||
$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
|
||||
if (file_exists("{$BASE_DIR}/fp-content/images/.thumbs")) {
|
||||
$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
|
||||
if (file_exists("{$BASE_DIR}/fp-content/attachs/")) {
|
||||
$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
|
||||
if (file_exists("{$BASE_DIR}/fp-content/cache/")) {
|
||||
$test_file = @fopen("{$BASE_DIR}/fp-content/cache/chmod-test-file", "a+");
|
||||
@ -322,7 +368,9 @@
|
||||
|
||||
<h1>PHP</h1>
|
||||
<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>
|
||||
<p>The PHP-Intl extension must be activated.</p>
|
||||
<?php
|
||||
@ -347,6 +395,7 @@
|
||||
<p class="codeblock">[code]</p>
|
||||
<p>The browser used is of interest if there are display errors.</p>
|
||||
<?php
|
||||
|
||||
// Browser recognition does not always work correctly.
|
||||
// This also depends on whether a current browscap has been set in php.ini or not.
|
||||
function browser() {
|
||||
@ -363,7 +412,7 @@
|
||||
'/opera/i' => 'Opera',
|
||||
'/opr/i' => 'Opera',
|
||||
'/mobile/i' => 'Mobile browser',
|
||||
'/konqueror/i' => 'Konqueror',
|
||||
'/konqueror/i' => 'Konqueror'
|
||||
];
|
||||
|
||||
foreach ($browsers as $regex => $value) {
|
||||
@ -376,8 +425,12 @@
|
||||
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><strong>Hint:</strong> The name of the cookie changes each time FlatPress is reinstalled.</p>
|
||||
<p>If visitors to the FlatPress blog are to be informed about cookies,
|
||||
this is the cookie.</p>
|
||||
<p>
|
||||
<strong>Hint:</strong> The name of the cookie changes each time
|
||||
FlatPress is reinstalled.
|
||||
</p>
|
||||
<?php
|
||||
if ($BLOG_BASEURL) {
|
||||
@cookie_setup();
|
||||
@ -388,10 +441,21 @@
|
||||
?>
|
||||
<p class="codeblock">[/code]</p>
|
||||
<h2>Output completed!</h2>
|
||||
<p class="output"><strong>Symbols:</strong></p>
|
||||
<p class="success"><strong>✓</strong> No action necessary</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>
|
||||
<p class="output">
|
||||
<strong>Symbols:</strong>
|
||||
</p>
|
||||
<p class="success">
|
||||
<strong>✓</strong> No action necessary
|
||||
</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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user