本文整理汇总了PHP中CFileMan::IsWindows方法的典型用法代码示例。如果您正苦于以下问题:PHP CFileMan::IsWindows方法的具体用法?PHP CFileMan::IsWindows怎么用?PHP CFileMan::IsWindows使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFileMan
的用法示例。
在下文中一共展示了CFileMan::IsWindows方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
$row->AddActions($arActions);
}
$arPath = array($site, $path);
// arPath for current folder
// List's footer
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $db_DirContent->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
$strHTML = "<input type=\"text\" name=\"copy_to\" size=\"18\" value=\"\" disabled>" . "<input type=\"button\" name=\"copy_to_button\" value=\"...\" onClick=\"DRList();\" disabled>" . "<input type=\"hidden\" name=\"copy_to_site\" value=\"\">";
// Show form with add buttons
$arGrActionAr = array();
if ($USER->CanDoFileOperation('fm_delete_' . $type, $arPath)) {
$arGrActionAr["delete"] = GetMessage("MAIN_ADMIN_LIST_DELETE");
}
if ($USER->CanDoFileOperation('fm_edit_permission', $arPath)) {
$arGrActionAr["access"] = array("action" => "setAccess('" . Cutil::JSEscape($site) . "', '" . Cutil::JSEscape(urlencode($path)) . "')", "value" => "access", "name" => GetMessage('FILEMAN_ADMIN_ACCESS_PERMS_B'));
if (!CFileMan::IsWindows()) {
// $arGrActionAr["server_access"] = array(
// "action" => "setAccess('".Cutil::JSEscape($site)."', '".Cutil::JSEscape($path)."', true)",
// "value" => "server_access",
// "name" => GetMessage('FILEMAN_ADMIN_ACCESS_PERMS')
// );
}
}
if ($USER->CanDoFileOperation('fm_create_new_' . $type, $arPath)) {
//$arGrActionAr["copy"] = GetMessage("FILEMAN_ADM_COPY");
$arGrActionAr["copy"] = array("action" => "setCopyMove('" . Cutil::JSEscape($site) . "', '" . Cutil::JSEscape($path) . "', true, " . CUtil::PhpToJSObject($arrIsDir) . ")", "value" => "copy", "name" => GetMessage("FILEMAN_ADM_COPY"));
$arGrActionAr["pack"] = array("action" => "setPackUnpack('" . Cutil::JSEscape($site) . "', '" . Cutil::JSEscape($path) . "', true, " . CUtil::PhpToJSObject($arrIsDir) . ")", "value" => "pack", "name" => GetMessage("FILEMAN_ADMIN_ARC_PACK"));
}
if ($USER->CanDoFileOperation('fm_create_new_' . $type, $arPath) && $USER->CanDoFileOperation('fm_delete_' . $type, $arPath)) {
//$arGrActionAr["move"] = GetMessage("FILEMAN_ADM_MOVE");
$arGrActionAr["move"] = array("action" => "setCopyMove('" . Cutil::JSEscape($site) . "', '" . Cutil::JSEscape($path) . "', false, " . CUtil::PhpToJSObject($arrIsDir) . ")", "value" => "move", "name" => GetMessage("FILEMAN_ADM_MOVE"));
示例2: GetMessage
?>
</td>
<td></td>
<td><?php
echo GetMessage("FM_SA_CUR_VAL");
?>
</td>
<td class="bxsp-status"><?php
echo GetMessage("FM_SA_CHANGE_STATUS");
?>
</td>
</tr>
<?for($i = 0, $l = count($arFilesEx); $i < $l; $i++):?>
<?
if (CFileMan::IsWindows())
{
$html = $arFilesEx[$i]["PERM"][0] == '444' ? GetMessage("FM_SA_WIN_READONLY") : GetMessage("FM_SA_WIN_FULL_ACCESS");
$title = $html;
}
else
{
$html = $arFilesEx[$i]["PERM"][0];
$title = GetMessage("FILEMAN_SA_CUR_VAL").": ".$arFilesEx[$i]["PERM"][1];
}
?>
<tr id="bxsp_file_row_<?php
echo $i;
?>
">
<td class="bxsp-filename">"<?php