From 566faa14760112f81eea78fe441d5adc1b872da1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 27 Dec 2011 21:09:22 +0400 Subject: implement neutral-format personal data export --- include/sanity_check.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/sanity_check.php') 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"; } -- cgit v1.2.3