本文整理汇总了PHP中CUtil::ConvertToLangCharset方法的典型用法代码示例。如果您正苦于以下问题:PHP CUtil::ConvertToLangCharset方法的具体用法?PHP CUtil::ConvertToLangCharset怎么用?PHP CUtil::ConvertToLangCharset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUtil
的用法示例。
在下文中一共展示了CUtil::ConvertToLangCharset方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __struct_get_file_info
function __struct_get_file_info($abs_path, $file)
{
static $arTextExt = array("php", "htm", "html");
$io = CBXVirtualIo::GetInstance();
$arFile = array("file"=>$file, "name"=>"");
if($io->DirectoryExists($abs_path."/".$file))
{
$arFile["type"] = "D";
if($io->FileExists($abs_path."/".$file."/.section.php"))
{
$sSectionName = "";
$arDirProperties = array();
include($io->GetPhysicalName($abs_path."/".$file."/.section.php"));
$arFile["name"] = $sSectionName;
$arFile["properties"] = $arDirProperties;
}
}
else
{
$arFile["type"] = "F";
if(in_array(GetFileExtension($file), $arTextExt))
{
$f = $io->GetFile($abs_path."/".$file);
$sContent = $f->GetContents();
$arContent = ParseFileContent($sContent);
$arFile["name"] = CUtil::ConvertToLangCharset($arContent["TITLE"]);
$arFile["properties"] = $arContent["PROPERTIES"];
}
}
if($GLOBALS['arOptions']['show_file_info'] == true)
{
if ($io->DirectoryExists($abs_path."/".$file))
{
$f = $io->GetDirectory($abs_path."/".$file);
$arFile["time"] = $f->GetModificationTime();
}
else
{
$f = $io->GetFile($abs_path."/".$file);
$arFile["time"] = $f->GetModificationTime();
$arFile["size"] = $f->GetFileSize();
}
}
return $arFile;
}
示例2: GetHTTPPage
//.........这里部分代码省略.........
$_1951227514 = $_85191511;
$_1420238383 = $_1909338176;
} else {
$_1951227514 = $_1246261113;
$_1420238383 = $_1394749772;
}
$_1844440507 = $GLOBALS['____1606645557'][707]($_1951227514, $_1420238383, $_255605321, $_319975293, round(0 + 30 + 30 + 30 + 30));
if ($_1844440507) {
$_1950626972 = ___2114809146(1562);
if ($_1283651230) {
$_1950626972 .= ___2114809146(1563) . $_1246261113 . ___2114809146(1564) . $_594989970 . ___2114809146(1565);
if ($GLOBALS['____1606645557'][708]($_1545283451) > 197 * 2 - 394) {
$_1950626972 .= ___2114809146(1566) . $GLOBALS['____1606645557'][709]($_1545283451 . ___2114809146(1567) . $_1958536959) . ___2114809146(1568);
}
} else {
$_1950626972 .= ___2114809146(1569) . $_594989970 . ___2114809146(1570);
}
$_1494716752 = self::GetOption(US_BASE_MODULE, ___2114809146(1571), ___2114809146(1572));
$_1277737313 .= ___2114809146(1573) . $GLOBALS['____1606645557'][710]($_1494716752);
if ($GLOBALS['____1606645557'][711](___2114809146(1574))) {
$_1277737313 .= ___2114809146(1575) . $GLOBALS['____1606645557'][712](___2114809146(1576));
} else {
$_1277737313 .= ___2114809146(1577) . $GLOBALS['____1606645557'][713](___2114809146(1578));
}
$_1279113312 = $DB->GetVersion();
$_1277737313 .= ___2114809146(1579) . $GLOBALS['____1606645557'][714]($_1279113312 != false ? $_1279113312 : ___2114809146(1580));
$_1277737313 .= ___2114809146(1581) . COption::$GLOBALS['_____1980115119'][41](___2114809146(1582), ___2114809146(1583), ___2114809146(1584));
$_1950626972 .= ___2114809146(1585);
$_1950626972 .= ___2114809146(1586);
$_1950626972 .= ___2114809146(1587) . $_1246261113 . ___2114809146(1588);
$_1950626972 .= ___2114809146(1589);
$_1950626972 .= ___2114809146(1590);
$_1950626972 .= ___2114809146(1591) . $GLOBALS['____1606645557'][715]($_1277737313) . ___2114809146(1592);
$_1950626972 .= "{$_1277737313}";
$_1950626972 .= ___2114809146(1593);
$GLOBALS['____1606645557'][716]($_1844440507, $_1950626972);
$_1235838466 = False;
while (!$GLOBALS['____1606645557'][717]($_1844440507)) {
$_554090610 = $GLOBALS['____1606645557'][718]($_1844440507, round(0 + 1024 + 1024 + 1024 + 1024));
if ($_554090610 != ___2114809146(1594)) {
if ($GLOBALS['____1606645557'][719](___2114809146(1595), $_554090610)) {
$_1235838466 = True;
}
} else {
break;
}
}
$_474958411 = ___2114809146(1596);
if ($_1235838466) {
$_130033841 = round(0 + 4096);
$_1350648324 = 1396 / 2 - 698;
$_554090610 = FGets($_1844440507, $_130033841);
$_554090610 = StrToLower($_554090610);
$_869744062 = ___2114809146(1597);
$_2136471060 = min(16, 0, 5.3333333333333);
while ($_2136471060 < StrLen($_554090610) && $GLOBALS['____1606645557'][720]($_554090610[$_2136471060], array(___2114809146(1598), ___2114809146(1599), ___2114809146(1600), ___2114809146(1601), ___2114809146(1602), ___2114809146(1603), ___2114809146(1604), ___2114809146(1605), ___2114809146(1606), ___2114809146(1607), ___2114809146(1608), ___2114809146(1609), ___2114809146(1610), ___2114809146(1611), ___2114809146(1612), ___2114809146(1613)))) {
$_869744062 .= $_554090610[$_2136471060];
$_2136471060++;
}
$_1447150090 = $GLOBALS['____1606645557'][721]($_869744062);
while ($_1447150090 > min(72, 0, 24)) {
$_861189704 = 215 * 2 - 430;
$_1559798561 = $_1447150090 > $_130033841 ? $_130033841 : $_1447150090;
while ($_1559798561 > 165 * 2 - 330 && ($_554090610 = $GLOBALS['____1606645557'][722]($_1844440507, $_1559798561))) {
$_474958411 .= $_554090610;
$_861189704 += StrLen($_554090610);
$_2070943620 = $_1447150090 - $_861189704;
$_1559798561 = $_2070943620 > $_130033841 ? $_130033841 : $_2070943620;
}
$_1350648324 += $_1447150090;
$_554090610 = FGets($_1844440507, $_130033841);
$_554090610 = FGets($_1844440507, $_130033841);
$_554090610 = StrToLower($_554090610);
$_869744062 = ___2114809146(1614);
$_2136471060 = 154 * 2 - 308;
while ($_2136471060 < StrLen($_554090610) && $GLOBALS['____1606645557'][723]($_554090610[$_2136471060], array(___2114809146(1615), ___2114809146(1616), ___2114809146(1617), ___2114809146(1618), ___2114809146(1619), ___2114809146(1620), ___2114809146(1621), ___2114809146(1622), ___2114809146(1623), ___2114809146(1624), ___2114809146(1625), ___2114809146(1626), ___2114809146(1627), ___2114809146(1628), ___2114809146(1629), ___2114809146(1630)))) {
$_869744062 .= $_554090610[$_2136471060];
$_2136471060++;
}
$_1447150090 = $GLOBALS['____1606645557'][724]($_869744062);
}
} else {
while ($_554090610 = $GLOBALS['____1606645557'][725]($_1844440507, round(0 + 819.2 + 819.2 + 819.2 + 819.2 + 819.2))) {
$_474958411 .= $_554090610;
}
}
$GLOBALS['____1606645557'][726]($_1844440507);
} else {
$_474958411 = ___2114809146(1631);
if ($GLOBALS['____1606645557'][727](___2114809146(1632)) && $GLOBALS['____1606645557'][728](___2114809146(1633), ___2114809146(1634))) {
$_319975293 = CUtil::ConvertToLangCharset($_319975293);
}
$_840291859 .= GetMessage(___2114809146(1635)) . ___2114809146(1636) . $_255605321 . ___2114809146(1637) . $_319975293 . ___2114809146(1638);
if (IntVal($_255605321) <= 988 - 2 * 494) {
$_840291859 .= GetMessage(___2114809146(1639)) . ___2114809146(1640);
}
CUpdateClient::AddMessage2Log(___2114809146(1641) . $_1246261113 . ___2114809146(1642) . $_255605321 . ___2114809146(1643) . $_319975293 . ___2114809146(1644), ___2114809146(1645));
}
return $_474958411;
}
示例3: UpdateCounters
function UpdateCounters($member_id, $task_id = false)
{
global $DB, $APPLICATION;
$member_id = intval($member_id);
$arMember = CControllerMember::GetMember($member_id);
if (!$arMember) {
$e = new CApplicationException("Member #" . $member_id . " is not found.");
$APPLICATION->ThrowException($e);
return false;
}
$dbr_group = CControllerGroup::GetByID($arMember["CONTROLLER_GROUP_ID"]);
if (!($ar_group = $dbr_group->Fetch())) {
$e = new CApplicationException("Group #" . $arMember["CONTROLLER_GROUP_ID"] . " is not found.");
$APPLICATION->ThrowException($e);
return false;
}
$strCommand = '$arResult = array("DATE_FORMAT" => CSite::GetDateFormat());';
if ($ar_group["CHECK_COUNTER_FREE_SPACE"] == "Y") {
$strCommand .= "\n" . '$quota = new CDiskQuota(); $disk_quota = $quota->GetDiskQuota(); if(is_bool($disk_quota))$arResult["COUNTER_FREE_SPACE"] = -1; else $arResult["COUNTER_FREE_SPACE"] = round($disk_quota/1024, 2);';
}
if ($ar_group["CHECK_COUNTER_SITES"] == "Y") {
$strCommand .= "\n" . '$dbr = CSite::GetList(($by="sort"), ($order="asc"), array("ACTIVE"=>Y)); $arResult["COUNTER_SITES"] = $dbr->SelectedRowsCount();';
}
if ($ar_group["CHECK_COUNTER_USERS"] == "Y") {
$strCommand .= "\n" . '$dbr = $GLOBALS["DB"]->Query("SELECT COUNT(1) as USER_COUNT FROM b_user U WHERE (U.EXTERNAL_AUTH_ID IS NULL OR U.EXTERNAL_AUTH_ID=\'\')"); $ar = $dbr->Fetch(); $arResult["COUNTER_USERS"] = $ar["USER_COUNT"];';
}
if ($ar_group["CHECK_COUNTER_LAST_AUTH"] == "Y") {
$strCommand .= "\n" . '$dbr = $GLOBALS["DB"]->Query("SELECT MAX(U.LAST_LOGIN) as LAST_LOGIN FROM b_user U"); $ar = $dbr->Fetch(); $arResult["COUNTER_LAST_AUTH"] = $ar["LAST_LOGIN"];';
}
$rsCounters = CControllerCounter::GetMemberCounters($member_id);
while ($arCounter = $rsCounters->Fetch()) {
$strCommand .= "\n" . '$arResult[' . $arCounter['ID'] . '] = eval("' . EscapePHPString($arCounter["COMMAND"]) . '");';
}
$strCommand .= "\n" . 'foreach($arResult as $k=>$v) echo urlencode($k),"=",urlencode($v),"&";';
foreach (GetModuleEvents("controller", "OnBeforeUpdateCounters", true) as $arEvent) {
ExecuteModuleEventEx($arEvent, array($arMember, $ar_group, &$strCommand));
}
$command_result = CControllerMember::RunCommand($member_id, $strCommand, array(), $task_id, 'run_immediate');
if ($command_result === false) {
$e = $APPLICATION->GetException();
if (!is_object($e)) {
$e = new CApplicationException("Command execution error.");
$APPLICATION->ThrowException($e);
}
return false;
}
$ar_command_result = array();
parse_str($command_result, $ar_command_result);
//Try to guess encoding and convert to controller site charset
foreach ($ar_command_result as $k => $v) {
$ar_command_result[$k] = CUtil::ConvertToLangCharset($v);
}
$arFields = array("TIMESTAMP" => $arMember["TIMESTAMP_X"], "~COUNTERS_UPDATED" => $DB->CurrentTimeFunction());
if (array_key_exists('COUNTER_FREE_SPACE', $ar_command_result)) {
$arFields['COUNTER_FREE_SPACE'] = intval($ar_command_result['COUNTER_FREE_SPACE']);
}
if (array_key_exists('COUNTER_SITES', $ar_command_result)) {
$arFields['COUNTER_SITES'] = intval($ar_command_result['COUNTER_SITES']);
}
if (array_key_exists('COUNTER_USERS', $ar_command_result)) {
$arFields['COUNTER_USERS'] = intval($ar_command_result['COUNTER_USERS']);
}
if (array_key_exists('COUNTER_LAST_AUTH', $ar_command_result)) {
$arFields['COUNTER_LAST_AUTH'] = $DB->FormatDate($ar_command_result['COUNTER_LAST_AUTH'], 'YYYY-MM-DD HH:MI:SS', CSite::GetDateFormat());
}
if (!CControllerMember::Update($member_id, $arFields)) {
$e = $APPLICATION->GetException();
$e = new CApplicationException(GetMessage("CTRLR_MEM_COUNTERS_ERR1") . $e->GetString());
$APPLICATION->ThrowException($e);
return false;
}
CControllerCounter::UpdateMemberValues($member_id, $ar_command_result);
return $arFields;
}
示例4: GetCurrentPath
function GetCurrentPath($page)
{
$page = str_replace("//", "/", "/" . $this->_udecode($page));
$res = CUtil::ConvertToLangCharset(substr($page, strlen($this->base_url)));
return $res;
}
示例5: is_object
$bDesignMode = $GLOBALS['APPLICATION']->GetShowIncludeAreas() && is_object($GLOBALS['USER']) && $GLOBALS['USER']->IsAdmin();
if ($bDesignMode) {
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && is_dir($_SERVER['DOCUMENT_ROOT'] . $arParams['SEF_FOLDER'])) {
ShowError(GetMessage('WIKI_SEF_FOLDER_INCORRECT'));
return;
}
}
} else {
$arComponentVariables[] = $arParams['VARIABLE_ALIASES']['wiki_name'];
$arVariables = array();
$arVariableAliases = CComponentEngine::MakeComponentVariableAliases($arDefaultVariableAliases, $arParams['VARIABLE_ALIASES']);
CComponentEngine::InitComponentVariables(false, $arComponentVariables, $arVariableAliases, $arVariables);
if (!$arVariables['wiki_name']) {
//http://jabber.bx/view.php?id=28100 http://jabber.bx/view.php?id=28099
$arVariables['wiki_name'] = $arVariables['title'];
}
$arVariables['wiki_name'] = CUtil::ConvertToLangCharset($arVariables['wiki_name']);
//http://jabber.bx/view.php?id=14756
$componentPage = $arVariables['oper'];
if ($componentPage == 'add' || $componentPage == 'edit' || $componentPage == 'rename' || $componentPage == 'rename_it' || $componentPage == 'delete' || $componentPage == 'access') {
$componentPage = 'post_edit';
}
if ($componentPage == 'comment') {
$componentPage = 'post';
}
if (empty($componentPage) || !array_key_exists($componentPage, $arDefaultUrlTemplates404)) {
$componentPage = 'index';
}
}
$arResult = array_merge(array('IBLOCK_TYPE' => $arParams['IBLOCK_TYPE'], 'IBLOCK_ID' => $arParams['IBLOCK_ID'], 'SEF_MODE' => $arParams['SEF_MODE'], 'SEF_FOLDER' => $arParams['SEF_FOLDER'], 'USE_REVIEW' => $arParams['USE_REVIEW'], 'VARIABLES' => $arVariables, 'ALIASES' => $arParams['SEF_MODE'] == 'Y' ? array() : $arVariableAliases, 'SHOW_RATING' => $arParams['SHOW_RATING'], 'RATING_TYPE' => $arParams['RATING_TYPE'], 'SET_TITLE' => $arParams['SET_TITLE'], 'CACHE_TYPE' => $arParams['CACHE_TYPE'], 'CACHE_TIME' => $arParams['CACHE_TIME'], 'CACHE_TIME_LONG' => $arParams['CACHE_TIME_LONG'], 'SET_NAV_CHAIN' => $arParams['SET_NAV_CHAIN'], 'INCLUDE_IBLOCK_INTO_CHAIN' => $arParams['INCLUDE_IBLOCK_INTO_CHAIN'], 'ADD_SECTIONS_CHAIN' => $arParams['ADD_SECTIONS_CHAIN'], 'MESSAGES_PER_PAGE' => $arParams['MESSAGES_PER_PAGE'], 'USE_CAPTCHA' => $arParams['USE_CAPTCHA'], 'FORUM_ID' => $arParams['FORUM_ID'], 'PATH_TO_USER' => $arParams['PATH_TO_USER'], 'PATH_TO_SMILE' => $arParams['PATH_TO_SMILE'], 'URL_TEMPLATES_READ' => $arParams['URL_TEMPLATES_READ'], 'SHOW_LINK_TO_FORUM' => $arParams['SHOW_LINK_TO_FORUM'], 'POST_FIRST_MESSAGE' => $arParams['POST_FIRST_MESSAGE'], 'NAME_TEMPLATE' => $arParams["NAME_TEMPLATE"]), $arResult);
$this->IncludeComponentTemplate($componentPage);
示例6: GetHTTPPage
//.........这里部分代码省略.........
$_623347571 = $_1995873062;
$_681903597 = $_1369122565;
} else {
$_623347571 = $_1242762492;
$_681903597 = $_2058012254;
}
$_1126662475 = $GLOBALS['____467353288'][708]($_623347571, $_681903597, $_899437029, $_1470493021, round(0 + 40 + 40 + 40));
if ($_1126662475) {
$_98669508 = ___1498308727(1563);
if ($_68699979) {
$_98669508 .= ___1498308727(1564) . $_1242762492 . ___1498308727(1565) . $_257042062 . ___1498308727(1566);
if ($GLOBALS['____467353288'][709]($_957289202) > 242 * 2 - 484) {
$_98669508 .= ___1498308727(1567) . $GLOBALS['____467353288'][710]($_957289202 . ___1498308727(1568) . $_1861132694) . ___1498308727(1569);
}
} else {
$_98669508 .= ___1498308727(1570) . $_257042062 . ___1498308727(1571);
}
$_833462016 = self::GetOption(US_BASE_MODULE, ___1498308727(1572), ___1498308727(1573));
$_86746754 .= ___1498308727(1574) . $GLOBALS['____467353288'][711]($_833462016);
if ($GLOBALS['____467353288'][712](___1498308727(1575))) {
$_86746754 .= ___1498308727(1576) . $GLOBALS['____467353288'][713](___1498308727(1577));
} else {
$_86746754 .= ___1498308727(1578) . $GLOBALS['____467353288'][714](___1498308727(1579));
}
$_933200987 = $DB->GetVersion();
$_86746754 .= ___1498308727(1580) . $GLOBALS['____467353288'][715]($_933200987 != false ? $_933200987 : ___1498308727(1581));
$_86746754 .= ___1498308727(1582) . COption::$GLOBALS['_____1306963051'][41](___1498308727(1583), ___1498308727(1584), ___1498308727(1585));
$_98669508 .= ___1498308727(1586);
$_98669508 .= ___1498308727(1587);
$_98669508 .= ___1498308727(1588) . $_1242762492 . ___1498308727(1589);
$_98669508 .= ___1498308727(1590);
$_98669508 .= ___1498308727(1591);
$_98669508 .= ___1498308727(1592) . $GLOBALS['____467353288'][716]($_86746754) . ___1498308727(1593);
$_98669508 .= "{$_86746754}";
$_98669508 .= ___1498308727(1594);
$GLOBALS['____467353288'][717]($_1126662475, $_98669508);
$_724601202 = False;
while (!$GLOBALS['____467353288'][718]($_1126662475)) {
$_1758870021 = $GLOBALS['____467353288'][719]($_1126662475, round(0 + 2048 + 2048));
if ($_1758870021 != ___1498308727(1595)) {
if ($GLOBALS['____467353288'][720](___1498308727(1596), $_1758870021)) {
$_724601202 = True;
}
} else {
break;
}
}
$_1501652390 = ___1498308727(1597);
if ($_724601202) {
$_230052354 = round(0 + 1024 + 1024 + 1024 + 1024);
$_968809950 = 1248 / 2 - 624;
$_1758870021 = FGets($_1126662475, $_230052354);
$_1758870021 = StrToLower($_1758870021);
$_1856884664 = ___1498308727(1598);
$_774284784 = 882 - 2 * 441;
while ($_774284784 < StrLen($_1758870021) && $GLOBALS['____467353288'][721]($_1758870021[$_774284784], array(___1498308727(1599), ___1498308727(1600), ___1498308727(1601), ___1498308727(1602), ___1498308727(1603), ___1498308727(1604), ___1498308727(1605), ___1498308727(1606), ___1498308727(1607), ___1498308727(1608), ___1498308727(1609), ___1498308727(1610), ___1498308727(1611), ___1498308727(1612), ___1498308727(1613), ___1498308727(1614)))) {
$_1856884664 .= $_1758870021[$_774284784];
$_774284784++;
}
$_1345014641 = $GLOBALS['____467353288'][722]($_1856884664);
while ($_1345014641 > 1264 / 2 - 632) {
$_1593790400 = 1316 / 2 - 658;
$_1371628598 = $_1345014641 > $_230052354 ? $_230052354 : $_1345014641;
while ($_1371628598 > 952 - 2 * 476 && ($_1758870021 = $GLOBALS['____467353288'][723]($_1126662475, $_1371628598))) {
$_1501652390 .= $_1758870021;
$_1593790400 += StrLen($_1758870021);
$_2114357872 = $_1345014641 - $_1593790400;
$_1371628598 = $_2114357872 > $_230052354 ? $_230052354 : $_2114357872;
}
$_968809950 += $_1345014641;
$_1758870021 = FGets($_1126662475, $_230052354);
$_1758870021 = FGets($_1126662475, $_230052354);
$_1758870021 = StrToLower($_1758870021);
$_1856884664 = ___1498308727(1615);
$_774284784 = 964 - 2 * 482;
while ($_774284784 < StrLen($_1758870021) && $GLOBALS['____467353288'][724]($_1758870021[$_774284784], array(___1498308727(1616), ___1498308727(1617), ___1498308727(1618), ___1498308727(1619), ___1498308727(1620), ___1498308727(1621), ___1498308727(1622), ___1498308727(1623), ___1498308727(1624), ___1498308727(1625), ___1498308727(1626), ___1498308727(1627), ___1498308727(1628), ___1498308727(1629), ___1498308727(1630), ___1498308727(1631)))) {
$_1856884664 .= $_1758870021[$_774284784];
$_774284784++;
}
$_1345014641 = $GLOBALS['____467353288'][725]($_1856884664);
}
} else {
while ($_1758870021 = $GLOBALS['____467353288'][726]($_1126662475, round(0 + 819.2 + 819.2 + 819.2 + 819.2 + 819.2))) {
$_1501652390 .= $_1758870021;
}
}
$GLOBALS['____467353288'][727]($_1126662475);
} else {
$_1501652390 = ___1498308727(1632);
if ($GLOBALS['____467353288'][728](___1498308727(1633)) && $GLOBALS['____467353288'][729](___1498308727(1634), ___1498308727(1635))) {
$_1470493021 = CUtil::ConvertToLangCharset($_1470493021);
}
$_2132833962 .= GetMessage(___1498308727(1636)) . ___1498308727(1637) . $_899437029 . ___1498308727(1638) . $_1470493021 . ___1498308727(1639);
if (IntVal($_899437029) <= 1100 / 2 - 550) {
$_2132833962 .= GetMessage(___1498308727(1640)) . ___1498308727(1641);
}
CUpdateClient::AddMessage2Log(___1498308727(1642) . $_1242762492 . ___1498308727(1643) . $_899437029 . ___1498308727(1644) . $_1470493021 . ___1498308727(1645), ___1498308727(1646));
}
return $_1501652390;
}
示例7: foreach
$arResult["AUTH_URL"] = $APPLICATION->GetCurPageParam("change_password=yes", $arParamsToDelete);
}
$arResult["BACKURL"] = $APPLICATION->GetCurPageParam("", $arParamsToDelete);
$arResult["AUTH_AUTH_URL"] = $APPLICATION->GetCurPageParam("login=yes", $arParamsToDelete);
foreach ($arResult as $key => $value) {
if (!is_array($value)) {
$arResult[$key] = htmlspecialcharsbx($value);
}
}
$arRequestParams = array("USER_CHECKWORD", "USER_PASSWORD", "USER_CONFIRM_PASSWORD");
foreach ($arRequestParams as $param) {
$arResult[$param] = strlen($_REQUEST[$param]) > 0 ? $_REQUEST[$param] : "";
$arResult[$param] = htmlspecialcharsbx($arResult[$param]);
}
if (isset($_GET["USER_LOGIN"])) {
$arResult["~LAST_LOGIN"] = CUtil::ConvertToLangCharset($_GET["USER_LOGIN"]);
} elseif (isset($_POST["USER_LOGIN"])) {
$arResult["~LAST_LOGIN"] = $_POST["USER_LOGIN"];
} else {
$arResult["~LAST_LOGIN"] = $_COOKIE[COption::GetOptionString("main", "cookie_name", "BITRIX_SM") . "_LOGIN"];
}
$arResult["LAST_LOGIN"] = htmlspecialcharsbx($arResult["~LAST_LOGIN"]);
$userId = 0;
if ($arResult["~LAST_LOGIN"] != '') {
$res = CUser::GetByLogin($arResult["~LAST_LOGIN"]);
if ($profile = $res->Fetch()) {
$userId = $profile["ID"];
}
}
$arResult["GROUP_POLICY"] = CUser::GetGroupPolicy($userId);
$arResult["SECURE_AUTH"] = false;
示例8: GetHTTPPage
//.........这里部分代码省略.........
$_1296714988 = $_1251421014;
$_2095966280 = $_98861944;
} else {
$_1296714988 = $_301331508;
$_2095966280 = $_547760529;
}
$_1525888501 = $GLOBALS['____716757992'][686]($_1296714988, $_2095966280, $_1199707477, $_491631699, round(0 + 60 + 60));
if ($_1525888501) {
$_425082438 = ___781194072(1528);
if ($_1092995918) {
$_425082438 .= ___781194072(1529) . $_301331508 . ___781194072(1530) . $_172058674 . ___781194072(1531);
if ($GLOBALS['____716757992'][687]($_1060823904) > 223 * 2 - 446) {
$_425082438 .= ___781194072(1532) . $GLOBALS['____716757992'][688]($_1060823904 . ___781194072(1533) . $_2119472090) . ___781194072(1534);
}
} else {
$_425082438 .= ___781194072(1535) . $_172058674 . ___781194072(1536);
}
$_1563578126 = self::GetOption(US_BASE_MODULE, ___781194072(1537), ___781194072(1538));
$_1602244625 .= ___781194072(1539) . $GLOBALS['____716757992'][689]($_1563578126);
if ($GLOBALS['____716757992'][690](___781194072(1540))) {
$_1602244625 .= ___781194072(1541) . $GLOBALS['____716757992'][691](___781194072(1542));
} else {
$_1602244625 .= ___781194072(1543) . $GLOBALS['____716757992'][692](___781194072(1544));
}
$_547230763 = $DB->GetVersion();
$_1602244625 .= ___781194072(1545) . $GLOBALS['____716757992'][693]($_547230763 != false ? $_547230763 : ___781194072(1546));
$_1602244625 .= ___781194072(1547) . COption::$GLOBALS['_____2072298327'][40](___781194072(1548), ___781194072(1549), ___781194072(1550));
$_425082438 .= ___781194072(1551);
$_425082438 .= ___781194072(1552);
$_425082438 .= ___781194072(1553) . $_301331508 . ___781194072(1554);
$_425082438 .= ___781194072(1555);
$_425082438 .= ___781194072(1556);
$_425082438 .= ___781194072(1557) . $GLOBALS['____716757992'][694]($_1602244625) . ___781194072(1558);
$_425082438 .= "{$_1602244625}";
$_425082438 .= ___781194072(1559);
$GLOBALS['____716757992'][695]($_1525888501, $_425082438);
$_1017852857 = False;
while (!$GLOBALS['____716757992'][696]($_1525888501)) {
$_36188316 = $GLOBALS['____716757992'][697]($_1525888501, round(0 + 1365.3333333333 + 1365.3333333333 + 1365.3333333333));
if ($_36188316 != ___781194072(1560)) {
if ($GLOBALS['____716757992'][698](___781194072(1561), $_36188316)) {
$_1017852857 = True;
}
} else {
break;
}
}
$_34411446 = ___781194072(1562);
if ($_1017852857) {
$_1362159841 = round(0 + 1365.3333333333 + 1365.3333333333 + 1365.3333333333);
$_437069513 = min(82, 0, 27.333333333333);
$_36188316 = FGets($_1525888501, $_1362159841);
$_36188316 = StrToLower($_36188316);
$_1734555254 = ___781194072(1563);
$_1482678600 = min(92, 0, 30.666666666667);
while ($_1482678600 < StrLen($_36188316) && $GLOBALS['____716757992'][699]($_36188316[$_1482678600], array(___781194072(1564), ___781194072(1565), ___781194072(1566), ___781194072(1567), ___781194072(1568), ___781194072(1569), ___781194072(1570), ___781194072(1571), ___781194072(1572), ___781194072(1573), ___781194072(1574), ___781194072(1575), ___781194072(1576), ___781194072(1577), ___781194072(1578), ___781194072(1579)))) {
$_1734555254 .= $_36188316[$_1482678600];
$_1482678600++;
}
$_912779229 = $GLOBALS['____716757992'][700]($_1734555254);
while ($_912779229 > 240 * 2 - 480) {
$_1993645399 = 908 - 2 * 454;
$_2129667001 = $_912779229 > $_1362159841 ? $_1362159841 : $_912779229;
while ($_2129667001 > 1436 / 2 - 718 && ($_36188316 = $GLOBALS['____716757992'][701]($_1525888501, $_2129667001))) {
$_34411446 .= $_36188316;
$_1993645399 += StrLen($_36188316);
$_1574483526 = $_912779229 - $_1993645399;
$_2129667001 = $_1574483526 > $_1362159841 ? $_1362159841 : $_1574483526;
}
$_437069513 += $_912779229;
$_36188316 = FGets($_1525888501, $_1362159841);
$_36188316 = FGets($_1525888501, $_1362159841);
$_36188316 = StrToLower($_36188316);
$_1734555254 = ___781194072(1580);
$_1482678600 = min(62, 0, 20.666666666667);
while ($_1482678600 < StrLen($_36188316) && $GLOBALS['____716757992'][702]($_36188316[$_1482678600], array(___781194072(1581), ___781194072(1582), ___781194072(1583), ___781194072(1584), ___781194072(1585), ___781194072(1586), ___781194072(1587), ___781194072(1588), ___781194072(1589), ___781194072(1590), ___781194072(1591), ___781194072(1592), ___781194072(1593), ___781194072(1594), ___781194072(1595), ___781194072(1596)))) {
$_1734555254 .= $_36188316[$_1482678600];
$_1482678600++;
}
$_912779229 = $GLOBALS['____716757992'][703]($_1734555254);
}
} else {
while ($_36188316 = $GLOBALS['____716757992'][704]($_1525888501, round(0 + 819.2 + 819.2 + 819.2 + 819.2 + 819.2))) {
$_34411446 .= $_36188316;
}
}
$GLOBALS['____716757992'][705]($_1525888501);
} else {
$_34411446 = ___781194072(1597);
if ($GLOBALS['____716757992'][706](___781194072(1598)) && $GLOBALS['____716757992'][707](___781194072(1599), ___781194072(1600))) {
$_491631699 = CUtil::ConvertToLangCharset($_491631699);
}
$_307386831 .= GetMessage(___781194072(1601)) . ___781194072(1602) . $_1199707477 . ___781194072(1603) . $_491631699 . ___781194072(1604);
if (IntVal($_1199707477) <= 856 - 2 * 428) {
$_307386831 .= GetMessage(___781194072(1605)) . ___781194072(1606);
}
CUpdateClient::AddMessage2Log(___781194072(1607) . $_301331508 . ___781194072(1608) . $_1199707477 . ___781194072(1609) . $_491631699 . ___781194072(1610), ___781194072(1611));
}
return $_34411446;
}
示例9: trim
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
$GLOBALS['APPLICATION']->RestartBuffer();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$file = trim(preg_replace("'[\\\\/]+'", "/", dirname(__FILE__) . "/lang/" . LANGUAGE_ID . "/template.php"));
__IncludeLang($file);
if (isset($_REQUEST['CHECK_NAME'])) {
$fileName = CUtil::ConvertToLangCharset(urldecode($_REQUEST['CHECK_NAME']));
$ob = $arParams['OBJECT'];
$fileName = $ob->CorrectName($fileName);
$result = array();
$result['name'] = $fileName;
$result['section'] = $arParams['SECTION_ID'];
if (!check_bitrix_sessid()) {
$result['permission'] = false;
$result['errormsg'] = GetMessage("WD_ERROR_BAD_SESSID");
} elseif (!$ob->CheckWebRights("PUT", array('arElement' => $fileName))) {
$result['permission'] = false;
$oError = $GLOBALS["APPLICATION"]->GetException();
$result['errormsg'] = $oError ? $oError->GetString() : GetMessage("WD_ERROR_UPLOAD_BAD_FILE");
} elseif (COption::GetOptionString('webdav', 'hide_system_files', 'Y') == 'Y' && substr($fileName, 0, 1) == '.') {
$result['permission'] = true;
$result['okmsg'] = GetMessage("WD_WARNING_FIRST_DOT");
} elseif (is_numeric($arParams['ELEMENT_ID']) && $arParams['ELEMENT_ID'] == 0 && !$ob->CheckUniqueName($fileName, $arParams["SECTION_ID"], $res)) {
if ($ob->Type == "folder") {
$result['permission'] = false;
$result['errormsg'] = GetMessage("WD_ERROR_SAME_NAME");
} else {
示例10: GetHTTPPage
//.........这里部分代码省略.........
$_831445460 = $_1152325026;
$_1303775343 = $_734270646;
} else {
$_831445460 = $_291018384;
$_1303775343 = $_228299070;
}
$_442747150 = $GLOBALS['____780604396'][708]($_831445460, $_1303775343, $_223905108, $_1419966295, round(0 + 60 + 60));
if ($_442747150) {
$_1390121373 = ___1088551736(1563);
if ($_1735389569) {
$_1390121373 .= ___1088551736(1564) . $_291018384 . ___1088551736(1565) . $_1681570218 . ___1088551736(1566);
if ($GLOBALS['____780604396'][709]($_796343461) > 1024 / 2 - 512) {
$_1390121373 .= ___1088551736(1567) . $GLOBALS['____780604396'][710]($_796343461 . ___1088551736(1568) . $_597711510) . ___1088551736(1569);
}
} else {
$_1390121373 .= ___1088551736(1570) . $_1681570218 . ___1088551736(1571);
}
$_2085801494 = self::GetOption(US_BASE_MODULE, ___1088551736(1572), ___1088551736(1573));
$_614209705 .= ___1088551736(1574) . $GLOBALS['____780604396'][711]($_2085801494);
if ($GLOBALS['____780604396'][712](___1088551736(1575))) {
$_614209705 .= ___1088551736(1576) . $GLOBALS['____780604396'][713](___1088551736(1577));
} else {
$_614209705 .= ___1088551736(1578) . $GLOBALS['____780604396'][714](___1088551736(1579));
}
$_188014879 = $DB->GetVersion();
$_614209705 .= ___1088551736(1580) . $GLOBALS['____780604396'][715]($_188014879 != false ? $_188014879 : ___1088551736(1581));
$_614209705 .= ___1088551736(1582) . COption::$GLOBALS['_____638705413'][41](___1088551736(1583), ___1088551736(1584), ___1088551736(1585));
$_1390121373 .= ___1088551736(1586);
$_1390121373 .= ___1088551736(1587);
$_1390121373 .= ___1088551736(1588) . $_291018384 . ___1088551736(1589);
$_1390121373 .= ___1088551736(1590);
$_1390121373 .= ___1088551736(1591);
$_1390121373 .= ___1088551736(1592) . $GLOBALS['____780604396'][716]($_614209705) . ___1088551736(1593);
$_1390121373 .= "{$_614209705}";
$_1390121373 .= ___1088551736(1594);
$GLOBALS['____780604396'][717]($_442747150, $_1390121373);
$_294758242 = False;
while (!$GLOBALS['____780604396'][718]($_442747150)) {
$_1321491213 = $GLOBALS['____780604396'][719]($_442747150, round(0 + 1024 + 1024 + 1024 + 1024));
if ($_1321491213 != ___1088551736(1595)) {
if ($GLOBALS['____780604396'][720](___1088551736(1596), $_1321491213)) {
$_294758242 = True;
}
} else {
break;
}
}
$_1140124471 = ___1088551736(1597);
if ($_294758242) {
$_23870045 = round(0 + 1024 + 1024 + 1024 + 1024);
$_449281889 = 176 * 2 - 352;
$_1321491213 = FGets($_442747150, $_23870045);
$_1321491213 = StrToLower($_1321491213);
$_1529926007 = ___1088551736(1598);
$_358260928 = 884 - 2 * 442;
while ($_358260928 < StrLen($_1321491213) && $GLOBALS['____780604396'][721]($_1321491213[$_358260928], array(___1088551736(1599), ___1088551736(1600), ___1088551736(1601), ___1088551736(1602), ___1088551736(1603), ___1088551736(1604), ___1088551736(1605), ___1088551736(1606), ___1088551736(1607), ___1088551736(1608), ___1088551736(1609), ___1088551736(1610), ___1088551736(1611), ___1088551736(1612), ___1088551736(1613), ___1088551736(1614)))) {
$_1529926007 .= $_1321491213[$_358260928];
$_358260928++;
}
$_338575122 = $GLOBALS['____780604396'][722]($_1529926007);
while ($_338575122 > 136 * 2 - 272) {
$_1914235002 = 172 * 2 - 344;
$_1624386239 = $_338575122 > $_23870045 ? $_23870045 : $_338575122;
while ($_1624386239 > 832 - 2 * 416 && ($_1321491213 = $GLOBALS['____780604396'][723]($_442747150, $_1624386239))) {
$_1140124471 .= $_1321491213;
$_1914235002 += StrLen($_1321491213);
$_1921764753 = $_338575122 - $_1914235002;
$_1624386239 = $_1921764753 > $_23870045 ? $_23870045 : $_1921764753;
}
$_449281889 += $_338575122;
$_1321491213 = FGets($_442747150, $_23870045);
$_1321491213 = FGets($_442747150, $_23870045);
$_1321491213 = StrToLower($_1321491213);
$_1529926007 = ___1088551736(1615);
$_358260928 = min(156, 0, 52);
while ($_358260928 < StrLen($_1321491213) && $GLOBALS['____780604396'][724]($_1321491213[$_358260928], array(___1088551736(1616), ___1088551736(1617), ___1088551736(1618), ___1088551736(1619), ___1088551736(1620), ___1088551736(1621), ___1088551736(1622), ___1088551736(1623), ___1088551736(1624), ___1088551736(1625), ___1088551736(1626), ___1088551736(1627), ___1088551736(1628), ___1088551736(1629), ___1088551736(1630), ___1088551736(1631)))) {
$_1529926007 .= $_1321491213[$_358260928];
$_358260928++;
}
$_338575122 = $GLOBALS['____780604396'][725]($_1529926007);
}
} else {
while ($_1321491213 = $GLOBALS['____780604396'][726]($_442747150, round(0 + 1365.3333333333 + 1365.3333333333 + 1365.3333333333))) {
$_1140124471 .= $_1321491213;
}
}
$GLOBALS['____780604396'][727]($_442747150);
} else {
$_1140124471 = ___1088551736(1632);
if ($GLOBALS['____780604396'][728](___1088551736(1633)) && $GLOBALS['____780604396'][729](___1088551736(1634), ___1088551736(1635))) {
$_1419966295 = CUtil::ConvertToLangCharset($_1419966295);
}
$_1397984059 .= GetMessage(___1088551736(1636)) . ___1088551736(1637) . $_223905108 . ___1088551736(1638) . $_1419966295 . ___1088551736(1639);
if (IntVal($_223905108) <= 213 * 2 - 426) {
$_1397984059 .= GetMessage(___1088551736(1640)) . ___1088551736(1641);
}
CUpdateClient::AddMessage2Log(___1088551736(1642) . $_291018384 . ___1088551736(1643) . $_223905108 . ___1088551736(1644) . $_1419966295 . ___1088551736(1645), ___1088551736(1646));
}
return $_1140124471;
}
示例11: foreach
$arResult["AUTH_URL"] = $APPLICATION->GetCurPageParam("change_password=yes", $arParamsToDelete);
}
$arResult["BACKURL"] = $APPLICATION->GetCurPageParam("", $arParamsToDelete);
$arResult["AUTH_AUTH_URL"] = $APPLICATION->GetCurPageParam("login=yes", $arParamsToDelete);
foreach ($arResult as $key => $value) {
if (!is_array($value)) {
$arResult[$key] = htmlspecialcharsbx($value);
}
}
$arRequestParams = array("USER_CHECKWORD", "USER_PASSWORD", "USER_CONFIRM_PASSWORD");
foreach ($arRequestParams as $param) {
$arResult[$param] = strlen($_REQUEST[$param]) > 0 ? $_REQUEST[$param] : "";
$arResult[$param] = htmlspecialcharsbx($arResult[$param]);
}
if (isset($_GET["USER_LOGIN"])) {
$arResult["LAST_LOGIN"] = htmlspecialcharsbx(CUtil::ConvertToLangCharset($_GET["USER_LOGIN"]));
} elseif (isset($_POST["USER_LOGIN"])) {
$arResult["LAST_LOGIN"] = htmlspecialcharsbx($_POST["USER_LOGIN"]);
} else {
$arResult["LAST_LOGIN"] = htmlspecialcharsbx($_COOKIE[COption::GetOptionString("main", "cookie_name", "FREETRIX_SM") . "_LOGIN"]);
}
$arResult["SECURE_AUTH"] = false;
if (!CMain::IsHTTPS() && COption::GetOptionString('main', 'use_encrypted_auth', 'N') == 'Y') {
$sec = new CRsaSecurity();
if ($arKeys = $sec->LoadKeys()) {
$sec->SetKeys($arKeys);
$sec->AddToForm('bform', array('USER_PASSWORD', 'USER_CONFIRM_PASSWORD'));
$arResult["SECURE_AUTH"] = true;
}
}
$this->IncludeComponentTemplate();
示例12: GetHTTPPage
//.........这里部分代码省略.........
$_404796635 = $_576447949;
$_1769979978 = $_1135560289;
} else {
$_404796635 = $_762381630;
$_1769979978 = $_479529421;
}
$_525783696 = $GLOBALS['____686248920'][686]($_404796635, $_1769979978, $_905280298, $_1763760366, round(0 + 120));
if ($_525783696) {
$_34754371 = ___424308761(1528);
if ($_1158952025) {
$_34754371 .= ___424308761(1529) . $_762381630 . ___424308761(1530) . $_97898846 . ___424308761(1531);
if ($GLOBALS['____686248920'][687]($_386402406) > 1352 / 2 - 676) {
$_34754371 .= ___424308761(1532) . $GLOBALS['____686248920'][688]($_386402406 . ___424308761(1533) . $_224600438) . ___424308761(1534);
}
} else {
$_34754371 .= ___424308761(1535) . $_97898846 . ___424308761(1536);
}
$_799168015 = self::GetOption(US_BASE_MODULE, ___424308761(1537), ___424308761(1538));
$_356406093 .= ___424308761(1539) . $GLOBALS['____686248920'][689]($_799168015);
if ($GLOBALS['____686248920'][690](___424308761(1540))) {
$_356406093 .= ___424308761(1541) . $GLOBALS['____686248920'][691](___424308761(1542));
} else {
$_356406093 .= ___424308761(1543) . $GLOBALS['____686248920'][692](___424308761(1544));
}
$_1473065477 = $DB->GetVersion();
$_356406093 .= ___424308761(1545) . $GLOBALS['____686248920'][693]($_1473065477 != false ? $_1473065477 : ___424308761(1546));
$_356406093 .= ___424308761(1547) . COption::$GLOBALS['_____1317732215'][40](___424308761(1548), ___424308761(1549), ___424308761(1550));
$_34754371 .= ___424308761(1551);
$_34754371 .= ___424308761(1552);
$_34754371 .= ___424308761(1553) . $_762381630 . ___424308761(1554);
$_34754371 .= ___424308761(1555);
$_34754371 .= ___424308761(1556);
$_34754371 .= ___424308761(1557) . $GLOBALS['____686248920'][694]($_356406093) . ___424308761(1558);
$_34754371 .= "{$_356406093}";
$_34754371 .= ___424308761(1559);
$GLOBALS['____686248920'][695]($_525783696, $_34754371);
$_1228402622 = False;
while (!$GLOBALS['____686248920'][696]($_525783696)) {
$_1121800005 = $GLOBALS['____686248920'][697]($_525783696, round(0 + 2048 + 2048));
if ($_1121800005 != ___424308761(1560)) {
if ($GLOBALS['____686248920'][698](___424308761(1561), $_1121800005)) {
$_1228402622 = True;
}
} else {
break;
}
}
$_6407354 = ___424308761(1562);
if ($_1228402622) {
$_1836892734 = round(0 + 4096);
$_2041547893 = 198 * 2 - 396;
$_1121800005 = FGets($_525783696, $_1836892734);
$_1121800005 = StrToLower($_1121800005);
$_1128448632 = ___424308761(1563);
$_2000290825 = 138 * 2 - 276;
while ($_2000290825 < StrLen($_1121800005) && $GLOBALS['____686248920'][699]($_1121800005[$_2000290825], array(___424308761(1564), ___424308761(1565), ___424308761(1566), ___424308761(1567), ___424308761(1568), ___424308761(1569), ___424308761(1570), ___424308761(1571), ___424308761(1572), ___424308761(1573), ___424308761(1574), ___424308761(1575), ___424308761(1576), ___424308761(1577), ___424308761(1578), ___424308761(1579)))) {
$_1128448632 .= $_1121800005[$_2000290825];
$_2000290825++;
}
$_546269947 = $GLOBALS['____686248920'][700]($_1128448632);
while ($_546269947 > 197 * 2 - 394) {
$_799494336 = 790 - 2 * 395;
$_672550401 = $_546269947 > $_1836892734 ? $_1836892734 : $_546269947;
while ($_672550401 > 874 - 2 * 437 && ($_1121800005 = $GLOBALS['____686248920'][701]($_525783696, $_672550401))) {
$_6407354 .= $_1121800005;
$_799494336 += StrLen($_1121800005);
$_605706721 = $_546269947 - $_799494336;
$_672550401 = $_605706721 > $_1836892734 ? $_1836892734 : $_605706721;
}
$_2041547893 += $_546269947;
$_1121800005 = FGets($_525783696, $_1836892734);
$_1121800005 = FGets($_525783696, $_1836892734);
$_1121800005 = StrToLower($_1121800005);
$_1128448632 = ___424308761(1580);
$_2000290825 = 1272 / 2 - 636;
while ($_2000290825 < StrLen($_1121800005) && $GLOBALS['____686248920'][702]($_1121800005[$_2000290825], array(___424308761(1581), ___424308761(1582), ___424308761(1583), ___424308761(1584), ___424308761(1585), ___424308761(1586), ___424308761(1587), ___424308761(1588), ___424308761(1589), ___424308761(1590), ___424308761(1591), ___424308761(1592), ___424308761(1593), ___424308761(1594), ___424308761(1595), ___424308761(1596)))) {
$_1128448632 .= $_1121800005[$_2000290825];
$_2000290825++;
}
$_546269947 = $GLOBALS['____686248920'][703]($_1128448632);
}
} else {
while ($_1121800005 = $GLOBALS['____686248920'][704]($_525783696, round(0 + 4096))) {
$_6407354 .= $_1121800005;
}
}
$GLOBALS['____686248920'][705]($_525783696);
} else {
$_6407354 = ___424308761(1597);
if ($GLOBALS['____686248920'][706](___424308761(1598)) && $GLOBALS['____686248920'][707](___424308761(1599), ___424308761(1600))) {
$_1763760366 = CUtil::ConvertToLangCharset($_1763760366);
}
$_1420149757 .= GetMessage(___424308761(1601)) . ___424308761(1602) . $_905280298 . ___424308761(1603) . $_1763760366 . ___424308761(1604);
if (IntVal($_905280298) <= 1084 / 2 - 542) {
$_1420149757 .= GetMessage(___424308761(1605)) . ___424308761(1606);
}
CUpdateClient::AddMessage2Log(___424308761(1607) . $_762381630 . ___424308761(1608) . $_905280298 . ___424308761(1609) . $_1763760366 . ___424308761(1610), ___424308761(1611));
}
return $_6407354;
}
示例13: getFilter
protected function getFilter()
{
$arFilter = array("IBLOCK_ID" => $this->getIblockId(), 'SECTION_ID' => $this->getSectionId() > 0 ? $this->getSectionId() : 0, 'ACTIVE' => empty($_REQUEST['filter_active']) ? 'Y' : $_REQUEST['filter_active'], "WF_PARENT_ELEMENT_ID" => false, "SHOW_NEW" => "Y");
if ($arFilter['ACTIVE'] == '*') {
unset($arFilter['ACTIVE']);
}
if (!empty($_REQUEST['filter_xml_id'])) {
$arFilter['XML_ID'] = $_REQUEST['filter_xml_id'];
}
if (!empty($_REQUEST['filter_id_start'])) {
$arFilter['>=ID'] = $_REQUEST['filter_id_start'];
}
if (!empty($_REQUEST['filter_id_end'])) {
$arFilter['<=ID'] = $_REQUEST['filter_id_end'];
}
if ($arProps = $this->getProps()) {
$filtered = null;
foreach ($arProps as $arProp) {
$value = \CUtil::ConvertToLangCharset($_REQUEST['filter_el_property_' . $arProp["ID"]]);
if (array_key_exists("AddFilterFields", $arProp["PROPERTY_USER_TYPE"])) {
call_user_func_array($arProp["PROPERTY_USER_TYPE"]["AddFilterFields"], array($arProp, array("VALUE" => "filter_el_property_" . $arProp["ID"]), &$arFilter, &$filtered));
} elseif (is_array($value) || strlen($value)) {
if ($value === "NOT_REF") {
$value = false;
}
$arFilter["?PROPERTY_" . $arProp["ID"]] = $value;
}
}
}
$arSubQuery = array();
if ($arSKUProps = $this->getSkuProps()) {
$arCatalog = $this->getOffersCatalog();
$arSubQuery = array("IBLOCK_ID" => $arCatalog['IBLOCK_ID']);
$filtered = null;
for ($i = 0, $intPropCount = count($arSKUProps); $i < $intPropCount; $i++) {
if ('Y' == $arSKUProps[$i]["FILTRABLE"] && 'F' != $arSKUProps[$i]["PROPERTY_TYPE"] && $arCatalog['SKU_PROPERTY_ID'] != $arSKUProps[$i]["ID"]) {
if (array_key_exists("AddFilterFields", $arSKUProps[$i]["PROPERTY_USER_TYPE"])) {
call_user_func_array($arSKUProps[$i]["PROPERTY_USER_TYPE"]["AddFilterFields"], array($arSKUProps[$i], array("VALUE" => "filter_sub_el_property_" . $arSKUProps[$i]["ID"]), &$arSubQuery, &$filtered));
} else {
$value = \CUtil::ConvertToLangCharset($_REQUEST['filter_sub_el_property_' . $arSKUProps[$i]["ID"]]);
if (is_array($value) || strlen($value)) {
if ($value === "NOT_REF") {
$value = false;
}
$arSubQuery["?PROPERTY_" . $arSKUProps[$i]["ID"]] = $value;
}
}
}
}
}
if (!empty($_REQUEST["filter_timestamp_from"])) {
$arFilter["DATE_MODIFY_FROM"] = $_REQUEST["filter_timestamp_from"];
}
if (!empty($_REQUEST["filter_timestamp_to"])) {
$arFilter["DATE_MODIFY_TO"] = $_REQUEST["filter_timestamp_to"];
}
if (!empty($_REQUEST["filter_code"])) {
$arFilter["CODE"] = \CUtil::ConvertToLangCharset($_REQUEST["filter_code"]);
}
$arSearchedIds = $arSearchedSectionIds = null;
if (!empty($_REQUEST['QUERY'])) {
$arFilter['QUERY'] = $_REQUEST['QUERY'];
$arSearchedIds = $arSearchedSectionIds = array(0);
if (preg_match('#^[0-9\\s]+$#', $_REQUEST['QUERY'])) {
$barcode = preg_replace('#[^0-9]#', '', $_REQUEST['QUERY']);
if (strlen($barcode) > 8) {
$rsBarCode = \CCatalogStoreBarCode::getList(array(), array("BARCODE" => $barcode), false, false, array('PRODUCT_ID'));
while ($res = $rsBarCode->Fetch()) {
$res2 = \CCatalogSKU::GetProductInfo($res["PRODUCT_ID"]);
$arSearchedIds[] = $res2 ? $res2['ID'] : $res['PRODUCT_ID'];
}
}
}
if ($this->isAdvancedSearchAvailable()) {
$arFilter['PARAM2'] = $this->getIblockId();
if (!empty($arFilter['SECTION_ID'])) {
$arFilter['PARAMS'] = array('iblock_section' => $arFilter['SECTION_ID']);
}
$obSearch = new \CSearch();
$obSearch->Search($arFilter);
$cnt = 0;
$activeSectionId = $this->getSectionId();
while ($ar = $obSearch->Fetch()) {
if (strpos($ar['ITEM_ID'], 'S') === 0) {
$sectionId = preg_replace('#[^0-9]+#', '', $ar['ITEM_ID']);
if ($sectionId != $activeSectionId) {
$arSearchedSectionIds[] = $sectionId;
}
} else {
$arSearchedIds[] = $ar['ITEM_ID'];
}
if (++$cnt >= 100) {
break;
}
}
} else {
$arSearchedIds = $arSearchedSectionIds = null;
$arFilter['NAME'] = $_REQUEST['QUERY'];
}
}
//.........这里部分代码省略.........
示例14: GetHTTPPage
//.........这里部分代码省略.........
$_680397649 = $_1991021242;
$_1579679766 = $_1596170072;
} else {
$_680397649 = $_1007626795;
$_1579679766 = $_1095524362;
}
$_1488866016 = $GLOBALS['____1595852040'][708]($_680397649, $_1579679766, $_101097199, $_549175190, round(0 + 30 + 30 + 30 + 30));
if ($_1488866016) {
$_255661963 = ___1664354704(1563);
if ($_1705982342) {
$_255661963 .= ___1664354704(1564) . $_1007626795 . ___1664354704(1565) . $_644545633 . ___1664354704(1566);
if ($GLOBALS['____1595852040'][709]($_1500350925) > 1420 / 2 - 710) {
$_255661963 .= ___1664354704(1567) . $GLOBALS['____1595852040'][710]($_1500350925 . ___1664354704(1568) . $_155828184) . ___1664354704(1569);
}
} else {
$_255661963 .= ___1664354704(1570) . $_644545633 . ___1664354704(1571);
}
$_712197685 = self::GetOption(US_BASE_MODULE, ___1664354704(1572), ___1664354704(1573));
$_554433977 .= ___1664354704(1574) . $GLOBALS['____1595852040'][711]($_712197685);
if ($GLOBALS['____1595852040'][712](___1664354704(1575))) {
$_554433977 .= ___1664354704(1576) . $GLOBALS['____1595852040'][713](___1664354704(1577));
} else {
$_554433977 .= ___1664354704(1578) . $GLOBALS['____1595852040'][714](___1664354704(1579));
}
$_1977609529 = $DB->GetVersion();
$_554433977 .= ___1664354704(1580) . $GLOBALS['____1595852040'][715]($_1977609529 != false ? $_1977609529 : ___1664354704(1581));
$_554433977 .= ___1664354704(1582) . COption::$GLOBALS['_____1945125557'][41](___1664354704(1583), ___1664354704(1584), ___1664354704(1585));
$_255661963 .= ___1664354704(1586);
$_255661963 .= ___1664354704(1587);
$_255661963 .= ___1664354704(1588) . $_1007626795 . ___1664354704(1589);
$_255661963 .= ___1664354704(1590);
$_255661963 .= ___1664354704(1591);
$_255661963 .= ___1664354704(1592) . $GLOBALS['____1595852040'][716]($_554433977) . ___1664354704(1593);
$_255661963 .= "{$_554433977}";
$_255661963 .= ___1664354704(1594);
$GLOBALS['____1595852040'][717]($_1488866016, $_255661963);
$_1384830949 = False;
while (!$GLOBALS['____1595852040'][718]($_1488866016)) {
$_308213480 = $GLOBALS['____1595852040'][719]($_1488866016, round(0 + 2048 + 2048));
if ($_308213480 != ___1664354704(1595)) {
if ($GLOBALS['____1595852040'][720](___1664354704(1596), $_308213480)) {
$_1384830949 = True;
}
} else {
break;
}
}
$_1010620643 = ___1664354704(1597);
if ($_1384830949) {
$_1571585250 = round(0 + 4096);
$_1523950250 = 209 * 2 - 418;
$_308213480 = FGets($_1488866016, $_1571585250);
$_308213480 = StrToLower($_308213480);
$_646566106 = ___1664354704(1598);
$_550401562 = 231 * 2 - 462;
while ($_550401562 < StrLen($_308213480) && $GLOBALS['____1595852040'][721]($_308213480[$_550401562], array(___1664354704(1599), ___1664354704(1600), ___1664354704(1601), ___1664354704(1602), ___1664354704(1603), ___1664354704(1604), ___1664354704(1605), ___1664354704(1606), ___1664354704(1607), ___1664354704(1608), ___1664354704(1609), ___1664354704(1610), ___1664354704(1611), ___1664354704(1612), ___1664354704(1613), ___1664354704(1614)))) {
$_646566106 .= $_308213480[$_550401562];
$_550401562++;
}
$_1381663525 = $GLOBALS['____1595852040'][722]($_646566106);
while ($_1381663525 > min(94, 0, 31.333333333333)) {
$_1860011119 = min(16, 0, 5.3333333333333);
$_491675859 = $_1381663525 > $_1571585250 ? $_1571585250 : $_1381663525;
while ($_491675859 > 976 - 2 * 488 && ($_308213480 = $GLOBALS['____1595852040'][723]($_1488866016, $_491675859))) {
$_1010620643 .= $_308213480;
$_1860011119 += StrLen($_308213480);
$_704708388 = $_1381663525 - $_1860011119;
$_491675859 = $_704708388 > $_1571585250 ? $_1571585250 : $_704708388;
}
$_1523950250 += $_1381663525;
$_308213480 = FGets($_1488866016, $_1571585250);
$_308213480 = FGets($_1488866016, $_1571585250);
$_308213480 = StrToLower($_308213480);
$_646566106 = ___1664354704(1615);
$_550401562 = 856 - 2 * 428;
while ($_550401562 < StrLen($_308213480) && $GLOBALS['____1595852040'][724]($_308213480[$_550401562], array(___1664354704(1616), ___1664354704(1617), ___1664354704(1618), ___1664354704(1619), ___1664354704(1620), ___1664354704(1621), ___1664354704(1622), ___1664354704(1623), ___1664354704(1624), ___1664354704(1625), ___1664354704(1626), ___1664354704(1627), ___1664354704(1628), ___1664354704(1629), ___1664354704(1630), ___1664354704(1631)))) {
$_646566106 .= $_308213480[$_550401562];
$_550401562++;
}
$_1381663525 = $GLOBALS['____1595852040'][725]($_646566106);
}
} else {
while ($_308213480 = $GLOBALS['____1595852040'][726]($_1488866016, round(0 + 1024 + 1024 + 1024 + 1024))) {
$_1010620643 .= $_308213480;
}
}
$GLOBALS['____1595852040'][727]($_1488866016);
} else {
$_1010620643 = ___1664354704(1632);
if ($GLOBALS['____1595852040'][728](___1664354704(1633)) && $GLOBALS['____1595852040'][729](___1664354704(1634), ___1664354704(1635))) {
$_549175190 = CUtil::ConvertToLangCharset($_549175190);
}
$_2109075727 .= GetMessage(___1664354704(1636)) . ___1664354704(1637) . $_101097199 . ___1664354704(1638) . $_549175190 . ___1664354704(1639);
if (IntVal($_101097199) <= 139 * 2 - 278) {
$_2109075727 .= GetMessage(___1664354704(1640)) . ___1664354704(1641);
}
CUpdateClient::AddMessage2Log(___1664354704(1642) . $_1007626795 . ___1664354704(1643) . $_101097199 . ___1664354704(1644) . $_549175190 . ___1664354704(1645), ___1664354704(1646));
}
return $_1010620643;
}
示例15: sizeof
if (!$cid || !preg_match('/^[a-f01-9]{32}$/', $cid) || !check_bitrix_sessid())
die();
header('Content-Type: text/html; charset='.LANG_CHARSET);
if ($_POST["mfi_mode"] == "upload")
{
$count = sizeof($_FILES["mfi_files"]["name"]);
$mid = $arParams['MODULE_ID'];
$max_file_size = $arParams['MAX_FILE_SIZE'];
if (!$mid || !IsModuleInstalled($mid))
$mid = 'main';
for($i = 0; $i < $count; $i++)
{
$fileName = CUtil::ConvertToLangCharset($_FILES["mfi_files"]["name"][$i]);
$arFile = array(
"name" => $fileName,
"size" => $_FILES["mfi_files"]["size"][$i],
"tmp_name" => $_FILES["mfi_files"]["tmp_name"][$i],
"type" => $_FILES["mfi_files"]["type"][$i],
"MODULE_ID" => $mid
);
$res = '';
if ($arParams["ALLOW_UPLOAD"] == "I"):
$res = CFile::CheckImageFile($arFile, $max_file_size, 0, 0);
elseif ($arParams["ALLOW_UPLOAD"] == "F"):
$res = CFile::CheckFile($arFile, $max_file_size, false, $arParams["ALLOW_UPLOAD_EXT"]);
else: