diff --git a/classes/ConfigurationTest.php b/classes/ConfigurationTest.php index dab5e37d2..76babf023 100644 --- a/classes/ConfigurationTest.php +++ b/classes/ConfigurationTest.php @@ -58,7 +58,8 @@ class ConfigurationTestCore 'theme_cache_dir' => 'themes/'._THEME_NAME_.'/cache/', 'translations_dir' => 'translations', 'customizable_products_dir' => 'upload', - 'virtual_products_dir' => 'download' + 'virtual_products_dir' => 'download', + 'files' => false ); } @@ -318,4 +319,21 @@ class ConfigurationTestCore { return extension_loaded('Dom'); } + + public static function test_files() + { + $files = array( + '/cache/smarty/compile/index.php', + '/classes/log/index.php', + '/classes/cache/index.php', + '/config/index.php', + '/tools/tar/Archive_Tar.php', + '/tools/pear/PEAR.php', + '/index.php' + ); + foreach ($files as $file) + if (!file_exists(rtrim(_PS_ROOT_DIR_, DIRECTORY_SEPARATOR).str_replace('/', DIRECTORY_SEPARATOR, $file))) + return false; + return true; + } } \ No newline at end of file diff --git a/install-dev/controllers/http/system.php b/install-dev/controllers/http/system.php index 00341a461..72f7377a4 100644 --- a/install-dev/controllers/http/system.php +++ b/install-dev/controllers/http/system.php @@ -88,6 +88,13 @@ class InstallControllerHttpSystem extends InstallControllerHttp 'mysql_support' => $this->l('MySQL support is not activated') ) ), + array( + 'title' => $this->l('Files'), + 'success' => 1, + 'checks' => array( + 'files' => $this->l('All files are not successfuly uploaded on your server') + ) + ), array( 'title' => $this->l('Recursive write permissions on files and folders:'), 'success' => 1,