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


PHP CHTTP::urndecode方法代码示例

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


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

示例1: PrintDialogDiv

    static function PrintDialogDiv($ob)
    {
        $url = $ob->_path;
        $urlFull = $ob->base_url_full . "/";
        $fileOptT = CWebDavExtLinks::GetFileOptions($ob);
        $GLOBALS["APPLICATION"]->RestartBuffer();
        $resUrl = self::GetList(array("URL" => $url, "BASE_URL" => $ob->base_url, "ONLY_CURRENT_USER" => true));
        $linksNum = 0;
        $arLinks = array();
        $description = "";
        if (array_key_exists("DESCRIPTION", $fileOptT) && strlen($fileOptT["DESCRIPTION"]) > 0) {
            $description = HTMLToTxt($fileOptT["DESCRIPTION"]);
        }
        $arUsers = array();
        $currUserID = self::GetUserID();
        while ($arU = $resUrl->Fetch()) {
            /*	
            'URL' => '/1.doc',
            'RESOURCE_TYPE' => 'IBLOCK',
            'FOLDER' => NULL,
            'IBLOCK_TYPE' => 'library',
            'IBLOCK_ID' => '19',
            'BASE_URL' => '/docs/shared',
            'HASH' => 'f9b22cf913a644c0d23b0c88e3c0407e',
            'CREATION_DATE' => '1353762751',
            'USER_ID' => '1',
            'PASSWORD' => 'e10adc3949ba59abbe56e057f20f883e',
            'LIFETIME' => '1669122751',
            */
            $priority = 0;
            $arCurrStr = array("HASH" => $arU["HASH"]);
            if ($arU["LIFETIME"] - time() < 31536000) {
                $arCurrStr["TIME_LEFT"] = GetTime($arU["LIFETIME"] + CTimeZone::GetOffset(), "FULL");
                $priority++;
            }
            if ($arU["PASSWORD"] != null) {
                $arCurrStr["PASSWORD"] = true;
                $priority += 2;
            }
            $arUsers[] = $arCurrStr["USER_ID"] = intval($arU["USER_ID"]);
            if ($arCurrStr["USER_ID"] == $currUserID) {
                $priority -= 100;
            }
            $arCurrStr["PRIORITY"] = $priority;
            $arLinks[] = $arCurrStr;
            $linksNum++;
        }
        $arProfilesLinks = array();
        if (self::IsAdmin()) {
            $arProfilesLinks = self::GetUserProfilesLinks($arUsers);
        }
        usort($arLinks, array(self, '__SortMethod'));
        $fileName = htmlspecialcharsbx(GetFileName(CHTTP::urndecode($url)));
        $size = "";
        $sizeI = intval($fileOptT["F_SIZE"]);
        if ($sizeI > 0) {
            $size .= " (" . htmlspecialcharsbx(CFile::FormatSize($sizeI)) . ")";
        }
        $changeTime = "";
        if (strlen($fileOptT["CHANGE_TIME"]) > 0) {
            $changeTime = " " . GetMessage("WD_EXT_LINKS_DIALOG_CHANGE_TIME") . " " . $fileOptT["CHANGE_TIME"];
        }
        $demoLink = self::GetFullURL(self::GetUrl() . "/" . self::DEMO_HASH . '/' . self::GetDemoFileName());
        ?>
		
	<div class="ext-link-dialog-content">
		<div class="ext-link-section">
			<span><span class="ext-link-dialog-file-name"><?php 
        echo $fileName;
        ?>
</span><?php 
        echo $size . $changeTime;
        ?>
</span>
		</div>

<?php 
        if (self::IsFirstView()) {
            ?>
		<div id="ext-link-green-window">
			<div class="ext-link-dialog-wrap">
				<div class="ext-link-dialog-info-block">
					<div class="ext-link-dialog-img"></div>
					<div class="ext-link-dialog-title"><?php 
            echo GetMessage("WD_EXT_LINKS_DIALOG_GREEN_WINDOW_TITLE");
            ?>
</div>
					<div class="ext-link-dialog-text">
						<?php 
            echo GetMessage("WD_EXT_LINKS_DIALOG_GREEN_WINDOW_TEXT");
            ?>
					</div>
					<a href="<?php 
            echo $demoLink;
            ?>
" class="ext-link-dialog-link"><?php 
            echo GetMessage("WD_EXT_LINKS_DIALOG_GREEN_WINDOW_LINK");
            ?>
</a>
					<span class="ext-link-dialog-close-btn" onclick="ExtLinkDialogCloseGreenWindow(this)"></span>
//.........这里部分代码省略.........
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:101,代码来源:extlinks.php


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