uawdijnntqw1x1x1
IP : 3.141.25.1
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
1c9cb
/
..
/
bitrix
/
modules
/
webdav
/
prolog_before.php
/
/
<? if (defined("STOP_WEBDAV") && STOP_WEBDAV) return; if (!function_exists("__webdav_is_dav_headers")) { function __webdav_is_dav_headers() { $aDavHeaders = array( "DAV", "IF", "DEPTH", "OVERWRITE", "DESTINATION", "LOCK_TOKEN", "TIMEOUT", "STATUS_URI"); foreach ($aDavHeaders as $header) { if (array_key_exists("HTTP_".$header, $_SERVER)) { return true; } } $aDavMethods = array( //"HEAD", // not webdav "OPTIONS", // not webdav "PUT", // not webdav "PROPFIND", "PROPPATCH", "MKCOL", "COPY", "MOVE", "LOCK", "UNLOCK"); foreach ($aDavMethods as $method) { if ($_SERVER["REQUEST_METHOD"] == $method) { return true; } } if (strpos($_SERVER['HTTP_USER_AGENT'], "Microsoft Office") !== false && strpos($_SERVER['HTTP_USER_AGENT'], "Outlook") === false ) { return true; } return false; } } $bNeedInclude = true; if ($_SERVER["REQUEST_METHOD"] == "HEAD") { $res = strtolower($_SERVER["HTTP_USER_AGENT"]); if (strpos($res, "microsoft") === false && strlen($_SERVER["REAL_FILE_PATH"]) <= 0 && substr($_SERVER['REQUEST_URI'], -1, 1) == '/') { $bNeedInclude = false; $res = CUrlRewriter::GetList(Array("QUERY" => $_SERVER['REQUEST_URI'])); foreach($res as $res_detail) { if (strpos($res_detail["ID"], "webdav") !== false || strpos($res_detail["ID"], "socialnetwork") !== false) { $bNeedInclude = true; break; } } } /* $arUserAgents = array( // XP "Microsoft Data Access Internet Publishing Provider DAV", "Microsoft Office Existence Discovery", // W7 "Microsoft Office Protocol Discovery", "Microsoft Office Existence Discovery", "Microsoft-WebDAV-MiniRedir/6.1.7600", "Microsoft Office Core Storage Infrastructure/1.0", ); */ } if (__webdav_is_dav_headers() && $bNeedInclude) { if(CModule::includeModule('ldap') && CLdapUtil::isBitrixVMAuthSupported()) { CLdapUtil::bitrixVMAuthorize(); } if (!$_SERVER['PHP_AUTH_USER'] || !$_SERVER['PHP_AUTH_USER']) { $res = (!empty($_SERVER['REDIRECT_REMOTE_USER']) ? $_SERVER['REDIRECT_REMOTE_USER'] : $_SERVER['REMOTE_USER']); if (!empty($res) && preg_match('/(?<=(basic\s))(.*)$/is', $res, $matches)) { $res = trim($matches[0]); list($_SERVER["PHP_AUTH_USER"], $_SERVER["PHP_AUTH_PW"]) = explode(':', base64_decode($res)); } } if (!is_array($GLOBALS["APPLICATION"]->arComponentMatch)) $GLOBALS["APPLICATION"]->arComponentMatch = array(); $GLOBALS["APPLICATION"]->arComponentMatch[] = 'webdav'; $GLOBALS["APPLICATION"]->arComponentMatch[] = 'socialnetwork'; define("STOP_STATISTICS", true); define("NO_AGENT_STATISTIC","Y"); define("NO_AGENT_CHECK", true); $GLOBALS["APPLICATION"]->ShowPanel = false; if (CModule::IncludeModule("webdav")) { CWebDavBase::OnBeforeProlog(); } } ?>
/var/www/axolotl/data/www/yar.axolotls.ru/1c9cb/../bitrix/modules/webdav/prolog_before.php