内容的栏目 * @param int $category 0列表 1频道 2单页 3外链 * @return array */ function category_list($forumlist, $model = 0, $display = 0, $category = 0) { if (empty($forumlist)) return NULL; static $cache = array(); $key = $model . '-' . $display . '-' . $category; if (isset($cache[$key])) return $cache[$key]; if ($display) { foreach ($forumlist as $k => $val) { if (1 == $val['display'] && 1 == $val['type'] && $val['category'] == $category) { $cache[$key][$k] = $val; } } } else { foreach ($forumlist as $k => $val) { if (1 == $val['type'] && $val['category'] == $category) { $cache[$key][$k] = $val; } } } return empty($cache[$key]) ? NULL : $cache[$key]; } /** * @param $forumlist 所有版块列表 不分模型 * @param int $display 0全部CMS栏目 1在首页和频道显示内容的栏目 * @param int $category 0列表 1频道 2单页 3外链 * @return array */ function category_list_show($forumlist, $display = 0, $category = 0) { if (empty($forumlist)) return NULL; static $cache = array(); $key = $display . '-' . $category; if (isset($cache[$key])) return $cache[$key]; if ($display) { foreach ($forumlist as $k => $val) { if (1 == $val['display'] && 1 == $val['type'] && $val['category'] == $category) { $cache[$key][$k] = $val; } } } else { foreach ($forumlist as $k => $val) { if (1 == $val['type'] && $val['category'] == $category) { $cache[$key][$k] = $val; } } } return empty($cache[$key]) ? NULL : $cache[$key]; } /** * @param $forumlist 所有版块列表 * @return mixed BBS栏目数据(仅列表) 尚未开放bbs频道功能 */ function forum_list($forumlist) { if (empty($forumlist)) return array(); static $cache = array(); if (isset($cache['bbs_forum_list'])) return $cache['bbs_forum_list']; $cache['bbs_forum_list'] = array(); foreach ($forumlist as $_fid => $_forum) { if ($_forum['type']) continue; $cache['bbs_forum_list'][$_fid] = $_forum; } return $cache['bbs_forum_list']; } // 导航显示的版块 function nav_list($forumlist) { if (empty($forumlist)) return NULL; static $cache = array(); if (isset($cache['nav_list'])) return $cache['nav_list']; foreach ($forumlist as $fid => $forum) { if (0 == $forum['nav_display']) { unset($forumlist[$fid]); } } return $cache['nav_list'] = $forumlist; } ?>netsh
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

netsh

旗下网站admin15浏览0评论

netsh

netsh

netsh - Windows XP上未找到以下命令错误(netsh - The following command was not found error on Windows XP)

当我运行以下netsh命令时:

netsh http add sslcert ipport = 0.0.0.0:44300 appid = {00112233-4455-6677-8899-AABBCCDDEEFF} certhash = dafebdb65ec7544218bf9a1794c6424 0207f63b9。

使用powershell或visual studio命令提示符我收到以下错误:

找不到以下命令:http add sslcert ipport = 0.0.0.0:44300 appid = {00112233-4455-6677-8899-AABBCCDDEEFF} certhash = dafebdb65ec7544218bf9a1794c6424 0207f63b9。

我目前正在配置一个WCF服务以使用SSL,并且已经从john sharp的“windows communcation foundation 4 - step-by-step”一书中得到了关注。

我有visual studio 2010 SP1并使用IIS Express。 我能想到的唯一区别是我运行的是Windows XP Professional而不是Windows 7

when i run the following netsh command :

netsh http add sslcert ipport=0.0.0.0:44300 appid ={00112233-4455-6677-8899-AABBCCDDEEFF} certhash=dafebdb65ec7544218bf9a1794c6424 0207f63b9.

using powershell or visual studio command prompt i get the following error:

The following command was not found: http add sslcert ipport=0.0.0.0:44300 appid ={00112233-4455-6677-8899-AABBCCDDEEFF} certhash=dafebdb65ec7544218bf9a1794c6424 0207f63b9.

I am currently configuring a WCF service to use SSL and have been following from the book 'windows communcation foundation 4 - step-by-step' by john sharp.

I have visual studio 2010 SP1 and using IIS Express. The only difference I could think of is that i am running Windows XP Professional instead of Windows 7

最满意答案

在Windows XP上, netsh无法正常工作。请使用httpcfg 。 您需要从Microsoft下载中心下载“WindowsXP-KB838079-SupportTools-ENU.exe”或从此处尝试。 更改:

netsh http add sslcert ipport=0.0.0.0:44300 appid ={00112233-4455-6677-8899-AABBCCDDEEFF} certhash=dafebdb65ec7544218bf9a1794c6424 0207f63b9

httpcfg set ssl -i 0.0.0.0:44300 -h dafebdb65ec7544218bf9a1794c64240207f63b9

这将创建SSL。 检查类型

httpcfg query ssl

在CMD 。

希望能帮助到你。

On Windows XP netsh will not work properly.Better use httpcfg. You will need to download "WindowsXP-KB838079-SupportTools-ENU.exe" from Microsoft Download Center or try from here. Change:

netsh http add sslcert ipport=0.0.0.0:44300 appid ={00112233-4455-6677-8899-AABBCCDDEEFF} certhash=dafebdb65ec7544218bf9a1794c6424 0207f63b9

To

httpcfg set ssl -i 0.0.0.0:44300 -h dafebdb65ec7544218bf9a1794c64240207f63b9

This will create the SSL. To check type

httpcfg query ssl

in CMD.

Hope it helps.

发布评论

评论列表(0)

  1. 暂无评论