From 985ee35843654e95163b8e7b78fa2c7760c7e0a5 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 20 Mar 2013 00:22:21 -0400 Subject: [PATCH] Add setup check --- miniflux/check_setup.php | 42 ++++++++++++++++++++++++++++++++++++ miniflux/data/.htaccess | 2 +- miniflux/templates/.htaccess | 2 +- miniflux/vendor/.htaccess | 2 +- 4 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 miniflux/check_setup.php diff --git a/miniflux/check_setup.php b/miniflux/check_setup.php new file mode 100644 index 0000000..75ea157 --- /dev/null +++ b/miniflux/check_setup.php @@ -0,0 +1,42 @@ + "short_open_tag = On"'); + } +} + +// Check XML functions + +if (! function_exists('simplexml_load_string')) { + + die('PHP extension required: SimpleXML'); +} + +if (! function_exists('xml_parser_create')) { + + die('PHP extension required: XML Parser'); +} + +if (! function_exists('dom_import_simplexml')) { + + die('PHP extension required: DOM'); +} + +// Check if /data is writeable + +if (! is_writable('data')) { + + die('The directory "data" must be writeable by your web server user'); +} \ No newline at end of file diff --git a/miniflux/data/.htaccess b/miniflux/data/.htaccess index 3a42882..14249c5 100644 --- a/miniflux/data/.htaccess +++ b/miniflux/data/.htaccess @@ -1 +1 @@ -Deny from all +Deny from all \ No newline at end of file diff --git a/miniflux/templates/.htaccess b/miniflux/templates/.htaccess index 3a42882..14249c5 100644 --- a/miniflux/templates/.htaccess +++ b/miniflux/templates/.htaccess @@ -1 +1 @@ -Deny from all +Deny from all \ No newline at end of file diff --git a/miniflux/vendor/.htaccess b/miniflux/vendor/.htaccess index 3a42882..14249c5 100644 --- a/miniflux/vendor/.htaccess +++ b/miniflux/vendor/.htaccess @@ -1 +1 @@ -Deny from all +Deny from all \ No newline at end of file