function sanity_checkFiles() { $status = array('conf/config.php' => sanity_checkFile(BASE . 'conf/config.php', 1, SANITY_CREATEFILE), 'conf/profiles' => sanity_checkFile(BASE . 'conf/profiles', 0, SANITY_READWRITE), 'overrides.php' => sanity_checkFile(BASE . 'overrides.php', 1, SANITY_READWRITE), 'install' => sanity_checkFile(BASE . 'install', 0, SANITY_READWRITE), 'modules' => sanity_checkFile(BASE . 'modules', 0, SANITY_READONLY), 'views_c' => sanity_checkFile(BASE . 'views_c', 0, SANITY_READWRITE), 'extensionuploads' => sanity_checkFile(BASE . 'extensionuploads', 0, SANITY_READWRITE)); sanity_checkDirectory('files', SANITY_READWRITE, $status); sanity_checkDirectory('tmp', SANITY_READWRITE, $status); return $status; }
function sanity_checkFiles() { $status = array('conf/config.php' => sanity_checkFile(BASE . 'conf/config.php', 1, SANITY_CREATEFILE), 'files/' => sanity_checkDirectory('files', SANITY_READWRITE), 'install/' => sanity_checkFile(BASE . 'install', 0, SANITY_READWRITE), 'framework/modules/' => sanity_checkDirectory('framework/modules', SANITY_READWRITE), 'framework/modules-1/' => sanity_checkFile(BASE . 'framework/modules-1/', 0, SANITY_READONLY), 'tmp/' => sanity_checkDirectory('tmp', SANITY_READWRITE), 'tmp/extensionuploads/' => sanity_checkFile(BASE . 'tmp/extensionuploads', 0, SANITY_READWRITE), 'tmp/views_c' => sanity_checkDirectory('tmp/views_c', SANITY_READWRITE), 'tmp/cache' => sanity_checkDirectory('tmp/cache', SANITY_READWRITE), 'tmp/minify' => sanity_checkDirectory('tmp/minify', SANITY_READWRITE), 'tmp/css' => sanity_checkDirectory('tmp/css', SANITY_READWRITE), 'tmp/rsscache' => sanity_checkDirectory('tmp/rsscache', SANITY_READWRITE), 'tmp/img_cache' => sanity_checkDirectory('tmp/img_cache', SANITY_READWRITE), 'tmp/pixidou' => sanity_checkDirectory('tmp/pixidou', SANITY_READWRITE)); return $status; }