Ejemplo n.º 1
0
 public static function GetSessionParam($ajax_id = false)
 {
     if (!$ajax_id) {
         $ajax_id = CAjax::GetSession();
     }
     if (!$ajax_id) {
         return '';
     } else {
         return BX_AJAX_PARAM_ID . '=' . $ajax_id;
     }
 }
Ejemplo n.º 2
0
 function CheckSession()
 {
     if ($this->componentID = CAjax::GetComponentID($this->componentName, $this->componentTemplate, $this->arParams['AJAX_OPTION_ADDITIONAL'])) {
         if ($current_session = CAjax::GetSession()) {
             if ($this->componentID == $current_session) {
                 $this->bAjaxSession = true;
                 return true;
             } else {
                 return false;
             }
         }
         return true;
     }
     return false;
 }
Ejemplo n.º 3
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (strlen($arParams["START_PAGE"]) <= 0) {
    $arParams["START_PAGE"] = 'new';
}
if ($arParams["AJAX_MODE"] == "Y") {
    $ajaxSession = CAjax::GetSession();
    if ($ajaxSession && $arParams["AJAX_ID"] != $ajaxSession) {
        return;
    }
}
if (CModule::IncludeModule("form")) {
    $componentPage = "";
    if ($arParams["SEF_MODE"] == "Y") {
        // SEF mode enabled
        $WEB_FORM_ID_TEMP = $arParams["WEB_FORM_ID"];
        $arDefaultUrlTemplates404 = array("new" => "#WEB_FORM_ID#/", "list" => "#WEB_FORM_ID#/list/", "edit" => "#WEB_FORM_ID#/edit/#RESULT_ID#/", "view" => "#WEB_FORM_ID#/view/#RESULT_ID#/", "success" => "");
        $arDefaultVariableAliases404 = array();
        $arDefaultVariableAliases = array();
        $arComponentVariables = array("WEB_FORM_ID", "RESULT_ID");
        $arVariables = array();
        $arComponentPage = array_keys($arDefaultUrlTemplates404);
        $arUrlTemplates = CComponentEngine::MakeComponentUrlTemplates($arDefaultUrlTemplates404, $arParams["SEF_URL_TEMPLATES"]);
        $arVariableAliases = CComponentEngine::MakeComponentVariableAliases($arDefaultVariableAliases404, $arParams["VARIABLE_ALIASES"]);
        // get current component page
        if (array_key_exists($arVariables["page"], $arDefaultUrlTemplates404)) {
            $componentPage = $arVariables["page"];
        }
Ejemplo n.º 4
0
	function GetSessionParam($ajax_id = false)
	{
		if (!$ajax_id) $ajax_id = CAjax::GetSession();
		if (!$ajax_id) return '';
		else return FX_AJAX_PARAM_ID.'='.$ajax_id;
	}