本文整理汇总了PHP中CFileMan::GetUnixFilePermissions方法的典型用法代码示例。如果您正苦于以下问题:PHP CFileMan::GetUnixFilePermissions方法的具体用法?PHP CFileMan::GetUnixFilePermissions怎么用?PHP CFileMan::GetUnixFilePermissions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFileMan
的用法示例。
在下文中一共展示了CFileMan::GetUnixFilePermissions方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlspecialcharsbx
} else {
$showFieldIcon = "<IMG SRC=\"/bitrix/images/fileman/types/" . $curFileType . ".gif\" WIDTH=\"16\" HEIGHT=\"16\" BORDER=0 ALT=\"\" title=\"" . htmlspecialcharsbx($fpath) . "\">";
$showFieldText = $f_LOGIC_NAME;
}
}
$showField = "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td align=\"left\">" . $showFieldIcon . "</td><td align=\"left\"> " . $showFieldText . "</td></tr></table>";
$row->AddViewField("LOGIC_NAME", $showField);
}
$row->AddField("SIZE", $Elem["TYPE"] == "F" ? CFile::FormatSize($f_SIZE) : "");
$row->AddField("DATE", $f_DATE);
$row->AddField("TYPE", $Elem["TYPE"] == "D" ? GetMessage('FILEMAN_FOLDER') : htmlspecialcharsbx($arFilemanPredifinedFileTypes[$curFileType]["name"]));
$showField = "";
if (!CFileMan::IsWindows()) {
if (in_array("PERMS", $arVisibleColumns)) {
if ($USER->CanDoFileOperation('fm_view_permission', $arPath)) {
$UnixFP = CFileMan::GetUnixFilePermissions($fname);
$showField .= '<span title="' . $UnixFP[1] . '">' . $UnixFP[0] . '</span>';
if (function_exists("posix_getpwuid") && function_exists("posix_getgrgid")) {
$arrFileOwner = posix_getpwuid(fileowner($fnameConverted));
$arrFileGroup = posix_getgrgid(filegroup($fnameConverted));
$showField .= " " . $arrFileOwner['name'] . " " . $arrFileGroup['name'];
}
} else {
$showField = " ";
}
}
$row->AddField("PERMS", $showField);
}
$showField = "";
if (in_array("PERMS_B", $arVisibleColumns)) {
$showField = " ";
示例2: array
$arFilesEx = array();
$bFolderInList = false;
$currentValue = false;
$bCurrentValueDiff = false;
for($i = 0; $i < $filesCount; $i++)
{
$arFile = array("NAME" => $arFiles[$i]);
$arFile["PATH"] = $bSearch ? $arFiles[$i] : $path."/".$arFiles[$i];
$arFile["ABS_PATH"] = $documentRoot.$arFile["PATH"];
if (!$bFolderInList && $io->DirectoryExists($arFile["ABS_PATH"]))
$bFolderInList = true;
$arFile["PERM"] = CFileMan::GetUnixFilePermissions($arFile["ABS_PATH"]);
if ($currentValue === false)
$currentValue = $arFile["PERM"][0];
if (!$bCurrentValueDiff && $currentValue != $arFile["PERM"][0])
$bCurrentValueDiff = true;
$arFilesEx[] = $arFile;
}
if ($REQUEST_METHOD == "POST" && $USER->CanDoOperation('fileman_admin_folders') && $_GET["fu_action"] == 'change_perms' && check_freetrix_sessid())
{
CUtil::JSPostUnescape();
$APPLICATION->RestartBuffer();