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


PHP CUtil::JSPostUnEscape方法代码示例

本文整理汇总了PHP中CUtil::JSPostUnEscape方法的典型用法代码示例。如果您正苦于以下问题:PHP CUtil::JSPostUnEscape方法的具体用法?PHP CUtil::JSPostUnEscape怎么用?PHP CUtil::JSPostUnEscape使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CUtil的用法示例。


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

示例1: foreach

            foreach (GetModuleEvents("photogallery", "OnAfterPhotoDrop", true) as $arEvent) {
                ExecuteModuleEventEx($arEvent, array($arEventFields, $arParams));
            }
            PClearComponentCacheEx($arParams["IBLOCK_ID"], array(0, $arParams["SECTION_ID"]));
        } else {
            ?>
			<script>
				window.bxph_error = '<?php 
            echo GetMessage("DEL_ITEM_ERROR") . ($ex = $APPLICATION->GetException() ? ': ' . $ex->GetString() : '');
            ?>
';
			</script>
			<?php 
        }
    } elseif ($photo_list_action == 'edit' && $arParams["PERMISSION"] >= "U") {
        CUtil::JSPostUnEscape();
        CModule::IncludeModule("iblock");
        if (intVal($_REQUEST["SECTION_ID"]) > 0) {
            $arParams["SECTION_ID"] = intVal($_REQUEST["SECTION_ID"]);
        }
        if (!$arParams["USER_ALIAS"] && isset($_REQUEST["USER_ALIAS"])) {
            $arParams["USER_ALIAS"] = $_REQUEST["USER_ALIAS"];
        }
        // Don't delete <!--BX_PHOTO_EDIT_RES-->, <!--BX_PHOTO_EDIT_RES_END--> comments - they are used in js to catch html content
        ?>
<!--BX_PHOTO_EDIT_RES--><?php 
        $APPLICATION->IncludeComponent("bitrix:photogallery.detail.edit", "", array("IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"], "IBLOCK_ID" => $arParams["IBLOCK_ID"], "USER_ALIAS" => $arParams["USER_ALIAS"], "PERMISSION" => $arParams["PERMISSION"], "SECTION_ID" => $arParams["SECTION_ID"], "SECTION_CODE" => $arParams["SECTION_CODE"], "ELEMENT_ID" => $arParams["ELEMENT_ID"], "BEHAVIOUR" => $arParams["BEHAVIOUR"], "ACTION" => "EDIT", "GALLERY_URL" => $arResult["URL_TEMPLATES"]["gallery"], "DETAIL_URL" => $arResult["URL_TEMPLATES"]["detail"], "SECTION_URL" => $arResult["URL_TEMPLATES"]["section"], "DATE_TIME_FORMAT" => $arParams["DATE_TIME_FORMAT_DETAIL"], "SHOW_TAGS" => $arParams["SHOW_TAGS"], "GALLERY_SIZE" => $arParams["GALLERY_SIZE"], "SET_STATUS_404" => $arParams["SET_STATUS_404"], "CACHE_TYPE" => $arParams["CACHE_TYPE"], "CACHE_TIME" => $arParams["CACHE_TIME"], "DISPLAY_PANEL" => $arParams["DISPLAY_PANEL"], "SET_TITLE" => "N", "ADD_CHAIN_ITEM" => "N", "SHOW_PUBLIC" => "N", "SHOW_APPROVE" => "N", "SHOW_TITLE" => "N", "SEARCH_URL" => $arParams["SEARCH_URL"], "~RESTART_BUFFER" => false), $component);
        ?>
<!--BX_PHOTO_EDIT_RES_END--><?php 
    }
    die;
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:action.php

示例2: RequestAction

	public static function RequestAction($action = '')
	{
		global $USER, $APPLICATION;
		$result = array();

		switch($action)
		{
			case "load_site_template":
				if (!$USER->CanDoOperation('fileman_view_file_structure'))
					break;
				$siteTemplate = $_REQUEST['site_template'];
				$siteId = isset($_REQUEST['site_id']) ? $_REQUEST['site_id'] : SITE_ID;
				$result = self::GetSiteTemplateParams($siteTemplate, $siteId);
				break;
			case "load_components_list":
				if (!$USER->CanDoOperation('fileman_view_file_structure'))
					break;
				$siteTemplate = $_REQUEST['site_template'];
				$result = self::GetComponents($siteTemplate, true);
				break;

			case "video_oembed":
				$result = self::GetVideoOembed($_REQUEST['video_source']);
				break;

			// Snippets actions
			case "load_snippets_list":
				if (!$USER->CanDoOperation('fileman_view_file_structure'))
					break;
				$template = $_REQUEST['site_template'];
				$result = array(
					'result' => true,
					'snippets' => array($template => self::GetSnippets($template, $_REQUEST['clear_cache'] == 'Y'))
				);
				break;
			case "edit_snippet":
				if (!$USER->CanDoOperation('fileman_view_file_structure'))
					break;
				CUtil::JSPostUnEscape();
				$template = $_REQUEST['site_template'];

				// Update
				if ($_REQUEST['current_path'])
				{
					$result = CSnippets::Update(array(
						'template' => $template,
						'path' => $_REQUEST['path'],
						'code' => $_REQUEST['code'],
						'title' => $_REQUEST['name'],
						'current_path' => $_REQUEST['current_path'],
						'description' => $_REQUEST['description']
					));
				}
				// Add new
				else
				{
					$result = CSnippets::Add(array(
						'template' => $template,
						'path' => $_REQUEST['path'],
						'code' => $_REQUEST['code'],
						'title' => $_REQUEST['name'],
						'description' => $_REQUEST['description']
					));
				}

				if ($result && $result['result'])
				{
					$result['snippets'] = array($template => self::GetSnippets($template));
				}

				break;
			case "remove_snippet":
				if (!$USER->CanDoOperation('fileman_view_file_structure'))
					break;
				CUtil::JSPostUnEscape();
				$template = $_REQUEST['site_template'];

				$res = CSnippets::Remove(array(
					'template' => $template,
					'path' => $_REQUEST['path']
				));

				if ($res)
				{
					$result = array(
						'result' => true,
						'snippets' => array($template => self::GetSnippets($template))
					);
				}
				else
				{
					$result = array('result' => false);
				}

				break;
			case "snippet_add_category":
				if (!$USER->CanDoOperation('fileman_view_file_structure'))
					break;
				CUtil::JSPostUnEscape();
				$template = $_REQUEST['site_template'];
//.........这里部分代码省略.........
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:101,代码来源:html_editor.php

示例3: Request

    function Request($action)
    {
        global $APPLICATION;
        $sectionId = $_REQUEST['section_id'] == 'none' ? 'none' : intVal($_REQUEST['section_id']);
        CUtil::JSPostUnEscape();
        // Export calendar
        if ($action == 'export') {
            // We don't need to check access  couse we will check security SIGN from the URL
            $bCheck = $_GET['check'] == 'Y';
            $calendarId = $_GET['calendar_id'];
            if ($bCheck) {
                $GLOBALS['APPLICATION']->RestartBuffer();
                if ($this->CheckSign($_GET['sign'], intVal($_GET['user_id']), $calendarId > 0 ? $calendarId : 'superposed_calendars')) {
                    echo 'BEGIN:VCALENDAR';
                }
                die;
            }
            if (!isset($calendarId) || intVal($calendarId) <= 0) {
                $this->ReturnICal_SP(array('userId' => intVal($_GET['user_id']), 'sign' => $_GET['sign']));
            } else {
                $this->ReturnICal(array('calendarId' => intVal($calendarId), 'userId' => intVal($_GET['user_id']), 'sign' => $_GET['sign'], 'ownerType' => $_GET['owner_type'], 'ownerId' => $_GET['owner_id'], 'iblockId' => $_GET['ibl']));
            }
        } else {
            // First of all - CHECK ACCESS
            $this->GetPermissions(array('userId' => $curUserId));
            if (!$this->bAccess) {
                return $APPLICATION->ThrowException(GetMessage("EC_ACCESS_DENIED"));
            }
            $APPLICATION->RestartBuffer();
            if (!check_bitrix_sessid()) {
                echo '<!--BX_EC_DUBLICATE_ACTION_REQUEST' . bitrix_sessid() . '-->';
                return;
            }
            switch ($action) {
                // * * * * * Add and Edit event * * * * *
                case 'add':
                case 'edit':
                    if ($this->bReadOnly) {
                        return $this->ThrowError(GetMessage('EC_ACCESS_DENIED'));
                    }
                    $id = intVal($_POST['id']);
                    // If other calendar was selected for event
                    if ($_POST['b_recreate'] == 'Y' && intVal($_POST['old_calendar'])) {
                        $old_id = $id;
                        $id = 0;
                        $action = 'add';
                    }
                    $from_ts = MakeTimeStamp($_POST['from'], getTSFormat());
                    $to_ts = MakeTimeStamp($_POST['to'], getTSFormat());
                    $arGuests = isset($_POST['guest']) ? $_POST['guest'] : false;
                    $bPeriodic = isset($_POST['per_type']) && $_POST['per_type'] != 'none';
                    if ($bPeriodic) {
                        $per_type = trim($_POST['per_type']);
                        $per_count = intVal($_POST['per_count']);
                        $per_from_ts = MakeTimeStamp($_POST['per_from'], getTSFormat());
                        if ($per_from_ts < $from_ts) {
                            $per_from_ts = mktime(date("H", $from_ts), date("i", $from_ts), date("s", $from_ts), date("m", $per_from_ts), date("d", $per_from_ts), date("Y", $per_from_ts));
                        } else {
                            $per_from_ts = $from_ts;
                        }
                        $per_from = date(getDateFormat(), $per_from_ts);
                        $per_ts = $_POST['per_to'] == 'no_limit' ? 2145938400 : MakeTimeStamp($_POST['per_to'], getTSFormat());
                        $per_to = date(getDateFormat(), $per_ts);
                        $per_week_days = $per_type == 'weekly' ? trim($_POST['per_week_days']) : '';
                        $per_len = intVal($to_ts - $from_ts);
                        $from = $per_from;
                        $to = $per_to;
                        $PROP = array('PERIOD_TYPE' => strtoupper($per_type), 'PERIOD_COUNT' => $per_count, 'EVENT_LENGTH' => $per_len, 'PERIOD_ADDITIONAL' => $per_week_days);
                    } else {
                        $from = date(getDateFormat(), $from_ts);
                        $to = date(getDateFormat(), $to_ts);
                        $PROP = array('PERIOD_TYPE' => 'NONE');
                    }
                    if ($_POST['rem'] == 'Y' && floatval($_POST['rem_count']) > 0 && in_array($_POST['rem_type'], array('min', 'hour', 'day'))) {
                        $arRem = array('count' => floatval($_POST['rem_count']), 'type' => $_POST['rem_type']);
                    } else {
                        $arRem = false;
                    }
                    $PROP['ACCESSIBILITY'] = $_POST['accessibility'] && in_array($_POST['accessibility'], array('quest', 'free', 'absent')) ? $_POST['accessibility'] : 'busy';
                    $PROP['IMPORTANCE'] = $_POST['importance'] && in_array($_POST['importance'], array('high', 'low')) ? $_POST['importance'] : 'normal';
                    $PROP['PRIVATE'] = $_POST['private_event'] == true ? $_POST['private_event'] : false;
                    if (isset($_POST['host']) && intVal($_POST['host']) > 0) {
                        $PROP['PARENT'] = intVal($_POST['host']);
                    }
                    $isMeeting = !!$_POST['is_meeting'];
                    $arParams = array('iblockId' => $this->iblockId, 'ownerType' => $this->ownerType, 'ownerId' => $this->ownerId, 'sectionId' => $sectionId, 'calendarId' => $_POST['calendar'], 'bNew' => $action == 'add', 'id' => $id, 'name' => trim($_POST['name']), 'desc' => trim($_POST['desc']), 'dateFrom' => cutZeroTime($from), 'dateTo' => cutZeroTime($to), 'isMeeting' => $isMeeting, 'prop' => $PROP, 'remind' => $arRem, 'fullUrl' => $this->fullUrl, 'userId' => $this->userId, 'pathToUserCalendar' => $this->pathToUserCalendar, 'pathToGroupCalendar' => $this->pathToGroupCalendar, 'userIblockId' => $this->userIblockId, 'location' => array('old' => trim($_POST['location_old']), 'new' => trim($_POST['location_new']), 'change' => $_POST['location_change'] == 'Y'), 'RMiblockId' => $this->allowResMeeting ? $this->RMiblockId : 0, 'allowResMeeting' => $this->allowResMeeting, 'RMPath' => $this->RMPath, 'VMiblockId' => $this->allowVideoMeeting ? $this->VMiblockId : 0, 'allowVideoMeeting' => $this->allowVideoMeeting, 'VMPath' => $this->VMPath, 'VMPathDetail' => $this->VMPathDetail);
                    if ($isMeeting) {
                        $arParams['guests'] = $arGuests;
                        $arParams['meetingText'] = trim($_POST['meeting_text']);
                        $arParams['setSpecialNotes'] = !!$_POST['setSpecialNotes'];
                        if (isset($_POST['status'])) {
                            $arParams['status'] = $_POST['status'];
                        }
                        $arParams['reinviteParamsList'] = $this->reinviteParamsList;
                    }
                    $eventId = $this->SaveEvent($arParams);
                    // We successfully create new event and have to delete old
                    if (is_int($eventId) && $eventId > 0 && $_POST['b_recreate'] == 'Y' && intVal($_POST['old_calendar'])) {
                        // delete original event
                        $res = CECEvent::Delete(array('id' => $old_id, 'iblockId' => $this->iblockId, 'ownerType' => $this->ownerType, 'ownerId' => $this->ownerId, 'userId' => $this->userId, 'pathToUserCalendar' => $this->pathToUserCalendar, 'pathToGroupCalendar' => $this->pathToGroupCalendar, 'userIblockId' => $this->userIblockId, 'RMiblockId' => $this->allowResMeeting ? $this->RMiblockId : 0, 'allowResMeeting' => $this->allowResMeeting, 'VMiblockId' => $this->allowVideoMeeting ? $this->VMiblockId : 0, 'allowVideoMeeting' => $this->allowVideoMeeting));
//.........这里部分代码省略.........
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:101,代码来源:event_calendar.php

示例4: Request

 public static function Request($action = '')
 {
     global $APPLICATION;
     if ($_REQUEST['skip_unescape'] !== 'Y') {
         CUtil::JSPostUnEscape();
     }
     // Export calendar
     if ($action == 'export') {
         // We don't need to check access  couse we will check security SIGN from the URL
         $sectId = intVal($_GET['sec_id']);
         if ($_GET['check'] == 'Y') {
             $APPLICATION->RestartBuffer();
             if (CCalendarSect::CheckSign($_GET['sign'], intVal($_GET['user']), $sectId > 0 ? $sectId : 'superposed_calendars')) {
                 echo 'BEGIN:VCALENDAR';
             }
             CMain::FinalActions();
             die;
         }
         if (CCalendarSect::CheckAuthHash() && $sectId > 0) {
             // We don't need any warning in .ics file
             error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_PARSE);
             CCalendarSect::ReturnICal(array('sectId' => $sectId, 'userId' => intVal($_GET['user']), 'sign' => $_GET['sign'], 'type' => $_GET['type'], 'ownerId' => intVal($_GET['owner'])));
         }
     } else {
         // // First of all - CHECK ACCESS
         if (!CCalendarType::CanDo('calendar_type_view', self::$type) || !check_bitrix_sessid()) {
             return $APPLICATION->ThrowException(GetMessage("EC_ACCESS_DENIED"));
         }
         $APPLICATION->ShowAjaxHead();
         $APPLICATION->RestartBuffer();
         $reqId = intVal($_REQUEST['reqId']);
         switch ($action) {
             // * * * * * Add and Edit event * * * * *
             case 'edit_event':
                 if (self::$bReadOnly || !CCalendarType::CanDo('calendar_type_view', self::$type)) {
                     return CCalendar::ThrowError(GetMessage('EC_ACCESS_DENIED'));
                 }
                 $id = intVal($_POST['id']);
                 if (isset($_POST['section'])) {
                     $sectId = intVal($_POST['section']);
                     $_POST['sections'] = array($sectId);
                 } else {
                     $sectId = intVal($_POST['sections'][0]);
                 }
                 if (self::$type != 'user' || self::$ownerId != self::$userId) {
                     if (!$id && !CCalendarSect::CanDo('calendar_add', $sectId, self::$userId)) {
                         return CCalendar::ThrowError(GetMessage('EC_ACCESS_DENIED'));
                     }
                     if ($id && !CCalendarSect::CanDo('calendar_edit', $sectId, self::$userId)) {
                         return CCalendar::ThrowError(GetMessage('EC_ACCESS_DENIED'));
                     }
                 }
                 // Default name for events
                 $_POST['name'] = trim($_POST['name']);
                 if ($_POST['name'] == '') {
                     $_POST['name'] = GetMessage('EC_DEFAULT_EVENT_NAME');
                 }
                 $remind = array();
                 if (isset($_POST['remind']['checked']) && $_POST['remind']['checked'] == 'Y') {
                     $remind[] = array('type' => $_POST['remind']['type'], 'count' => intval($_POST['remind']['count']));
                 }
                 $rrule = isset($_POST['rrule_enabled']) ? $_POST['rrule'] : false;
                 $from_ts = $_POST['from_ts'];
                 $to_ts = $_POST['to_ts'];
                 if (isset($_POST['skip_time']) && $_POST['skip_time'] == 'Y' || $rrule) {
                     $from_ts = self::_fixTimestamp($from_ts);
                     $to_ts = self::_fixTimestamp($to_ts);
                 }
                 $arFields = array("ID" => $id, "DT_FROM_TS" => $from_ts, "DT_TO_TS" => $to_ts, 'NAME' => $_POST['name'], 'DESCRIPTION' => trim($_POST['desc']), 'SECTIONS' => $_POST['sections'], 'COLOR' => $_POST['color'], 'TEXT_COLOR' => $_POST['text_color'], 'ACCESSIBILITY' => $_POST['accessibility'], 'IMPORTANCE' => $_POST['importance'], 'PRIVATE_EVENT' => $_POST['private_event'] == 'Y', 'RRULE' => $rrule, 'LOCATION' => is_array($_POST['location']) ? $_POST['location'] : array(), "REMIND" => $remind, "IS_MEETING" => !!$_POST['is_meeting'], "SKIP_TIME" => isset($_POST['skip_time']) && $_POST['skip_time'] == 'Y');
                 $arAccessCodes = array();
                 if (isset($_POST['EVENT_DESTINATION'])) {
                     foreach ($_POST["EVENT_DESTINATION"] as $v => $k) {
                         if (strlen($v) > 0 && is_array($k) && !empty($k)) {
                             foreach ($k as $vv) {
                                 if (strlen($vv) > 0) {
                                     $arAccessCodes[] = $vv;
                                 }
                             }
                         }
                     }
                     if (!$arFields["ID"]) {
                         $arAccessCodes[] = 'U' . self::$userId;
                     }
                     $arAccessCodes = array_unique($arAccessCodes);
                 }
                 $arFields['IS_MEETING'] = !empty($arAccessCodes) && $arAccessCodes != array('U' . self::$userId);
                 if ($arFields['IS_MEETING']) {
                     $arFields['ATTENDEES_CODES'] = $arAccessCodes;
                     $arFields['ATTENDEES'] = CCalendar::GetDestinationUsers($arAccessCodes);
                     $arFields['MEETING_HOST'] = self::$userId;
                     $arFields['MEETING'] = array('HOST_NAME' => self::GetUserName($arFields['MEETING_HOST']), 'TEXT' => isset($_POST['meeting_text']) ? $_POST['meeting_text'] : '', 'OPEN' => $_POST['open_meeting'] === 'Y', 'NOTIFY' => $_POST['meeting_notify'] === 'Y', 'REINVITE' => $_POST['meeting_reinvite'] === 'Y');
                 }
                 // Userfields for event
                 $arUFFields = array();
                 foreach ($_POST as $field => $value) {
                     if (substr($field, 0, 3) == "UF_") {
                         $arUFFields[$field] = $value;
                     }
                 }
                 $newId = self::SaveEvent(array('arFields' => $arFields, 'UF' => $arUFFields));
//.........这里部分代码省略.........
开发者ID:andy-profi,项目名称:bxApiDocs,代码行数:101,代码来源:calendar.php

示例5: RequestAction

 public static function RequestAction($action = '')
 {
     global $USER, $APPLICATION;
     $result = array();
     switch ($action) {
         case "load_site_template":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             $siteTemplate = $_REQUEST['site_template'];
             $siteId = isset($_REQUEST['site_id']) ? $_REQUEST['site_id'] : SITE_ID;
             $result = self::GetSiteTemplateParams($siteTemplate, $siteId);
             break;
         case "load_components_list":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             $siteTemplate = $_REQUEST['site_template'];
             $componentFilter = isset($_REQUEST['componentFilter']) ? $_REQUEST['componentFilter'] : false;
             $result = self::GetComponents($siteTemplate, true, $componentFilter);
             break;
         case "video_oembed":
             $result = self::GetVideoOembed($_REQUEST['video_source']);
             break;
             // Snippets actions
         // Snippets actions
         case "load_snippets_list":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             $template = $_REQUEST['site_template'];
             $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template, $_REQUEST['clear_cache'] == 'Y')));
             break;
         case "edit_snippet":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             // Update
             if ($_REQUEST['current_path']) {
                 $result = CSnippets::Update(array('template' => $template, 'path' => $_REQUEST['path'], 'code' => $_REQUEST['code'], 'title' => $_REQUEST['name'], 'current_path' => $_REQUEST['current_path'], 'description' => $_REQUEST['description']));
             } else {
                 $result = CSnippets::Add(array('template' => $template, 'path' => $_REQUEST['path'], 'code' => $_REQUEST['code'], 'title' => $_REQUEST['name'], 'description' => $_REQUEST['description']));
             }
             if ($result && $result['result']) {
                 $result['snippets'] = array($template => self::GetSnippets($template));
             }
             break;
         case "remove_snippet":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             $res = CSnippets::Remove(array('template' => $template, 'path' => $_REQUEST['path']));
             if ($res) {
                 $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template)));
             } else {
                 $result = array('result' => false);
             }
             break;
         case "snippet_add_category":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             $res = CSnippets::CreateCategory(array('template' => $template, 'name' => $_REQUEST['category_name'], 'parent' => $_REQUEST['category_parent']));
             if ($res) {
                 $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template)));
             } else {
                 $result = array('result' => false);
             }
             break;
         case "snippet_remove_category":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             $res = CSnippets::RemoveCategory(array('template' => $template, 'path' => $_REQUEST['category_path']));
             if ($res) {
                 $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template)));
             } else {
                 $result = array('result' => false);
             }
             break;
         case "snippet_rename_category":
             if (!$USER->CanDoOperation('fileman_view_file_structure')) {
                 break;
             }
             CUtil::JSPostUnEscape();
             $template = $_REQUEST['site_template'];
             $res = CSnippets::RenameCategory(array('template' => $template, 'path' => $_REQUEST['category_path'], 'new_name' => $_REQUEST['category_new_name']));
             if ($res) {
                 $result = array('result' => true, 'snippets' => array($template => self::GetSnippets($template)));
             } else {
                 $result = array('result' => false);
             }
//.........这里部分代码省略.........
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:101,代码来源:html_editor.php


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