function mb_escapeshellarg($arg) { if (isWinOS()) { return '"' . str_replace(array('"', '%'), array('', ''), $arg) . '"'; } else { return "'" . str_replace("'", "'\\''", $arg) . "'"; } }
$sfvsfv = ""; $userlist = array(); $realentry = $entry_iso = $entry; if (function_exists('mb_detect_encoding') && function_exists('utf8_decode') && mb_detect_encoding(" " . $entry . " ", 'UTF-8,ISO-8859-1') == 'UTF-8') { $entry_iso = utf8_decode($entry); } if ($cfg['enable_dirstats'] == 1) { $path = $dirName . $entry; $stat = stat($path); $ssz = 0.0; if ($islink == 0) { $ssz += is_dir($path) ? dirsize($path) : sprintf("%.0f", $stat['size']); if (($ssz < 0 || $stat['blocks'] > 2000000) && !isWinOS()) { $ssz = @trim(1024.0 * shell_exec('du -ksL ' . tfb_shellencode($dirName . $entry))); } } elseif (!isWinOS()) { $ssz += @trim(1024.0 * shell_exec('du -ksL ' . tfb_shellencode($slink))); $date = ""; } $size = formatBytesTokBMBGBTB(sprintf("%.0f", $ssz)); if (strstr($size, "G")) { $size = "<b>{$size}</b>"; } $timeStamp = $stat['mtime']; $date = date($cfg['_DATETIMEFORMAT'], $timeStamp); if ($timeStamp + 86400 * 2 > time()) { $isrecent = 1; } } if (is_dir($dirName . $entry)) { // sfv