From c288ac3ac1b7f70f4c3aabf7770d8bb8705d0967 Mon Sep 17 00:00:00 2001
From: Frank Hochmuth
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 @@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.
-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"); - ?> - -The root directory must be writable in order to be able to create or modify an .htaccess file with the PrettyURLs plugin.
+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.
+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"); ?> -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"); + ?> + +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.
'; } ?> -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]