99 if (empty(
$arMenu[
"aMenuLinks"]))
103 foreach (
$arMenu[
"aMenuLinks"] as $menuIndex => $arItem)
105 if (!isset($arItem[1]))
108 $menuLink = $arItem[1];
109 $position = mb_strpos($menuLink,
"?");
110 if ($position !==
false)
111 $menuLink = mb_substr($menuLink, 0, $position);
113 if ($menuLink !=
"/")
114 $menuLink = rtrim($menuLink,
"/");
117 $dirName = str_replace(
"\\",
"/", dirname(
$path));
119 if ($menuLink ==
$path || (
$filename ==
"index.php" && $menuLink == $dirName))
122 'menuFile' => $menuFile,
123 'menuIndex' => $menuIndex,
124 'menuItem' => $arItem
126 unset(
$arMenu[
"aMenuLinks"][$menuIndex]);
134 if(COption::GetOptionString(
"fileman",
"log_page",
"Y")==
"Y")
148 if (!
$USER->CanDoOperation(
'fileman_admin_files'))
166 $back_url = (
$io->ExtractNameFromPath(
$path) ==
"index.php" ?
"/" : str_replace(
"\\",
"/", dirname(
$path)));
172 $obSite = CSite::GetByID(
$_REQUEST[
"site"]);
173 if ($arSite = $obSite->Fetch())
189if (
$_SERVER[
"REQUEST_METHOD"] ==
"POST")
197 if (
$io->ExtractNameFromPath(
$path) ==
"index.php")
209 $arUndoParams =
array(
210 'module' =>
'fileman',
211 'undoType' =>
'delete_file',
212 'undoHandler' =>
'CFileman::UndoFileDelete',
213 'arContent' =>
array(
215 'content' =>
$f->GetContents(),
228 if (isset($_GET[
'subdialog']) && $_GET[
'subdialog'] ==
'Y')
229 echo
"<script>structReload('".urlencode(
$_REQUEST[
"path"]).
"');</script>";
static deleteByFilter($filter)
static delete($siteId, $filter)
static Log($SEVERITY, $AUDIT_TYPE_ID, $MODULE_ID, $ITEM_ID, $DESCRIPTION=false, $SITE_ID=false)
foreach(['Bitrix\\Main'=> '/lib', 'Psr\\Container'=> '/vendor/psr/container/src', 'Psr\\Log'=> '/vendor/psr/log/src', 'Psr\\Http\\Message'=> '/vendor/psr/http-message/src', 'Psr\\Http\\Client'=> '/vendor/psr/http-client/src', 'Http\\Promise'=> '/vendor/php-http/promise/src', 'PHPMailer\\PHPMailer'=> '/vendor/phpmailer/phpmailer/src', 'GeoIp2'=> '/vendor/geoip2/geoip2/src', 'MaxMind\\Db'=> '/vendor/maxmind-db/reader/src/MaxMind/Db', 'PhpParser'=> '/vendor/nikic/php-parser/lib/PhpParser', 'Recurr'=> '/vendor/simshaun/recurr/src/Recurr',] as $namespace=> $namespacePath) $documentRoot
if(!defined('SITE_ID')) $lang
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title