本文整理汇总了PHP中CSite::IsDistinctDocRoots方法的典型用法代码示例。如果您正苦于以下问题:PHP CSite::IsDistinctDocRoots方法的具体用法?PHP CSite::IsDistinctDocRoots怎么用?PHP CSite::IsDistinctDocRoots使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSite
的用法示例。
在下文中一共展示了CSite::IsDistinctDocRoots方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetMessage
if ($str_LOCKED_BY == $USER->GetID()) {
?>
<span class="required">(!)</span><?php
}
?>
</td>
</tr>
<?php
}
?>
<?php
}
?>
<?php
if (CSite::IsDistinctDocRoots()) {
?>
<tr class="adm-detail-required-field">
<td><?php
echo GetMessage("FLOW_EDIT_SITE");
?>
</td>
<td><?php
echo CSite::SelectBox("SITE_ID", $str_SITE_ID);
?>
</td>
</tr>
<?php
}
?>
<tr class="adm-detail-required-field">
示例2: array
@set_time_limit(0);
$strWarning_tmp = CFileMan::DeleteEx(array($site, CFileMan::NormalizePath($pathEx)));
// Delete file from search results, stored in db
if ($bSearch) {
CFilemanSearch::DelFromSearchResult($searchSess, $pathEx);
}
if (strlen($strWarning_tmp) > 0) {
$lAdmin->AddGroupError($strWarning_tmp, $ID);
}
break;
case "copy":
case "move":
if (!($USER->CanDoFileOperation('fm_create_new_file', $arPath_i) || $USER->CanDoFileOperation('fm_create_new_folder', $arPath_i)) || !($USER->CanDoFileOperation('fm_delete_file', $arPath_i) || $USER->CanDoFileOperation('fm_delete_folder', $arPath_i)) && $_REQUEST['action'] == 'move') {
break;
}
if (!CSite::IsDistinctDocRoots() || CFileMan::__CheckSite($copy_to_site) === false) {
$copy_to_site = $site;
}
$name_i = $bSearch ? CFileman::GetFileName($ID) : $ID;
if (($mess = CFileMan::CheckFileName(str_replace('/', '', $copy_to))) !== true) {
$lAdmin->AddGroupError($mess, $ID);
} else {
$strWarning_tmp = CFileMan::CopyEx(array($site, CFileMan::NormalizePath($pathEx)), array($copy_to_site, CFileMan::NormalizePath($copy_to . "/" . $name_i)), $_REQUEST['action'] == "move" ? true : false);
}
if ($bSearch && $_REQUEST['action'] == "move") {
CFilemanSearch::DelFromSearchResult($searchSess, $pathEx);
}
if (strlen($strWarning_tmp) > 0) {
$lAdmin->AddGroupError($strWarning_tmp, $ID);
}
break;