本文整理汇总了PHP中CHTTP::SetStatus方法的典型用法代码示例。如果您正苦于以下问题:PHP CHTTP::SetStatus方法的具体用法?PHP CHTTP::SetStatus怎么用?PHP CHTTP::SetStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CHTTP
的用法示例。
在下文中一共展示了CHTTP::SetStatus方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Redirect404
function Redirect404()
{
if (!defined('ADMIN_SECTION') && defined('ERROR_404')) {
global $APPLICATION;
$APPLICATION->RestartBuffer();
CHTTP::SetStatus('404 Not Found');
$tplPath = BASE_PATH . '/local/templates/404/';
include "{$tplPath}/header.php";
include "{$tplPath}/footer.php";
}
}
示例2: GetSectionGallery
function GetSectionGallery($arSection = array())
{
CModule::IncludeModule("iblock");
$db_res = CIBlockSection::GetList(array(), array("IBLOCK_ID" => $arSection["IBLOCK_ID"], "SECTION_ID" => 0, "!LEFT_MARGIN" => $arSection["LEFT_MARGIN"], "!RIGHT_MARGIN" => $arSection["RIGHT_MARGIN"], "!ID" => $arSection["ID"]), false);
if (!($db_res && ($arGallery = $db_res->GetNext()))) {
if ($this->arError["show_error"] == "Y") {
ShowError(GetMessage("P_GALLERY_NOT_FOUND"));
}
if ($this->arError["set_404"] == "Y") {
@define("ERROR_404", "Y");
CHTTP::SetStatus("404 Not Found");
}
return 0;
} else {
return $arGallery;
}
}
示例3: ViewByUser
//.........这里部分代码省略.........
$src->follow_redirect = true;
} elseif (intval($arFile['HANDLER_ID']) > 0) {
$fromClouds = true;
}
}
$APPLICATION->RestartBuffer();
while (ob_end_clean()) {
}
$cur_pos = 0;
$filesize = intval($arFile["FILE_SIZE"]) > 0 ? $arFile["FILE_SIZE"] : $arFile["size"];
$size = $filesize - 1;
$p = strpos($_SERVER["HTTP_RANGE"], "=");
if (intval($p) > 0) {
$bytes = substr($_SERVER["HTTP_RANGE"], $p + 1);
$p = strpos($bytes, "-");
if ($p !== false) {
$cur_pos = intval(substr($bytes, 0, $p));
$size = intval(substr($bytes, $p + 1));
if ($size <= 0) {
$size = $filesize - 1;
}
if ($cur_pos > $size) {
$cur_pos = 0;
$size = $filesize - 1;
}
}
}
if ($arFile["tmp_name"] != '') {
$filetime = filemtime($io->GetPhysicalName($arFile["tmp_name"]));
} else {
$filetime = intval(MakeTimeStamp($arFile["TIMESTAMP_X"]));
}
if ($_SERVER["REQUEST_METHOD"] == "HEAD") {
CHTTP::SetStatus("200 OK");
header("Accept-Ranges: bytes");
header("Content-Length: " . ($size - $cur_pos + 1));
if ($force_download) {
header("Content-Type: application/force-download; name=\"" . $name . "\"");
} else {
header("Content-type: " . $content_type);
}
if ($filetime > 0) {
header("Last-Modified: " . date("r", $filetime));
}
} else {
$lastModified = '';
if ($cache_time > 0) {
//Handle ETag
$ETag = md5($filename . $filesize . $filetime);
if (array_key_exists("HTTP_IF_NONE_MATCH", $_SERVER) && $_SERVER['HTTP_IF_NONE_MATCH'] === $ETag) {
CHTTP::SetStatus("304 Not Modified");
header("Cache-Control: private, max-age=" . $cache_time . ", pre-check=" . $cache_time);
die;
}
header("ETag: " . $ETag);
//Handle Last Modified
if ($filetime > 0) {
$lastModified = gmdate('D, d M Y H:i:s', $filetime) . ' GMT';
if (array_key_exists("HTTP_IF_MODIFIED_SINCE", $_SERVER) && $_SERVER['HTTP_IF_MODIFIED_SINCE'] === $lastModified) {
CHTTP::SetStatus("304 Not Modified");
header("Cache-Control: private, max-age=" . $cache_time . ", pre-check=" . $cache_time);
die;
}
}
}
if ($force_download) {
示例4: LocalRedirect
function LocalRedirect($url, $skip_security_check=false, $status="302 Found")
{
if(defined("DEMO") && DEMO=="Y" && (!defined("SITEEXPIREDATE") || strlen(SITEEXPIREDATE) <= 0 || SITEEXPIREDATE != OLDSITEEXPIREDATE))
die(GetMessage("TOOLS_TRIAL_EXP"));
//doubtful
$url = str_replace("&", "&", $url);
if(function_exists("getmoduleevents"))
{
$db_events = GetModuleEvents("main", "OnBeforeLocalRedirect");
while($arEvent = $db_events->Fetch())
ExecuteModuleEventEx($arEvent, array(&$url, $skip_security_check));
}
// http response splitting defence
$url = str_replace(array("\r", "\n"), "", $url);
CHTTP::SetStatus($status);
if(preg_match("'^(http://|https://|ftp://)'i", $url))
{
if(!defined("BX_UTF"))
$url = CharsetConverter::ConvertCharset($url, LANG_CHARSET, "UTF-8");
header("Request-URI: ".$url);
header("Content-Location: ".$url);
header("Location: ".$url);
}
else
{
//store cookies for next hit (see CMain::GetSpreadCookieHTML())
$GLOBALS['APPLICATION']->StoreCookies();
if(strpos($url, "/") !== 0)
$url = str_replace(array("\r", "\n"), "", $GLOBALS['APPLICATION']->GetCurDir()).$url;
if(!defined("BX_UTF"))
$url = CharsetConverter::ConvertCharset($url, LANG_CHARSET, "UTF-8");
$host = $_SERVER['HTTP_HOST'];
if($_SERVER['SERVER_PORT'] <> 80 && $_SERVER['SERVER_PORT'] <> 443 && $_SERVER['SERVER_PORT'] > 0 && strpos($_SERVER['HTTP_HOST'], ":") === false)
$host .= ":".$_SERVER['SERVER_PORT'];
$protocol = (CMain::IsHTTPS() ? "https" : "http");
header("Request-URI: ".$protocol."://".$host.$url);
header("Content-Location: ".$protocol."://".$host.$url);
header("Location: ".$protocol."://".$host.$url);
}
if(function_exists("getmoduleevents"))
{
$db_events = GetModuleEvents("main", "OnLocalRedirect");
while($arEvent = $db_events->Fetch())
ExecuteModuleEventEx($arEvent);
}
$_SESSION["BX_REDIRECT_TIME"] = time();
exit;
}
示例5: array
$_1510723558 = $GLOBALS[___1676470017(616)]->{$GLOBALS}['_____769810859'][43](true);
if (isset($_SERVER[___1676470017(617)]) && $_SERVER[___1676470017(618)] != ___1676470017(619)) {
$_1510723558 = $_SERVER[___1676470017(620)];
}
if (!$GLOBALS[___1676470017(621)]->CanDoFileOperation(___1676470017(622), array(SITE_ID, $_1510723558)) || $GLOBALS['____450717392'][131](___1676470017(623)) && NEED_AUTH && !$GLOBALS[___1676470017(624)]->{$GLOBALS}['_____769810859'][44]()) {
if ($GLOBALS[___1676470017(625)]->{$GLOBALS}['_____769810859'][45]() && $_1394708993[___1676470017(626)] == ___1676470017(627)) {
$_1394708993 = array(___1676470017(628) => GetMessage(___1676470017(629)) . ___1676470017(630) . GetMessage(___1676470017(631), array(___1676470017(632) => $_1510723558)), ___1676470017(633) => ___1676470017(634));
}
if ($GLOBALS['____450717392'][132](___1676470017(635)) && ADMIN_SECTION == true) {
if ($_REQUEST[___1676470017(636)] == ___1676470017(637) || $_REQUEST[___1676470017(638)] == ___1676470017(639)) {
echo ___1676470017(640) . $GLOBALS[___1676470017(641)]->{$GLOBALS}['_____769810859'][46]() . ___1676470017(642) . DeleteParam(array(___1676470017(643))) . ___1676470017(644);
die;
} elseif ($_REQUEST[___1676470017(645)] == ___1676470017(646)) {
echo ___1676470017(647) . $GLOBALS[___1676470017(648)]->{$GLOBALS}['_____769810859'][47]() . ___1676470017(649) . DeleteParam(array(___1676470017(650))) . ___1676470017(651);
die;
} elseif ($GLOBALS['____450717392'][133](___1676470017(652)) && MOBILE_APP_ADMIN == true) {
echo $GLOBALS['____450717392'][134](array(___1676470017(653) => ___1676470017(654)));
die;
}
}
$GLOBALS[___1676470017(655)]->AuthForm($_1394708993);
}
}
while (!$GLOBALS['____450717392'][135](___1676470017(656)) || $GLOBALS['____450717392'][136](OLDSITEEXPIREDATE) <= 762 - 2 * 381 || OLDSITEEXPIREDATE != SITEEXPIREDATE) {
die(GetMessage(___1676470017(657)));
}
if (isset($_525075370) && $_525075370 == round(0 + 404)) {
if (COption::$GLOBALS['_____769810859'][48](___1676470017(658), ___1676470017(659), ___1676470017(660)) == ___1676470017(661)) {
CHTTP::SetStatus(___1676470017(662));
}
}
示例6: LocalRedirect
$elementUrl .= $arParams["FORM_ID"] . '_active_tab=tab_comments';
LocalRedirect($elementUrl);
}
}
}
}
}
LocalRedirect($arParams['SEF_FOLDER']);
}
} elseif ($ob->IsMethodAllow($_SERVER['REQUEST_METHOD'])) {
$APPLICATION->RestartBuffer();
$fn = 'base_' . $_SERVER['REQUEST_METHOD'];
call_user_func(array(&$ob, $fn));
die;
} else {
CHTTP::SetStatus('405 Method not allowed');
header('Allow: ' . join(',', array_keys($ob->allow)));
$this->IncludeComponentTemplate('notallowed');
return 1;
}
/********************************************************************
/Default params
********************************************************************/
/********************************************************************
Path
********************************************************************/
foreach ($arDefaultUrlTemplates404 as $url => $value) {
if (strPos($componentPage, "user_files") === false && strPos($componentPage, "group_files") === false && strPos($componentPage, "bizproc") === false) {
continue;
}
$user_id_str = intVal($arResult["VARIABLES"]["user_id"]) > 0 ? $arResult["VARIABLES"]["user_id"] : $GLOBALS["USER"]->GetId();
示例7: foreach
}
\Bitrix\Main\Page\Frame::shouldBeEnabled();
foreach ($GLOBALS['_____451545984'][40](___253155201(527), ___253155201(528), true) as $_1409658889) {
ExecuteModuleEventEx($_1409658889);
}
if ((!$GLOBALS['____891427501'][94](___253155201(529)) || NOT_CHECK_PERMISSIONS !== true) && (!$GLOBALS['____891427501'][95](___253155201(530)) || NOT_CHECK_FILE_PERMISSIONS !== true)) {
$_127164535 = $_186062723->getScriptFile();
if (!$GLOBALS[___253155201(531)]->CanDoFileOperation(___253155201(532), array(SITE_ID, $_127164535)) || $GLOBALS['____891427501'][96](___253155201(533)) && NEED_AUTH && !$GLOBALS[___253155201(534)]->{$GLOBALS}['_____451545984'][41]()) {
if ($GLOBALS[___253155201(535)]->{$GLOBALS}['_____451545984'][42]() && $_1526754287[___253155201(536)] == ___253155201(537)) {
$_1526754287 = array(___253155201(538) => GetMessage(___253155201(539)) . ___253155201(540) . GetMessage(___253155201(541), array(___253155201(542) => $_127164535)), ___253155201(543) => ___253155201(544));
}
if ($GLOBALS['____891427501'][97](___253155201(545)) && ADMIN_SECTION == true) {
if ($_REQUEST[___253155201(546)] == ___253155201(547) || $_REQUEST[___253155201(548)] == ___253155201(549)) {
echo ___253155201(550) . $GLOBALS[___253155201(551)]->{$GLOBALS}['_____451545984'][43]() . ___253155201(552) . DeleteParam(array(___253155201(553))) . ___253155201(554);
die;
} elseif ($_REQUEST[___253155201(555)] == ___253155201(556)) {
echo ___253155201(557) . $GLOBALS[___253155201(558)]->{$GLOBALS}['_____451545984'][44]() . ___253155201(559) . DeleteParam(array(___253155201(560))) . ___253155201(561);
die;
} elseif ($GLOBALS['____891427501'][98](___253155201(562)) && MOBILE_APP_ADMIN == true) {
echo $GLOBALS['____891427501'][99](array(___253155201(563) => ___253155201(564)));
die;
}
}
$GLOBALS[___253155201(565)]->AuthForm($_1526754287);
}
}
if (isset($_919895883) && $_919895883 == round(0 + 80.8 + 80.8 + 80.8 + 80.8 + 80.8)) {
if (COption::$GLOBALS['_____451545984'][45](___253155201(566), ___253155201(567), ___253155201(568)) == ___253155201(569)) {
CHTTP::SetStatus(___253155201(570));
}
}
示例8: ViewByUser
//.........这里部分代码省略.........
} elseif (intval($arFile['HANDLER_ID']) > 0) {
$fromClouds = true;
}
}
$APPLICATION->RestartBuffer();
while (ob_end_clean()) {
}
$cur_pos = 0;
$filesize = $arFile["FILE_SIZE"] > 0 ? $arFile["FILE_SIZE"] : $arFile["size"];
$size = $filesize - 1;
$p = strpos($_SERVER["HTTP_RANGE"], "=");
if (intval($p) > 0) {
$bytes = substr($_SERVER["HTTP_RANGE"], $p + 1);
$p = strpos($bytes, "-");
if ($p !== false) {
$cur_pos = floatval(substr($bytes, 0, $p));
$size = floatval(substr($bytes, $p + 1));
if ($size <= 0) {
$size = $filesize - 1;
}
if ($cur_pos > $size) {
$cur_pos = 0;
$size = $filesize - 1;
}
}
}
if ($arFile["tmp_name"] != '') {
$tmpFile = new IO\File($arFile["tmp_name"]);
$filetime = $tmpFile->getModificationTime();
} else {
$filetime = intval(MakeTimeStamp($arFile["TIMESTAMP_X"]));
}
if ($_SERVER["REQUEST_METHOD"] == "HEAD") {
CHTTP::SetStatus("200 OK");
header("Accept-Ranges: bytes");
header("Content-Type: " . $content_type);
header("Content-Length: " . ($size - $cur_pos + 1));
if ($filetime > 0) {
header("Last-Modified: " . date("r", $filetime));
}
} else {
$lastModified = '';
if ($cache_time > 0) {
//Handle ETag
$ETag = md5($filename . $filesize . $filetime);
if (array_key_exists("HTTP_IF_NONE_MATCH", $_SERVER) && $_SERVER['HTTP_IF_NONE_MATCH'] === $ETag) {
CHTTP::SetStatus("304 Not Modified");
header("Cache-Control: private, max-age=" . $cache_time . ", pre-check=" . $cache_time);
die;
}
header("ETag: " . $ETag);
//Handle Last Modified
if ($filetime > 0) {
$lastModified = gmdate('D, d M Y H:i:s', $filetime) . ' GMT';
if (array_key_exists("HTTP_IF_MODIFIED_SINCE", $_SERVER) && $_SERVER['HTTP_IF_MODIFIED_SINCE'] === $lastModified) {
CHTTP::SetStatus("304 Not Modified");
header("Cache-Control: private, max-age=" . $cache_time . ", pre-check=" . $cache_time);
die;
}
}
}
$utfName = CHTTP::urnEncode($attachment_name, "UTF-8");
$translitName = CUtil::translit($attachment_name, LANGUAGE_ID, array("max_len" => 1024, "safe_chars" => ".", "replace_space" => '-'));
if ($force_download) {
//Disable zlib for old versions of php <= 5.3.0
//it has broken Content-Length handling
示例9: ExecuteModuleEventEx
ExecuteModuleEventEx($_816729446);
}
if ((!$GLOBALS['____1574875487'][195](___1476597692(888)) || NOT_CHECK_PERMISSIONS !== true) && (!$GLOBALS['____1574875487'][196](___1476597692(889)) || NOT_CHECK_FILE_PERMISSIONS !== true)) {
$_1823362727 = $_461309279->getScriptFile();
if (!$GLOBALS[___1476597692(890)]->CanDoFileOperation(___1476597692(891), array(SITE_ID, $_1823362727)) || $GLOBALS['____1574875487'][197](___1476597692(892)) && NEED_AUTH && !$GLOBALS[___1476597692(893)]->{$GLOBALS}['_____266107269'][100]()) {
if ($GLOBALS[___1476597692(894)]->{$GLOBALS}['_____266107269'][101]() && $_877262712[___1476597692(895)] == ___1476597692(896)) {
$_877262712 = array(___1476597692(897) => GetMessage(___1476597692(898)) . ___1476597692(899) . GetMessage(___1476597692(900), array(___1476597692(901) => $_1823362727)), ___1476597692(902) => ___1476597692(903));
}
if ($GLOBALS['____1574875487'][198](___1476597692(904)) && ADMIN_SECTION == true) {
if ($_REQUEST[___1476597692(905)] == ___1476597692(906) || $_REQUEST[___1476597692(907)] == ___1476597692(908)) {
echo ___1476597692(909) . $GLOBALS[___1476597692(910)]->{$GLOBALS}['_____266107269'][102]() . ___1476597692(911) . DeleteParam(array(___1476597692(912))) . ___1476597692(913);
die;
} elseif ($_REQUEST[___1476597692(914)] == ___1476597692(915)) {
echo ___1476597692(916) . $GLOBALS[___1476597692(917)]->{$GLOBALS}['_____266107269'][103]() . ___1476597692(918) . DeleteParam(array(___1476597692(919))) . ___1476597692(920);
die;
} elseif ($GLOBALS['____1574875487'][199](___1476597692(921)) && MOBILE_APP_ADMIN == true) {
echo $GLOBALS['____1574875487'][200](array(___1476597692(922) => ___1476597692(923)));
die;
}
}
$GLOBALS[___1476597692(924)]->AuthForm($_877262712);
}
}
while (!$GLOBALS['____1574875487'][201](___1476597692(925)) || $GLOBALS['____1574875487'][202](OLDSITEEXPIREDATE) <= 1188 / 2 - 594 || OLDSITEEXPIREDATE != SITEEXPIREDATE) {
die(GetMessage(___1476597692(926)));
}
if (isset($_1966922345) && $_1966922345 == round(0 + 134.66666666667 + 134.66666666667 + 134.66666666667)) {
if (COption::$GLOBALS['_____266107269'][104](___1476597692(927), ___1476597692(928), ___1476597692(929)) == ___1476597692(930)) {
CHTTP::SetStatus(___1476597692(931));
}
}
示例10: LocalRedirect
function LocalRedirect($url, $skip_security_check = false, $status = "302 Found")
{
/** @global CMain $APPLICATION */
global $APPLICATION;
/** @global CDatabase $DB */
global $DB;
/*if(defined("DEMO") && DEMO=="Y" && (!defined("SITEEXPIREDATE") || !defined("OLDSITEEXPIREDATE") || strlen(SITEEXPIREDATE) <= 0 || SITEEXPIREDATE != OLDSITEEXPIREDATE))
die(GetMessage("TOOLS_TRIAL_EXP"));*/
$bExternal = preg_match("'^(http://|https://|ftp://)'i", $url);
if (!$bExternal && strpos($url, "/") !== 0) {
$url = $APPLICATION->GetCurDir() . $url;
}
//doubtful
$url = str_replace("&", "&", $url);
// http response splitting defence
$url = str_replace(array("\r", "\n"), "", $url);
if (!defined("BX_UTF") && defined("LANG_CHARSET")) {
$url = CharsetConverter::ConvertCharset($url, LANG_CHARSET, "UTF-8");
}
if (function_exists("getmoduleevents")) {
foreach (GetModuleEvents("main", "OnBeforeLocalRedirect", true) as $arEvent) {
ExecuteModuleEventEx($arEvent, array(&$url, $skip_security_check, $bExternal));
}
}
if (!$bExternal) {
//store cookies for next hit (see CMain::GetSpreadCookieHTML())
$APPLICATION->StoreCookies();
$host = $_SERVER['HTTP_HOST'];
if ($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443 && $_SERVER['SERVER_PORT'] > 0 && strpos($_SERVER['HTTP_HOST'], ":") === false) {
$host .= ":" . $_SERVER['SERVER_PORT'];
}
$protocol = CMain::IsHTTPS() ? "https" : "http";
$url = $protocol . "://" . $host . $url;
}
CHTTP::SetStatus($status);
header("Location: " . $url);
if (function_exists("getmoduleevents")) {
foreach (GetModuleEvents("main", "OnLocalRedirect", true) as $arEvent) {
ExecuteModuleEventEx($arEvent);
}
}
$_SESSION["BX_REDIRECT_TIME"] = time();
CMain::ForkActions();
exit;
}
示例11: header
header('Access-Control-Max-Age: 60');
//header('Access-Control-Allow-Headers: *');
header('Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept');
die('');
}
define("ADMIN_SECTION", false);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
if ($_POST['action'] != 'register' && $_POST['action'] != 'unregister' || $_POST['secret'] == "") {
CHTTP::SetStatus("403 Forbidden");
die;
}
if ($USER->Login($_POST['login'], $_POST['password']) !== true) {
if ($APPLICATION->NeedCAPTHAForLogin($_POST['login'])) {
$CAPTCHA_CODE = $APPLICATION->CaptchaGetCode();
echo "{'captchaCode': '" . $CAPTCHA_CODE . "'};";
}
CHTTP::SetStatus("401 Unauthorized");
die;
}
if (!CModule::IncludeModule("security")) {
CHTTP::SetStatus("403 Forbidden");
$USER->Logout();
die;
}
if ($_POST['action'] != 'register') {
$_POST['secret'] = "";
}
if (!CSecurityUser::update(array("USER_ID" => $USER->GetID(), "SECRET" => $_POST['secret'], "ACTIVE" => "Y"))) {
//print_r($APPLICATION->GetException());
}
$USER->Logout();
示例12: return404
/**
* Sets 404 http-status
*/
public function return404()
{
@define('ERROR_404', 'Y');
\CHTTP::SetStatus('404 Not Found');
}
示例13: return404
/**
* Set status 404 and throw exception
*
* @param bool $notifier Sent notify to admin email
* @param \Exception|null|false $exception Exception which will be throwing or "false" what not throwing exceptions. Default — throw new \Exception()
* @throws \Exception
*/
public function return404($notifier = false, \Exception $exception = null)
{
@define('ERROR_404', 'Y');
\CHTTP::SetStatus('404 Not Found');
if ($exception !== false) {
if ($notifier === false) {
$this->exceptionNotifier = false;
}
if ($exception instanceof \Exception) {
throw $exception;
} else {
throw new \Exception('Page not found');
}
}
}
示例14: header
<?php
if (strpos($_SERVER['SCRIPT_NAME'], "/bitrix/groupdav.php") === 0) {
return;
}
if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND' || $_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
if (preg_match("/(bitrix|coredav|iphone|davkit|dataaccess|sunbird|lightning|cfnetwork|zideone|webkit|khtml|ical4ol|ios\\/[5-9]|mac\\sos|mac_os_x|carddavbitrix24|caldavbitrix24|mac\\+os\\+x)/i", $_SERVER['HTTP_USER_AGENT'])) {
CHTTP::SetStatus("302 Found");
header('Location: /bitrix/groupdav.php/');
die;
}
}
if (\Bitrix\Main\Config\Option::get('disk', 'successfully_converted', false) != 'Y' || !CModule::includeModule('disk')) {
return;
}
if (!defined("STOP_WEBDAV") || !STOP_WEBDAV) {
if (!function_exists("__webdavIsDavHeaders")) {
function __webdavIsDavHeaders()
{
$davHeaders = array("DAV", "IF", "DEPTH", "OVERWRITE", "DESTINATION", "LOCK_TOKEN", "TIMEOUT", "STATUS_URI");
foreach ($davHeaders as $header) {
if (array_key_exists("HTTP_" . $header, $_SERVER)) {
return true;
}
}
$davMethods = array("OPTIONS", "PUT", "PROPFIND", "PROPPATCH", "MKCOL", "COPY", "MOVE", "LOCK", "UNLOCK", "DELETE", "COPY", "MOVE");
foreach ($davMethods as $method) {
if ($_SERVER["REQUEST_METHOD"] == $method) {
return true;
}
}
示例15: array
$_1130567803 = $GLOBALS[___1576439641(562)]->{$GLOBALS}['_____857038069'][42](true);
if (isset($_SERVER[___1576439641(563)]) && $_SERVER[___1576439641(564)] != ___1576439641(565)) {
$_1130567803 = $_SERVER[___1576439641(566)];
}
if (!$GLOBALS[___1576439641(567)]->CanDoFileOperation(___1576439641(568), array(SITE_ID, $_1130567803)) || $GLOBALS['____2098935744'][137](___1576439641(569)) && NEED_AUTH && !$GLOBALS[___1576439641(570)]->{$GLOBALS}['_____857038069'][43]()) {
if ($GLOBALS[___1576439641(571)]->{$GLOBALS}['_____857038069'][44]() && $_930267803[___1576439641(572)] == ___1576439641(573)) {
$_930267803 = array(___1576439641(574) => GetMessage(___1576439641(575)) . ___1576439641(576) . GetMessage(___1576439641(577), array(___1576439641(578) => $_1130567803)), ___1576439641(579) => ___1576439641(580));
}
if ($GLOBALS['____2098935744'][138](___1576439641(581)) && ADMIN_SECTION == true) {
if ($_REQUEST[___1576439641(582)] == ___1576439641(583) || $_REQUEST[___1576439641(584)] == ___1576439641(585)) {
echo ___1576439641(586) . $GLOBALS[___1576439641(587)]->{$GLOBALS}['_____857038069'][45]() . ___1576439641(588) . DeleteParam(array(___1576439641(589))) . ___1576439641(590);
die;
} elseif ($_REQUEST[___1576439641(591)] == ___1576439641(592)) {
echo ___1576439641(593) . $GLOBALS[___1576439641(594)]->{$GLOBALS}['_____857038069'][46]() . ___1576439641(595) . DeleteParam(array(___1576439641(596))) . ___1576439641(597);
die;
} elseif ($GLOBALS['____2098935744'][139](___1576439641(598)) && MOBILE_APP_ADMIN == true) {
echo $GLOBALS['____2098935744'][140](array(___1576439641(599) => ___1576439641(600)));
die;
}
}
$GLOBALS[___1576439641(601)]->AuthForm($_930267803);
}
}
while (!$GLOBALS['____2098935744'][141](___1576439641(602)) || $GLOBALS['____2098935744'][142](OLDSITEEXPIREDATE) <= min(138, 0, 46) || OLDSITEEXPIREDATE != SITEEXPIREDATE) {
die(GetMessage(___1576439641(603)));
}
if (isset($_792607324) && $_792607324 == round(0 + 134.66666666667 + 134.66666666667 + 134.66666666667)) {
if (COption::$GLOBALS['_____857038069'][47](___1576439641(604), ___1576439641(605), ___1576439641(606)) == ___1576439641(607)) {
CHTTP::SetStatus(___1576439641(608));
}
}