function getFolderPermissions() { $message = ""; $directories = array(PATH_UPLOADS, PATH_LOG, PATH_STATS, PATH_STATS . "day/", PATH_STATS . "month/", PATH_STATS . "year/"); foreach ($directories as $dir) { $result = IOStruct::IsWriteable($dir); if (!$result) { $message .= "Insufficient write access" . " (" . $dir . ")<br>"; } } if (!empty($message)) { $message = "<span class=\"lz_index_error_cat\">Write Access:<br></span> <span class=\"lz_index_red\">" . $message . "</span><a href=\"" . CONFIG_LIVEZILLA_FAQ . "en/?fid=changepermissions#changepermissions\" class=\"lz_index_helplink\" target=\"_blank\">Learn how to fix this problem</a>"; } return $message; }
static function GetPermissions() { $directories = array(PATH_UPLOADS, PATH_CONFIG); foreach ($directories as $dir) { $result = IOStruct::IsWriteable($dir); if (!$result) { return 0; } } return 1; }