当前位置: 首页>>代码示例>>PHP>>正文


PHP bitrix_sessid函数代码示例

本文整理汇总了PHP中bitrix_sessid函数的典型用法代码示例。如果您正苦于以下问题:PHP bitrix_sessid函数的具体用法?PHP bitrix_sessid怎么用?PHP bitrix_sessid使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bitrix_sessid函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: initSession

 protected function initSession($CID, $controlId)
 {
     $ts = time();
     if (!isset($_SESSION[self::SESSION_LIST][$controlId])) {
         $_SESSION[self::SESSION_LIST][$controlId] = array();
     } else {
         foreach ($_SESSION[self::SESSION_LIST][$controlId] as $key => $arSession) {
             if ($arSession["SESSID"] != bitrix_sessid() || $ts - $arSession["TS"] > self::SESSION_TTL) {
                 $c = $_SESSION[self::SESSION_LIST][$controlId][$key]["CID"];
                 unset($_SESSION[self::SESSION_LIST][$controlId][$key]);
                 unset($_SESSION[self::SESSION_VAR_PREFIX . $c]);
             }
         }
     }
     $_SESSION[self::SESSION_LIST][$controlId][] = array("CID" => $CID, "TS" => $ts, "SESSID" => bitrix_sessid());
     $_SESSION[self::SESSION_VAR_PREFIX . $CID] = array();
 }
开发者ID:spas-viktor,项目名称:books,代码行数:17,代码来源:fileinpututility.php

示例2: GetDirectoryName

 public static function GetDirectoryName($hours_to_keep_files = 0, $subdir = "")
 {
     if ($hours_to_keep_files <= 0) {
         return self::GetFileName('');
     }
     if ($subdir === "") {
         $dir_name = self::GetAbsoluteRoot() . '/BXTEMP-' . date('Y-m-d/H/', time() + 3600 * $hours_to_keep_files);
         $i = 0;
         while (true) {
             $i++;
             $dir_add = md5(mt_rand());
             $temp_path = $dir_name . $dir_add . "/";
             if (!file_exists($temp_path)) {
                 break;
             }
         }
     } else {
         $subdir = implode("/", is_array($subdir) ? $subdir : array($subdir, bitrix_sessid())) . "/";
         while (strpos($subdir, "//") !== false) {
             $subdir = str_replace("//", "/", $subdir);
         }
         $bFound = false;
         for ($i = $hours_to_keep_files - 1; $i > 0; $i--) {
             $dir_name = self::GetAbsoluteRoot() . '/BXTEMP-' . date('Y-m-d/H/', time() + 3600 * $i);
             $temp_path = $dir_name . $subdir;
             if (file_exists($temp_path) && is_dir($temp_path)) {
                 $bFound = true;
                 break;
             }
         }
         if (!$bFound) {
             $dir_name = self::GetAbsoluteRoot() . '/BXTEMP-' . date('Y-m-d/H/', time() + 3600 * $hours_to_keep_files);
             $temp_path = $dir_name . $subdir;
         }
     }
     //Delayed unlink
     if (empty(self::$arFiles)) {
         register_shutdown_function(array('CTempFile', 'Cleanup'));
     }
     //Function ends only here
     return $temp_path;
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:42,代码来源:file_temp.php

示例3: checkAccessPermissions

 protected static function checkAccessPermissions($parameters = array())
 {
     if (!is_array($parameters)) {
         $parameters = array();
     }
     $errors = array();
     if ($GLOBALS['APPLICATION']->GetGroupRight("sale") < "W") {
         $errors[] = Loc::getMessage("SALE_SLI_SALE_MODULE_WRITE_ACCESS_DENIED");
     }
     if (!LocationHelper::checkLocationEnabled()) {
         $errors[] = 'Locations were disabled or data has not been converted';
     }
     if ($parameters['CHECK_CSRF']) {
         $post = \Bitrix\Main\Context::getCurrent()->getRequest()->getPostList();
         if (!strlen($post['csrf']) || bitrix_sessid() != $post['csrf']) {
             $errors[] = 'CSRF token is not valid';
         }
     }
     return $errors;
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:20,代码来源:class.php

示例4: checkAccessPermissions

 protected static function checkAccessPermissions($parameters = array())
 {
     if (!is_array($parameters)) {
         $parameters = array();
     }
     $errors = array();
     $CCrmPerms = new CCrmPerms($GLOBALS['USER']->GetID());
     if ($CCrmPerms->HavePerm('CONFIG', BX_CRM_PERM_NONE, 'WRITE')) {
         $errors[] = Loc::getMessage("SALE_CCLI2_CRM_MODULE_WRITE_ACCESS_DENIED");
     }
     if (!LocationHelper::checkLocationEnabled()) {
         $errors[] = 'Locations were disabled or data has not been converted';
     }
     if ($parameters['CHECK_CSRF']) {
         $post = \Bitrix\Main\Context::getCurrent()->getRequest()->getPostList();
         if (!strlen($post['csrf']) || bitrix_sessid() != $post['csrf']) {
             $errors[] = 'CSRF token is not valid';
         }
     }
     return $errors;
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:21,代码来源:class.php

示例5: executeAction

 /**
  * @param string $name
  */
 public function executeAction($name, $params = array())
 {
     global $USER;
     $actionDesc = $this->getAction($name);
     if ($actionDesc) {
         $isSessidValid = true;
         if ($actionDesc["needBitrixSessid"] == true || array_key_exists("sessid", $_REQUEST) && strlen($_REQUEST["sessid"]) > 0) {
             $isSessidValid = check_bitrix_sessid();
         }
         if (!isset($actionDesc["fireInitMobileEvent"]) || $actionDesc["fireInitMobileEvent"] != true) {
             if (!defined("MOBILE_INIT_EVENT_SKIP")) {
                 define("MOBILE_INIT_EVENT_SKIP", true);
             }
         }
         if ($actionDesc["no_check_auth"] !== true && (!$USER->IsAuthorized() || !$isSessidValid)) {
             header("HTTP/1.0 401 Not Authorized");
             header("Content-Type: application/x-javascript");
             header("BX-Authorize: " . bitrix_sessid());
             echo json_encode(array("status" => "failed", "bitrix_sessid" => bitrix_sessid()));
         } elseif ($actionDesc["file"]) {
             if ($actionDesc["json"] === true) {
                 header("Content-Type: application/x-javascript");
                 $data = (include $actionDesc["file"]);
                 if ($data) {
                     echo json_encode($data);
                 }
             } else {
                 include $actionDesc["file"];
             }
         }
     } else {
         if (!defined("MOBILE_INIT_EVENT_SKIP")) {
             define("MOBILE_INIT_EVENT_SKIP", true);
         }
         header("Content-Type: application/x-javascript");
         echo json_encode(array("error" => "unknown action for data request"));
     }
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:41,代码来源:action.php

示例6: ShowCreateButton

	/**
	 * Displays start master button in public section
	 */
	function ShowCreateButton ()
	{
		// if user is admin
		if ($GLOBALS["USER"]->IsAdmin())
		{
			$GLOBALS["APPLICATION"]->AddHeadString('<style type="text/css">
#wizard_install_dialog { background-color: #F8F9FC; border: 1px solid #ABB7D8; }
#wizard_install_dialog div.title {background-color:#23468A; background-image:url(/bitrix/themes/.default/images/calendar/title_bg.gif); background-repeat:repeat-x; background-position:left top;}
#wizard_install_dialog div.title td.title-text {font-size:11px; font-family: Verdana,Arial,helvetica,sans-serif; font-weight:bold; color:#EEF1F7; padding:3px; cursor:move; vertical-align:top;}
</style>');

			$GLOBALS["APPLICATION"]->AddPanelButton(array(
				"HREF" => "javascript:WizardWindow.Open('beono:component','".bitrix_sessid()."')",   
            	"ID" => "beono.mastercomponent",
				"SRC" => "/bitrix/wizards/beono/component/panel-icon.png", 
				"MAIN_SORT" => 400,
				"SORT" => 100,
				"ALT" => GetMessage("BEONO_MODULE_MASTERCOMP_BUTTON_DESCRIPTION"),
				"TEXT" => GetMessage("BEONO_MODULE_MASTERCOMP_BUTTON_NAME"),
				"MENU" => array(),
			));
		}
	}
开发者ID:ASDAFF,项目名称:bitrix-mastercomponent,代码行数:26,代码来源:include.php

示例7: ShowDialogScript


//.........这里部分代码省略.........
                ?>
");
						BX.loadScript(arJS);
					}
					return setTimeout(function(){<?php 
                echo $arConfig['event'];
                ?>
(false)}, 50);
				}

				<?php 
                CMedialib::ShowJS();
                ?>
				<?php 
                $arSet = explode(',', CUserOptions::GetOption("fileman", "medialib_user_set", '600,450,0'));
                $width = $arSet[0] ? intVal($arSet[0]) : 600;
                $height = $arSet[1] ? intVal($arSet[1]) : 450;
                $coll_id = $arSet[2] ? intVal($arSet[2]) : 0;
                ?>
				window._mlUserSettings = window._mlUserSettings || {width: <?php 
                echo $width;
                ?>
, height: <?php 
                echo $height;
                ?>
, coll_id: <?php 
                echo $coll_id;
                ?>
}

				var oConfig =
				{
					sessid: "<?php 
                echo bitrix_sessid();
                ?>
",
					thumbWidth : <?php 
                echo COption::GetOptionInt('fileman', "ml_thumb_width", 140);
                ?>
,
					thumbHeight : <?php 
                echo COption::GetOptionInt('fileman', "ml_thumb_height", 105);
                ?>
,
					userSettings : window._mlUserSettings,
					resType: "<?php 
                echo $resultDest;
                ?>
",
					Types : <?php 
                echo CUtil::PhpToJSObject(CMedialib::GetTypes($arConfig['types']));
                ?>
,
					arResultDest : <?php 
                echo CUtil::PhpToJSObject($arConfig['arResultDest']);
                ?>
,
					rootAccess: {
						new_col: '<?php 
                echo CMedialib::CanDoOperation('medialib_new_collection', 0);
                ?>
',
						edit: '<?php 
                echo CMedialib::CanDoOperation('medialib_edit_collection', 0);
                ?>
',
开发者ID:andy-profi,项目名称:bxApiDocs,代码行数:67,代码来源:medialib.php

示例8: array

/***************************************************************************
								HTML form
****************************************************************************/
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$aMenu = array(array("TEXT" => GetMessage("AD_BACK_TO_TYPE_LIST"), "LINK" => "adv_type_list.php?lang=" . LANGUAGE_ID, "ICON" => "btn_list"));
if (strlen($SID) > 0) {
    $aMenu[] = array("SEPARATOR" => "Y");
    $aMenu[] = array("TEXT" => GetMessage("AD_STATISTICS"), "LINK" => "adv_banner_graph.php?find_type_sid=" . $SID . "&find_what_show[]=ctr&find_banner_summa=Y&set_filter=Y&lang=" . LANGUAGE_ID, "TITLE" => GetMessage("AD_STATISTICS_TITILE"), "ICON" => "btn_adv_graph");
    if ($isAdmin || $isDemo) {
        if ($action != "view") {
            $aMenu[] = array("TEXT" => GetMessage("AD_TYPE_VIEW_SETTINGS"), "TITLE" => GetMessage("AD_TYPE_VIEW_SETTINGS_TITLE"), "LINK" => "adv_type_edit.php?SID=" . $SID . "&lang=" . LANGUAGE_ID . "&action=view", "ICON" => "btn_adv_view");
        } else {
            $aMenu[] = array("TEXT" => GetMessage("AD_TYPE_EDIT"), "TITLE" => GetMessage("AD_TYPE_EDIT_TITLE"), "LINK" => "adv_type_edit.php?SID=" . $SID . "&lang=" . LANGUAGE_ID, "ICON" => "btn_adv_edit");
        }
        $aMenu[] = array("TEXT" => GetMessage("AD_ADD_NEW_TYPE"), "LINK" => "adv_type_edit.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("AD_ADD_NEW_TYPE_TITLE"), "ICON" => "btn_new");
        $aMenu[] = array("TEXT" => GetMessage("AD_DELETE_TYPE"), "LINK" => "javascript:if(confirm('" . GetMessage("AD_DELETE_TYPE_CONFIRM") . "'))window.location='adv_type_list.php?ID=" . $SID . "&lang=" . LANGUAGE_ID . "&action=delete&sessid=" . bitrix_sessid() . "';", "ICON" => "btn_delete");
    }
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
echo CAdminMessage::ShowMessage($strError);
?>
<form name="form1" method="POST" action="<?php 
echo $APPLICATION->GetCurPage();
?>
">
<?php 
echo bitrix_sessid_post();
?>
<input type="hidden" name="lang" value="<?php 
echo LANGUAGE_ID;
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:adv_type_edit.php

示例9: ShowScript


//.........这里部分代码省略.........
					showUploadTab : <?php 
                echo $arConfig['showUploadTab'] ? 'true' : 'false';
                ?>
,
					showAddToMenuTab : <?php 
                echo $arConfig['showAddToMenuTab'] ? 'true' : 'false';
                ?>
,
					site : '<?php 
                echo CUtil::JSEscape($arConfig['site']);
                ?>
',
					path : '<?php 
                echo CUtil::JSEscape($arConfig['path']);
                ?>
',
					lang : '<?php 
                echo CUtil::JSEscape($arConfig['lang']);
                ?>
',
					fileFilter : '<?php 
                echo CUtil::JSEscape($arConfig['fileFilter']);
                ?>
',
					allowAllFiles : <?php 
                echo $arConfig['allowAllFiles'] !== false ? 'true' : 'false';
                ?>
,
					saveConfig : <?php 
                echo $arConfig['saveConfig'] !== false ? 'true' : 'false';
                ?>
,
					sessid: "<?php 
                echo bitrix_sessid();
                ?>
",
					checkChildren: true,
					genThumb: <?php 
                echo COption::GetOptionString("fileman", "file_dialog_gen_thumb", "Y") == 'Y' ? 'true' : 'false';
                ?>
,
					zIndex: <?php 
                echo CUtil::JSEscape($arConfig['zIndex']);
                ?>
				};

				if(window.oBXFileDialog && window.oBXFileDialog.UserConfig)
				{
					UserConfig = oBXFileDialog.UserConfig;
					oConfig.path = UserConfig.path;
					oConfig.site = UserConfig.site;
				}

				if (Params.path)
					oConfig.path = Params.path;
				if (Params.site)
					oConfig.site = Params.site;

				oBXFileDialog = new BXFileDialog();
				oBXFileDialog.Open(oConfig, UserConfig);
				<?php 
            }
            ?>
			};
			window.<?php 
            echo CUtil::JSEscape($arConfig['event']);
开发者ID:spas-viktor,项目名称:books,代码行数:67,代码来源:file_dialog.php

示例10: bitrix_sessid

    echo $strResult;
    ?>
;
	if (top.<?php 
    echo $strReceiver;
    ?>
)
	{
		top.<?php 
    echo $strReceiver;
    ?>
.SetPropInfo('<?php 
    echo $PARAMS['ID'];
    ?>
',arResult,'<?php 
    echo bitrix_sessid();
    ?>
');
	}
	top.BX.closeWait(); top.BX.WindowManager.Get().AllowClose(); top.BX.WindowManager.Get().Close();
	</script><?php 
    require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin_js.php";
    die;
}
$aTabs = array();
$tabControl = null;
if (!$bFullForm) {
    $arProperty = array();
    $PROPERTY = $_POST['PROP'];
    $PARAMS = $_POST['PARAMS'];
    if (isset($PARAMS['TITLE']) && '' != $PARAMS['TITLE']) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:iblock_edit_property.php

示例11: in_array

    }
    $res["SHOW_PANEL"] = in_array("Y", $res["PANELS"]) ? "Y" : "N";
    if ($arParams["PERMISSION_ORIGINAL"] >= "Q") {
        $bIP = preg_match("/^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\$/", $res["~AUTHOR_IP"]) ? true : false;
        $res["AUTHOR_IP"] = $bIP ? GetWhoisLink($res["~AUTHOR_IP"], "") : $res["AUTHOR_IP"];
        $bIP = preg_match("/^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\$/", $res["~AUTHOR_REAL_IP"]) ? true : false;
        $res["AUTHOR_REAL_IP"] = $bIP ? GetWhoisLink($res["~AUTHOR_REAL_IP"], "") : $res["AUTHOR_REAL_IP"];
        $res["IP_IS_DIFFER"] = $res["AUTHOR_IP"] != $res["AUTHOR_REAL_IP"] ? "Y" : "N";
    }
    /************** Panels/*********************************************/
    /************** Urls ***********************************************/
    $res["URL"] = array("~USER" => CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $res["AUTHOR_ID"])), "~AUTHOR" => CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $res["AUTHOR_ID"])), "~EDITOR" => CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $res["EDITOR_ID"])), "~MESSAGE" => CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_MESSAGE"], array("UID" => $arParams["USER_ID"], "TID" => $arParams["TID"], "GID" => $arParams["SOCNET_GROUP_ID"], "MID" => $res["ID"])), "~MESSAGE_EDIT" => CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_TOPIC_EDIT"], array("UID" => $arParams["USER_ID"], "TID" => $arParams["TID"], "GID" => $arParams["SOCNET_GROUP_ID"], "MID" => $res["ID"])), "USER" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $res["AUTHOR_ID"])), "AUTHOR" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $res["AUTHOR_ID"])), "EDITOR" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $res["EDITOR_ID"])), "MESSAGE" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_MESSAGE"], array("UID" => $arParams["USER_ID"], "TID" => $arParams["TID"], "GID" => $arParams["SOCNET_GROUP_ID"], "MID" => $res["ID"])), "MESSAGE_EDIT" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_TOPIC_EDIT"], array("UID" => $arParams["USER_ID"], "TID" => $arParams["TID"], "GID" => $arParams["SOCNET_GROUP_ID"], "MID" => $res["ID"])));
    $res["URL"]["MESSAGE_EDIT"] = ForumAddPageParams($res["URL"]["~MESSAGE_EDIT"], array("MID" => $res["ID"], "ACTION" => "EDIT", "MESSAGE_TYPE" => "EDIT"));
    $res["URL"]["MESSAGE_DELETE"] = ForumAddPageParams($res["URL"]["~MESSAGE"], array("MID" => $res["ID"], "ACTION" => "del", "MESSAGE_TYPE" => "EDIT"));
    $res["URL"]["MESSAGE_SHOW"] = ForumAddPageParams($res["URL"]["~MESSAGE"], array("MID" => $res["ID"], "ACTION" => $res["APPROVED"] == "Y" ? "hide" : "show", "MESSAGE_TYPE" => "EDIT"));
    $res["URL"]["MESSAGE_SUPPORT"] = ForumAddPageParams($res["URL"]["~MESSAGE"], array("MID" => $res["ID"], "ACTION" => "support", "MESSAGE_TYPE" => "EDIT", "sessid" => bitrix_sessid()));
    $res["URL"]["AUTHOR_VOTE"] = ForumAddPageParams($res["URL"]["MESSAGE"], array("UID" => $res["AUTHOR_ID"], "MID" => $res["ID"], "VOTES" => intVal($arResult["USER"]["RANK"]["VOTES"]), "VOTES_TYPE" => $res["VOTING"] == "VOTE" ? "V" : "U", "ACTION" => "VOTE4USER"));
    $res["URL"]["MESSAGE_SPAM"] = ForumAddPageParams($res["URL"]["~MESSAGE"], array("MID" => $res["ID"], "ACTION" => "spam", "MESSAGE_TYPE" => "EDIT"));
    /************** Urls/***********************************************/
    if ($number == 2 && $bNeedFirstMessage) {
        $arResult["MESSAGE_FIRST"] = $res;
    } else {
        $arResult["MESSAGE_LIST"][$res["ID"]] = $res;
    }
}
/************** /Message list **************************************/
/************** Attach files ***************************************/
if (!empty($arResult["MESSAGE_LIST"])) {
    $res = array_keys($arResult["MESSAGE_LIST"]);
    $arFilter[">MESSAGE_ID"] = intVal($res[0]) - 1;
    $arFilter["<MESSAGE_ID"] = intVal($res[count($res) - 1]) + 1;
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:component.php

示例12: foreach

//Пробегаем по параметрам чщательно складывая их в хранилище
foreach ($arParams as $k => $v) {
    if (strncmp("~", $k, 1) && !in_array($k, $arSessionParams["PAGE_PARAMS"])) {
        $arSessionParams[$k] = $v;
    }
}
//04*
//Эти "параметры" нам понадобятся для правильного подключения компонента в AJAX вызове
$arSessionParams["COMPONENT_NAME"] = $component->GetName();
$arSessionParams["TEMPLATE_NAME"] = $component->GetTemplateName();
if ($parent = $component->GetParent()) {
    $arSessionParams["PARENT_NAME"] = $parent->GetName();
    $arSessionParams["PARENT_TEMPLATE_NAME"] = $parent->GetTemplateName();
    $arSessionParams["PARENT_TEMPLATE_PAGE"] = $parent->GetTemplatePage();
}
//05*
//а вот и ключ!
$idSessionParams = md5(serialize($arSessionParams));
//06*
//Модифицируем arResult компонента.
//Эти данные затем будут извлекаться из кеша
//И записываться в сессию
$component->arResult["AJAX"] = array("SESSION_KEY" => $idSessionParams, "SESSION_PARAMS" => $arSessionParams);
//07*
//Эта переменная для использования в шаблоне
$arResult["~AJAX_PARAMS"] = array("SESSION_PARAMS" => $idSessionParams, "PAGE_PARAMS" => array("ELEMENT_ID" => $arParams["ELEMENT_ID"]), "sessid" => bitrix_sessid(), "AJAX_CALL" => "Y");
//08*
//Она будет прозрачно передана в аяксовый пост
$arResult["AJAX_PARAMS"] = CUtil::PhpToJSObject($arResult["~AJAX_PARAMS"]);
//09*
//Продолжение экскурсии в файле template.php
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:result_modifier.php

示例13: intval

<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
$APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH."/components/bitrix/rating.vote/mobile_like/script_attached.js");

?><script>
BX.message({
	RVSessID: '<?php 
echo CUtil::JSEscape(bitrix_sessid());
?>
',
	RVPathToUserProfile: '<?php 
echo CUtil::JSEscape(htmlspecialcharsbx(str_replace("#", "(_)", $arResult['PATH_TO_USER_PROFILE'])));
?>
',
	RVListBack: '<?php 
echo CUtil::JSEscape(GetMessage("RV_T_LIST_BACK"));
?>
',
	RVRunEvent: '<?php 
echo intval($arParams["VOTE_RAND"]) > 0 ? "Y" : "N";
?>
'
});
</script><?
?><div class="post-item-informers post-item-inform-likes<?php 
echo $arResult['USER_HAS_VOTED'] == "N" ? "" : "-active";
?>
" id="bx-ilike-button-<?php 
echo CUtil::JSEscape(htmlspecialcharsbx($arResult['VOTE_ID']));
?>
"><?
	?><div class="post-item-inform-left"></div><?
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:template.php

示例14: array

 $arHistory['DISCUSSION_LINK'] = CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_DISCUSSION'], array('wiki_name' => urlencode($arParams['ELEMENT_NAME']), 'group_id' => CWikiSocnet::$iSocNetId)), $arParams['IN_COMPLEX'] == 'Y' && $arParams['SEF_MODE'] == 'N' ? array($arParams['OPER_VAR'] => 'discussion') : array());
 $arHistory['SHOW_LINK'] = CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_POST'], array('wiki_name' => urlencode($arParams['ELEMENT_NAME']), 'group_id' => CWikiSocnet::$iSocNetId)), array('oldid' => $arHistory['ID']));
 $arHp = array('oldid' => $arHistory['ID'], 'sessid' => bitrix_sessid());
 if ($arParams['IN_COMPLEX'] == 'Y' && $arParams['SEF_MODE'] == 'N') {
     $arHp[$arParams['OPER_VAR']] = 'history';
 }
 $arHistory['CANCEL_LINK'] = CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_HISTORY'], array('wiki_name' => urlencode($arParams['ELEMENT_NAME']), 'group_id' => CWikiSocnet::$iSocNetId)), $arHp);
 if ($arHistoryFirst['ID'] != $arHistory['ID']) {
     $arHp = array('diffid' => $arHistoryFirst['ID'], 'oldid' => $arHistory['ID']);
     if ($arParams['IN_COMPLEX'] == 'Y' && $arParams['SEF_MODE'] == 'N') {
         $arHp[$arParams['OPER_VAR']] = 'history_diff';
     }
     $arHistory['CUR_LINK'] = CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_HISTORY_DIFF'], array('wiki_name' => urlencode($arParams['ELEMENT_NAME']), 'group_id' => CWikiSocnet::$iSocNetId)), $arHp);
 }
 if (CWikiUtils::IsDeleteable()) {
     $arHp = array('oldid' => $arHistory['ID'], 'sessid' => bitrix_sessid(), 'delete' => 1);
     if ($arParams['IN_COMPLEX'] == 'Y' && $arParams['SEF_MODE'] == 'N') {
         $arHp[$arParams['OPER_VAR']] = 'history';
     }
     $arHistory['DELETE_LINK'] = CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_HISTORY'], array('wiki_name' => urlencode($arParams['ELEMENT_NAME']), 'group_id' => CWikiSocnet::$iSocNetId)), $arHp);
 }
 $arHistory['MODIFIED'] = FormatDateFromDB($arHistory['MODIFIED']);
 $arResult['HISTORY'][] = $arHistory;
 $iPrev = count($arResult['HISTORY']) - 2;
 if (isset($arResult['HISTORY'][$iPrev])) {
     $arHp = array('diffid' => $arResult['HISTORY'][$iPrev]['ID'], 'oldid' => $arHistory['ID']);
     if ($arParams['IN_COMPLEX'] == 'Y' && $arParams['SEF_MODE'] == 'N') {
         $arHp[$arParams['OPER_VAR']] = 'history_diff';
     }
     $arResult['HISTORY'][$iPrev]['PREV_LINK'] = CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_HISTORY_DIFF'], array('wiki_name' => urlencode($arParams['ELEMENT_NAME']), 'group_id' => CWikiSocnet::$iSocNetId)), $arHp);
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:component.php

示例15: switch

     }
 } else {
     $message = !empty($_REQUEST["MID_ARRAY"]) ? $_REQUEST["MID_ARRAY"] : $_REQUEST["MID"];
     if ((empty($message) || $message == "s") && !empty($_REQUEST["message_id"])) {
         $message = $_REQUEST["message_id"];
     }
 }
 switch ($action) {
     case "EDIT_TOPIC":
         $MID = 0;
         $db_res = CForumMessage::GetList(array("ID" => "ASC"), array("TOPIC_ID" => $arParams["TID"]), false, 1);
         if ($db_res && ($res = $db_res->Fetch())) {
             $MID = intVal($res["ID"]);
         }
         if ($MID > 0) {
             $url = ForumAddPageParams(CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_TOPIC_NEW"], array("FID" => $arParams["FID"])), array("TID" => $arParams["TID"], "MID" => $MID, "MESSAGE_TYPE" => "EDIT", "sessid" => bitrix_sessid()), false, false);
             LocalRedirect($url);
         }
         break;
     case "REPLY":
         $arFields = array("FID" => $arParams["FID"], "TID" => $arParams["TID"], "POST_MESSAGE" => $_POST["POST_MESSAGE"], "AUTHOR_NAME" => $_POST["AUTHOR_NAME"], "AUTHOR_EMAIL" => $_POST["AUTHOR_EMAIL"], "USE_SMILES" => $_POST["USE_SMILES"], "captcha_word" => $_POST["captcha_word"], "captcha_code" => $_POST["captcha_code"], "NAME_TEMPLATE" => $arParams["NAME_TEMPLATE"]);
         if (!empty($_FILES["ATTACH_IMG"])) {
             $arFields["ATTACH_IMG"] = $_FILES["ATTACH_IMG"];
         } else {
             $arFiles = array();
             if (!empty($_REQUEST["FILES"])) {
                 foreach ($_REQUEST["FILES"] as $key) {
                     $arFiles[$key] = array("FILE_ID" => $key);
                     if (!in_array($key, $_REQUEST["FILES_TO_UPLOAD"])) {
                         $arFiles[$key]["del"] = "Y";
                     }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:action.php


注:本文中的bitrix_sessid函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。