' . htmlspecialchars($val) . '' . "\n"; } return $result; } /** * Get currently supported decompressions. * * @return string separated list of extensions usable in self::getDirContent */ public static function supportedDecompressions() { global $cfg; $compressions = ''; if ($cfg['GZipDump'] && function_exists('gzopen')) { if (!empty($compressions)) { $compressions .= '|'; } $compressions .= 'gz'; } if ($cfg['BZipDump'] && function_exists('bzopen')) { if (!empty($compressions)) { $compressions .= '|'; } $compressions .= 'bz2'; } if ($cfg['ZipDump'] && function_exists('gzinflate')) { if (!empty($compressions)) { $compressions .= '|'; } $compressions .= 'zip'; } return $compressions; } }