diff options
author | Andrew Dolgov <[email protected]> | 2011-12-27 21:09:22 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-27 21:09:22 +0400 |
commit | 566faa14760112f81eea78fe441d5adc1b872da1 (patch) | |
tree | e3e9d12ef58f52324e503421fc28a3c5bed379a9 /include | |
parent | b4a9e560aabfb26e8a55e742853785e074feb672 (diff) |
implement neutral-format personal data export
Diffstat (limited to 'include')
-rw-r--r-- | include/sanity_check.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php index c12c09334..4fe28c307 100644 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -21,6 +21,14 @@ $err_msg = "HTMLPurifier cache directory should be writable by anyone (chmod -R 777 $purifier_cache_dir)"; } + if (!is_writable(CACHE_DIR . "/images")) { + $err_msg = "Image cache is not writable (chmod -R 777 ".CACHE_DIR."/images)"; + } + + if (!is_writable(CACHE_DIR . "/export")) { + $err_msg = "Data export cache is not writable (chmod -R 777 ".CACHE_DIR."/export)"; + } + if (GENERATED_CONFIG_CHECK != EXPECTED_CONFIG_VERSION) { $err_msg = "Configuration option checker sanity_config.php is outdated, please recreate it using ./utils/regen_config_checks.sh"; } |