本文整理匯總了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;