diff --git a/admin/support.php b/admin/support.php index c309ada..e511505 100644 --- a/admin/support.php +++ b/admin/support.php @@ -2,7 +2,7 @@ /* * Name: Create support data * Autor: FlatPress - * Version: 1.0.0 + * Version: 1.0.1 * Purpose: The FlatPress admin is thus able to provide the community with all relevant data to solve a problem quickly and specifically. * Hint: The output is in English only, so that the project supervisor or the community do not have to translate it. */ @@ -34,30 +34,48 @@ FlatPress version: ' . SYSTEM_VER . '

'; echo '

Basis directory: ' . BASE_DIR . '

'; - echo '

Blog base URL: ' . $BLOG_BASEURL . '

'; + + if ($BLOG_BASEURL) { + echo '

Blog base URL: ' . $BLOG_BASEURL . '

'; + } else { + echo '

Blog base URL: Could not be determined. '; + if (file_exists($setupfile)) { + echo 'Start setup

'; + } else { + echo '

'; + } + } if ($LANG_DEFAULT) { echo '

Language (automatic): ' . $LANG_DEFAULT . '

'; @@ -71,7 +89,22 @@ echo '

Language (set): not set

'; } - echo '

Theme: ' . $theme . '

'; + if ($charset) { + echo '

Character set: ' . $charset . '

'; + } else { + echo '

Character set: not set (default is utf-8)

'; + } + + if ($theme) { + echo '

Theme: ' . $theme . '

'; + } else { + echo '

Theme: not set (default is leggero) '; + if (file_exists($setupfile)) { + echo 'Start setup

'; + } else { + echo '

'; + } + } if ($style) { echo '

Stil: ' . $style . '

'; @@ -79,12 +112,16 @@ echo '

Stil: default style

'; } - echo '

Activated plugins:

'; - echo '

'; - for($i = 0; $i < count($fp_plugins); $i++) { - echo ', ' . $fp_plugins [$i]; - } - echo '

'; + if ($BLOG_BASEURL) { + echo '

Activated plugins:

'; + echo '

'; + for($i = 0; $i < count($fp_plugins); $i++) { + echo ', ' . $fp_plugins [$i]; + } + echo '

'; + } else { + echo '

Activated plugins: Could not be determined.

'; + } ?>

[/code]

@@ -94,14 +131,24 @@

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 '

The setup file was not found in the root directory.

'; + echo '

The setup file was not 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); + ?> +

The admin directory should be read-only for productive operation.

-

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.

+

Configuration file for the webserver

+

The main 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"] . '.

'; @@ -195,19 +205,73 @@ } ?> -

The defaults.php file should only be read-only for productive operation.

+

Themes and plugins

+

The fp-interface directory should be read-only for productive operation.

The defaults.php file can be changed!

'; + echo '

The directory fp-interface writable!

'; } else { - echo '

The defaults.php file cannot be changed.

'; + echo '

The directory fp-interface is not writable.

'; } @fclose($test_file); + @unlink("{$BASE_DIR}/fp-interface/chmod-test-file"); ?> -

Upload directory (fp-content/attachs)

-

This directory must have write permissions so that you can upload something.

+

The themes directory should be read-only for productive operation.

+ The theme directory is writable!

'; + } else { + echo '

The theme directory is not writable.

'; + } + @fclose($test_file); + @unlink("{$BASE_DIR}/fp-interface/themes/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"); + ?> + +

Content directory

+

The fp-content directory must be writable for FlatPress to work.

+ The fp-content directory is writable.

'; + } else { + echo '

! The fp-content directory is not writable!

'; + } + @fclose($test_file); + @unlink("{$BASE_DIR}/fp-content/chmod-test-file"); + ?> + +

This images directory must have write permissions so that you can upload images.

+ The images directory is writable.

'; + } else { + echo '

! The images directory is not writable!

'; + } + @fclose($test_file); + @unlink("{$BASE_DIR}/fp-content/images/chmod-test-file"); + } else { + echo '

The images directory does not exist.

'; + } + ?> + +

This upload directory must have write permissions so that you can upload something.

The upload directory does not exist.

'; + echo '

The upload directory does not exist, but is created automatically with the first upload.

'; } ?> -

Cache directory (fp-content/cache)

-

This directory must have write permission for the cache to function correctly.

+

This cache directory must have write permission for the cache to function correctly.

! The directory cache does not exist.

'; + echo '

! The directory cache does not exist!

'; } ?>

[/code]

@@ -272,7 +335,7 @@ // This also depends on whether a current browscap has been set in php.ini or not. function browser() { $user_agent = $_SERVER ['HTTP_USER_AGENT']; - $browser = "not recognized"; + $browser = "Not recognized"; $browsers = [ '/msie/i' => 'Internet explorer', @@ -300,8 +363,12 @@

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 . '

'; + if ($BLOG_BASEURL) { + @cookie_setup(); + echo '

FlatPress Session cookie: ' . SESS_COOKIE . '

'; + } else { + echo '

FlatPress Session cookie: Could not be determined.

'; + } ?>

[/code]

Output completed!