<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Humker的天空 &#187; ecms</title>
	<atom:link href="http://www.humker.com/tag/ecms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.humker.com</link>
	<description>健康，快乐。</description>
	<lastBuildDate>Wed, 25 Jan 2012 12:16:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>帝国 ecms 想说爱你不容易</title>
		<link>http://www.humker.com/2009/03/14/ecms-loaded/</link>
		<comments>http://www.humker.com/2009/03/14/ecms-loaded/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 02:54:24 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=444</guid>
		<description><![CDATA[iis跑php太慢了，ecms的后台一到上网高峰就慢下来了，也许跟服务器上有多个论坛有关系。 dedecms就好一些，添加文章的脚本只是单个php文件，而ecms有好几个。 肯定不是线路问题，网通，电信，教育网都测试了，添加文章是很慢，大概3秒。 20090315更新 今天跟空间商沟通，问了一下他手头的服务器全是windows的，当时买他的空间主要就是认准了freebsd空间，另外用了他一年的免费空间，他服务不错。他所知道的iis跑php还可以，而且dz和pw发贴速度还可以。后来想一想是mysql不行，后台进个列表那个慢了，空间商说应该优化ecms，我想一个小小的站长，怎么能做WC做的事呢？ 还好最近忙，没有时间顾网站，网站没有更新，要更新频繁的话，真得急死。现在在找linux的空间，宁愿多花些钱，也不再用windows的空间，当然如果要跑asp就另当别论了。 自己现在用的windows合租服务器自己又续了一年费，自己这个傻，知道这样真是不续了，空间倒是不贵，但是对学生来说也是一笔不小的数目，看看现在的空间商能不能退款了，当然要等到找到合适的空间再同他说了。]]></description>
			<content:encoded><![CDATA[<p>iis跑php太慢了，ecms的后台一到上网高峰就慢下来了，也许跟服务器上有多个论坛有关系。</p>
<p>dedecms就好一些，添加文章的脚本只是单个php文件，而ecms有好几个。</p>
<p>肯定不是线路问题，网通，电信，教育网都测试了，添加文章是很慢，大概3秒。</p>
<p>20090315更新<br />
今天跟空间商沟通，问了一下他手头的服务器全是windows的，当时买他的空间主要就是认准了freebsd空间，另外用了他一年的免费空间，他服务不错。他所知道的iis跑php还可以，而且dz和pw发贴速度还可以。后来想一想是mysql不行，后台进个列表那个慢了，空间商说应该优化ecms，我想一个小小的站长，怎么能做WC做的事呢？</p>
<p>还好最近忙，没有时间顾网站，网站没有更新，要更新频繁的话，真得急死。现在在找linux的空间，宁愿多花些钱，也不再用windows的空间，当然如果要跑asp就另当别论了。</p>
<p>自己现在用的windows合租服务器自己又续了一年费，自己这个傻，知道这样真是不续了，空间倒是不贵，但是对学生来说也是一笔不小的数目，看看现在的空间商能不能退款了，当然要等到找到合适的空间再同他说了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2009/03/14/ecms-loaded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecms升级补充说明</title>
		<link>http://www.humker.com/2009/02/15/ecms-update-supplement/</link>
		<comments>http://www.humker.com/2009/02/15/ecms-update-supplement/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 08:13:19 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=427</guid>
		<description><![CDATA[ecms是比较健壮的cms系统，每一次版本升级都大同小异，以至于每一次的升级说明都一样，这其中有些东西是忽略的。 其一，升级应该推荐在本地自己搭建的服务器环境下进行，这样比较稳妥，以至于网站所在的服务器万一出问题，都不会受影响。 其二，升级是除了备份说明中的两个class文件外，还要备份t_funtions.php文件，这个里面有列表和内容的分页函数，如果更改过主题的，一般会改动。 20090219补充 其三，ecms的备份功能（也就是帝国备份王）在有些极个别的服务器环境下，由于mysql字符集的原因，会出现乱码，一定要看一下备份的php文件中文是不是中文字符。]]></description>
			<content:encoded><![CDATA[<p>ecms是比较健壮的cms系统，每一次版本升级都大同小异，以至于每一次的升级说明都一样，这其中有些东西是忽略的。<br />
其一，升级应该推荐在本地自己搭建的服务器环境下进行，这样比较稳妥，以至于网站所在的服务器万一出问题，都不会受影响。<br />
其二，升级是除了备份说明中的两个class文件外，还要备份t_funtions.php文件，这个里面有列表和内容的分页函数，如果更改过主题的，一般会改动。<br />
20090219补充<br />
其三，ecms的备份功能（也就是帝国备份王）在有些极个别的服务器环境下，由于mysql字符集的原因，会出现乱码，一定要看一下备份的php文件中文是不是中文字符。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2009/02/15/ecms-update-supplement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecms需要解决的一些问题</title>
		<link>http://www.humker.com/2008/12/22/ecms%e9%9c%80%e8%a6%81%e8%a7%a3%e5%86%b3%e7%9a%84%e4%b8%80%e4%ba%9b%e9%97%ae%e9%a2%98/</link>
		<comments>http://www.humker.com/2008/12/22/ecms%e9%9c%80%e8%a6%81%e8%a7%a3%e5%86%b3%e7%9a%84%e4%b8%80%e4%ba%9b%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 02:48:58 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=406</guid>
		<description><![CDATA[最近几天仔细的对比了dedecms5.3和ecms5.1，ecms有些小问题需要解决，有些是历史性遗留问题，当然有些是无关紧要的。 下面列出来： 1，官方没有提供一套默认的div+css的模板； 2，后台编辑器的问题，我感觉修修补补不如换个fck或者tinymce； 3，在线裁剪缩略图； 4，支付宝的集成； 5，dedecms那个单页面采集功能，感觉很不错； 6，ecms新版本的发布，没有对系统模型做过多的更改，大家期待的黄页和问吧模型没有出现，官方提出的五个亮点就一个灵动标签有点价值，对做风格的人来说； 7，灵动标签有些中间品的意思，不能用if等判断语句，，wm应该出个详细的教程，坛子里出现了if的例子，不像phpcms； 8，一套兼容firefox和ie的后台； 9，动态页的交互实际不是真正的交互，ecms出生后就存在这个问题； &#8230;&#8230; 遇到了在写出来，这些问题解决了，ecms确实可以成为企业级的cms。]]></description>
			<content:encoded><![CDATA[<p>最近几天仔细的对比了dedecms5.3和ecms5.1，ecms有些小问题需要解决，有些是历史性遗留问题，当然有些是无关紧要的。</p>
<p>下面列出来：<br />
1，官方没有提供一套默认的div+css的模板；<br />
2，后台编辑器的问题，我感觉修修补补不如换个fck或者tinymce；<br />
3，在线裁剪缩略图；<br />
4，支付宝的集成；<br />
5，dedecms那个单页面采集功能，感觉很不错；<br />
6，ecms新版本的发布，没有对系统模型做过多的更改，大家期待的黄页和问吧模型没有出现，官方提出的五个亮点就一个灵动标签有点价值，对做风格的人来说；<br />
7，灵动标签有些中间品的意思，<del datetime="2008-12-23T04:58:39+00:00">不能用if等判断语句，</del>，wm应该出个详细的教程，坛子里出现了if的例子，不像phpcms；<br />
8，一套兼容firefox和ie的后台；<br />
9，动态页的交互实际不是真正的交互，ecms出生后就存在这个问题；<br />
&#8230;&#8230;<br />
遇到了在写出来，这些问题解决了，ecms确实可以成为企业级的cms。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/12/22/ecms%e9%9c%80%e8%a6%81%e8%a7%a3%e5%86%b3%e7%9a%84%e4%b8%80%e4%ba%9b%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ecms 5.1 发布的意义</title>
		<link>http://www.humker.com/2008/11/30/ecms-51-meaning/</link>
		<comments>http://www.humker.com/2008/11/30/ecms-51-meaning/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 14:54:53 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=284</guid>
		<description><![CDATA[ecms 5.1的内测版已经发布了，但是自己所在的用户组权限不够，下载不了。自己做了几年网站，用过不少的整站程序，对于ecms的新版本不是太感冒了。看了WM论坛中列出的新特性好像只有五条，ecms的核心没有改变，以往带的那几个模型也不会有太多变化，有些模型有软肋的，WM没有做太多修改。许过人对ecms 5.1版本抱有很大希望，但是一个道理是，希望越大，失望就是越大。ecms的5.1版本真正意义在于开源，而不在于新功能的提出。 开源的大门敞开了，对ecms是机遇也是挑战。 12月2日补充： 下午测试了dedecms5.3和ecms5.1，感觉两个差的很多。功能上dede占上风，后台看起来相对顺眼一些，当然也许是自己用ecms时间太长了，有些审美疲劳。ecms5.1的噱头主要在开源上，可是现在许多人已经不再看重这个开不开源的问题，而是只看功能（这个功能是基本功能，比如支付接口之类的，支付宝dede有，而ecms没有，这就产生了落差）；如果ecms开源的新闻发布在两年前，不知道现在php类cms会是何种境地。有些东西错过了，想赶回来不是太容易。 现在在等dede5.3的稳定版的发布。]]></description>
			<content:encoded><![CDATA[<p>ecms 5.1的内测版已经发布了，但是自己所在的用户组权限不够，下载不了。自己做了几年网站，用过不少的整站程序，对于ecms的新版本不是太感冒了。看了WM论坛中列出的新特性好像只有五条，ecms的核心没有改变，以往带的那几个模型也不会有太多变化，有些模型有软肋的，WM没有做太多修改。许过人对ecms 5.1版本抱有很大希望，但是一个道理是，希望越大，失望就是越大。ecms的5.1版本真正意义在于开源，而不在于新功能的提出。<br />
开源的大门敞开了，对ecms是机遇也是挑战。</p>
<p>12月2日补充：<br />
下午测试了dedecms5.3和ecms5.1，感觉两个差的很多。功能上dede占上风，后台看起来相对顺眼一些，当然也许是自己用ecms时间太长了，有些审美疲劳。ecms5.1的噱头主要在开源上，可是现在许多人已经不再看重这个开不开源的问题，而是只看功能（这个功能是基本功能，比如支付接口之类的，支付宝dede有，而ecms没有，这就产生了落差）；如果ecms开源的新闻发布在两年前，不知道现在php类cms会是何种境地。有些东西错过了，想赶回来不是太容易。<br />
现在在等dede5.3的稳定版的发布。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/11/30/ecms-51-meaning/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ecms seo的思考</title>
		<link>http://www.humker.com/2008/11/08/ecms-seo/</link>
		<comments>http://www.humker.com/2008/11/08/ecms-seo/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 15:43:17 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=270</guid>
		<description><![CDATA[自己用了一年多的ecms，从4.0到4.6，功能可能是最好的，而且也是最稳定和安全的。 就是有一点，它不开源，而且每个页面都有一个类似于 这样的尾巴。 这个尾巴按照搜索引擎的协议，他们是忽略这个注释的。 google确实是这样，而baidu就自私一些，这是标记一个网站的很好手段，有这个标记的就降权。 只是我自己的体验，不代表一般现象。 而且现在的4.7，只有首页和栏目封面有这个尾巴了，情况会好许多。 老帖，自己百度hi上的，转过来了。]]></description>
			<content:encoded><![CDATA[<p>自己用了一年多的ecms，从4.0到4.6，功能可能是最好的，而且也是最稳定和安全的。</p>
<p>就是有一点，它不开源，而且每个页面都有一个类似于</p>
<p><!--Published Date:2007-12-26 12:53:24   Powered by phome.net,Products:EmpireCMS4.6 Free--></p>
<p>这样的尾巴。</p>
<p>这个尾巴按照搜索引擎的协议，他们是忽略这个注释的。</p>
<p>google确实是这样，而baidu就自私一些，这是标记一个网站的很好手段，有这个标记的就降权。</p>
<p>只是我自己的体验，不代表一般现象。</p>
<p>而且现在的4.7，只有首页和栏目封面有这个尾巴了，情况会好许多。</p>
<p>老帖，自己百度hi上的，转过来了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/11/08/ecms-seo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>评价 ecms 5.1 开源新闻</title>
		<link>http://www.humker.com/2008/10/15/ecms-51-open-source/</link>
		<comments>http://www.humker.com/2008/10/15/ecms-51-open-source/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 15:09:28 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=220</guid>
		<description><![CDATA[今天上午等到了ecms关于12月8日发布版本5.1，并同时宣布开源。 感觉这个新闻不太厚道，WM也开始不务实了，有些掉人的胃口。10月15日这天喜欢ecms的人等了好几天，结果只是一个消息，没有任何实质性的东西。再者，作为一个商人，也应该讲一些策略。ecms稳定，一年也就开发两个版本，ecms的老手无所谓；新手就有问题了。自己感觉今天宣布ecms5.0开源，在附带消息12月8日发布新版，这样可以达到一个很好的宣传效果，可以给dedecms和phpcms很多的压力。有时候，连番攻击比重磅炸弹效果好。]]></description>
			<content:encoded><![CDATA[<p>今天上午等到了ecms关于12月8日发布版本5.1，并同时宣布开源。</p>
<p>感觉这个新闻不太厚道，WM也开始不务实了，有些掉人的胃口。10月15日这天喜欢ecms的人等了好几天，结果只是一个消息，没有任何实质性的东西。再者，作为一个商人，也应该讲一些策略。ecms稳定，一年也就开发两个版本，ecms的老手无所谓；新手就有问题了。自己感觉今天宣布ecms5.0开源，在附带消息12月8日发布新版，这样可以达到一个很好的宣传效果，可以给dedecms和phpcms很多的压力。有时候，连番攻击比重磅炸弹效果好。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/10/15/ecms-51-open-source/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ecms5.0 beta 试用感受</title>
		<link>http://www.humker.com/2008/05/27/ecms5-beta-thinking/</link>
		<comments>http://www.humker.com/2008/05/27/ecms5-beta-thinking/#comments</comments>
		<pubDate>Tue, 27 May 2008 11:26:17 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=77</guid>
		<description><![CDATA[昨天上午发布的ecms5.0 beta 感觉没有什么新意。 新增的功能列了50多条http://bbs.phome.net/showthread-39-51975-0.html这些功能绝大多数体现了细节的调整，可用户实际能用到的实质性功能很少。这里列出几个，多了不说。 7、字段关联页面新增增加信息快捷菜单。方便增加需要选择的项。8、相关链接标签修复，排除当前信息ID。25、管理栏目新增链接增加信息快捷链接。方便45、新闻模型及文章模型内置DIGG字段，不需要手动增加。 这些功能有没有用，WM他不知道，因为他不是做网站的。前天给一个同学做了一个网站，做模板累死人，一门的刷新，刷的难受，得出一个结论给别人做网站少用帝国，技术支持这一块就麻烦，自己做站选帝国是上程之选，好处不多说了，有做广告的嫌疑。 下面列举一些需要修改但是一直没有改的东西 用户注册找回密码编辑器digg跨域计划任务，4.7的形同虚设，定时更新还要开着后台行业站需要的模型 功能列表的头一段用红字标出 V5.0的所有版本(包括免费版)均不再有限制，开放管理员个数限制、模型个数限制、系统模型可自定义安装。免费版去除源码标识。 功能限制不限制不重要，关键是否开源。关于开源的问题，WM一直不正面回答。当然解除功能限制也有可能是迈向开源的第一步。这个版本至多只能叫4.9，没有质的变化。 WM如果是做网站的就好了，功能过细的修改不是站长所需要，需要的是增加一些好的默认模型之类的，系统默认模型这一块还是原来默认的那些；模板div+css还是没有做出来，还是table的。cms程序作者应该考虑自己的用户群，做出如何发展的决定，个性的固执会导致悖逆。]]></description>
			<content:encoded><![CDATA[<p>昨天上午发布的ecms5.0 beta 感觉没有什么新意。</p>
<p>新增的功能列了50多条<br /><a href="http://bbs.phome.net/showthread-39-51975-0.html">http://bbs.phome.net/showthread-39-51975-0.html</a><br />这些功能绝大多数体现了细节的调整，可用户实际能用到的实质性功能很少。这里列出几个，多了不说。</p>
<blockquote><p>7、字段关联页面新增增加信息快捷菜单。方便增加需要选择的项。<br />8、相关链接标签修复，排除当前信息ID。<br />25、管理栏目新增链接增加信息快捷链接。方便<br />45、新闻模型及文章模型内置DIGG字段，不需要手动增加。</p>
</blockquote>
<p>这些功能有没有用，WM他不知道，因为他不是做网站的。前天给一个同学做了一个网站，做模板累死人，一门的刷新，刷的难受，得出一个结论给别人做网站少用帝国，技术支持这一块就麻烦，自己做站选帝国是上程之选，好处不多说了，有做广告的嫌疑。</p>
<p>下面列举一些需要修改但是一直没有改的东西</p>
<blockquote><p>用户注册找回密码<br />编辑器<br />digg跨域<br />计划任务，4.7的形同虚设，定时更新还要开着后台<br />行业站需要的模型</p>
</blockquote>
<p>功能列表的头一段用红字标出</p>
<blockquote><p>V5.0的所有版本(包括免费版)均不再有限制，开放管理员个数限制、模型个数限制、系统模型可自定义安装。免费版去除源码标识。</p>
</blockquote>
<p>功能限制不限制不重要，关键是否开源。关于开源的问题，WM一直不正面回答。当然解除功能限制也有可能是迈向开源的第一步。这个版本至多只能叫4.9，没有质的变化。</p>
<p>WM如果是做网站的就好了，功能过细的修改不是站长所需要，需要的是增加一些好的默认模型之类的，系统默认模型这一块还是原来默认的那些；模板div+css还是没有做出来，还是table的。cms程序作者应该考虑自己的用户群，做出如何发展的决定，个性的固执会导致悖逆。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/05/27/ecms5-beta-thinking/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>帝国后台批量添加附件的方法</title>
		<link>http://www.humker.com/2008/05/11/ecms-insertfile/</link>
		<comments>http://www.humker.com/2008/05/11/ecms-insertfile/#comments</comments>
		<pubDate>Sun, 11 May 2008 23:54:04 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=70</guid>
		<description><![CDATA[注意：这个方法只是让上传的附件入库到enewsfile数据表，主要处理上传大文件的问题，小文件不用用它。&#160; 修改enews.php //删除目录文件elseif($enews==&#34;DelPathFile&#34;){&#160; &#160; &#160; &#160; $filename=$_POST[&#39;filename&#39;];&#160; &#160; &#160; &#160; DelPathFile($filename,$logininid,$loginin);} 后插入 //插入文件名到数据库elseif($enews==&#34;InsertPathFile&#34;){&#160; &#160; &#160; &#160; $filename=$_POST[&#39;filename&#39;];&#160; &#160; &#160; &#160; InsertPathFile($filename,$logininid,$loginin,$classid);} 查找&#8220;EditPrintTemp,DelPathFile,&#8221;在他后面加&#8220;InsertPathFile,&#8221; 在userfun.php文件中加入 function insertpathfile( $filename, $userid, $username,$classid,$xfile){&#160;&#160;&#160; global $empire;&#160;&#160;&#160; global $dbtbpre;&#160;&#160;&#160; checklevel( $userid, $username, $classid, &#34;file&#34; );&#160;&#160;&#160; $count = count( $filename );&#160;&#160;&#160; if ( empty( $count ) )&#160;&#160;&#160; {&#160;&#160;&#160;&#160;&#160;&#160;&#160; printerror( &#34;NotFileid&#34;, &#34;history.go(-1)&#34; );&#160;&#160;&#160; }&#160;&#160;&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>注意：这个方法只是让上传的附件入库到enewsfile数据表，主要处理上传大文件的问题，小文件不用用它。&nbsp;</p>
<p>修改enews.php</p>
<blockquote><p>//删除目录文件<br />elseif($enews==&quot;DelPathFile&quot;)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; $filename=$_POST[&#39;filename&#39;];<br />&nbsp; &nbsp; &nbsp; &nbsp; DelPathFile($filename,$logininid,$loginin);<br />}</p>
</blockquote>
<p>后插入</p>
<blockquote><p>//插入文件名到数据库<br />elseif($enews==&quot;InsertPathFile&quot;)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; $filename=$_POST[&#39;filename&#39;];<br />&nbsp; &nbsp; &nbsp; &nbsp; InsertPathFile($filename,$logininid,$loginin,$classid);<br />}</p>
</blockquote>
<p>查找&ldquo;EditPrintTemp,DelPathFile,&rdquo;在他后面加&ldquo;InsertPathFile,&rdquo;</p>
<p>在userfun.php文件中加入</p>
<blockquote><p>function insertpathfile( $filename, $userid, $username,$classid,$xfile)<br />{<br />&nbsp;&nbsp;&nbsp; global $empire;<br />&nbsp;&nbsp;&nbsp; global $dbtbpre;<br />&nbsp;&nbsp;&nbsp; checklevel( $userid, $username, $classid, &quot;file&quot; );<br />&nbsp;&nbsp;&nbsp; $count = count( $filename );<br />&nbsp;&nbsp;&nbsp; if ( empty( $count ) )<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printerror( &quot;NotFileid&quot;, &quot;history.go(-1)&quot; );<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; $i = 0;<br />&nbsp;&nbsp;&nbsp; for ( ; $i &lt; $count; ++$i )<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( strstr( $filename[$i], &quot;..&quot; ) )<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dfile = returnpathfile( $filename[$i] );&nbsp;<br />&nbsp;&nbsp;&nbsp; $sql = $empire-&gt;query( &quot;INSERT INTO `{$dbtbpre}enewsfile` VALUES (NULL,&#39;$dfile&#39;, 315341, &#39;$xfile&#39;, &#39;admin&#39;, &#39;2007-12-12 15:48:59&#39;,&#39;$classid&#39;,&#39;$dfile&#39;, 1, 0, 17, 0, 1);&quot; );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; insert_dolog( &quot;&quot; );<br />&nbsp;&nbsp;&nbsp; printerror( &quot;InsertDataBaseFileSuccess&quot;, $_SERVER[&#39;HTTP_REFERER&#39;] );<br />}</p>
</blockquote>
<p>将/admin/file/FilePath.php的文件结尾部分对照修改为下面的东西</p>
<blockquote><p>&lt;td height=&quot;25&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;enews&quot; id=&quot;enews&quot; value=&quot;InsertPathFile&quot;&gt;&lt;/td&gt;<br />&nbsp;&nbsp; &lt;td &gt;&lt;input type=&quot;submit&quot; name=&quot;enews&quot; id=&quot;enews&quot; value=&quot;DelPathFile&quot;&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td height=&quot;25&quot;&gt;&lt;select name=&quot;classid&quot; id=&quot;classid&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;option value=&quot;0&quot;&gt;所有栏目&lt;/option&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;?=$do_class?&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/select&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;xfile&quot; name=&quot;xfile&quot; value=&quot;文件路径&quot; /&gt;&lt;/td&gt;</p>
</blockquote>
<p>开头部分添加</p>
<blockquote><p>include(&quot;../../class/userfun.php&quot;);<br />$fcjsfile=&#39;../../data/fc/cmsclass.js&#39;;<br />$do_class=GetFcfiletext($fcjsfile);</p>
</blockquote>
<p>删除掉</p>
<blockquote><p>&lt;input name=&quot;enews&quot; type=&quot;hidden&quot; id=&quot;enews&quot; value=&quot;DelPathFile&quot;&gt;</p>
</blockquote>
<p>在e\data\language\gb\pub\message.php中添加</p>
<blockquote><p>$message_r[&#39;InsertDataBaseFileSuccess&#39;]=&quot;文章已经插入到数据库&quot;;</p>
</blockquote>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/05/11/ecms-insertfile/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ecms网站地图的修改div+css</title>
		<link>http://www.humker.com/2008/05/01/ecms-sitemap-css/</link>
		<comments>http://www.humker.com/2008/05/01/ecms-sitemap-css/#comments</comments>
		<pubDate>Thu, 01 May 2008 12:04:01 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=64</guid>
		<description><![CDATA[&#160;function sys_DivMap($classid,$line,$bcolor,$color){&#160;global $empire,$class_r,$dbtbpre;&#160;$sql=$empire-&#62;query(&#34;select classid,classname,sonclass,islast,tbname from {$dbtbpre}enewsclass where bclassid=&#39;$classid&#39; and showclass=0 order by myorder,classid&#34;);&#160;while($r=$empire-&#62;fetch($sql))&#160;{&#160;&#160;&#160;&#160;//栏目链接&#160;&#160;$classurl=sys_ReturnBqClassname($r,9);&#160;&#160;$text.=&#34;&#60;li&#62;&#60;a href=\&#34;&#34;.$classurl.&#34;\&#34; target=\&#34;_blank\&#34;&#62;&#34;.$r[classname].&#34;&#60;/a&#62;&#34;.$newsdata;&#160;&#160;$sql1=$empire-&#62;query(&#34;select classname,classid,islast,sonclass,tbname from {$dbtbpre}enewsclass where bclassid=&#39;$r[classid]&#39; and showclass=0 order by myorder,classid&#34;);&#160;&#160;$i=0;&#160;&#160;$class_text=&#34;&#34;;&#160;&#160;while($r1=$empire-&#62;fetch($sql1))&#160;&#160;{&#160;&#160;&#160;&#160;&#160;&#160;//栏目链接&#160;&#160;&#160;$classurl=sys_ReturnBqClassname($r1,9);&#160;&#160;&#160;$i++;&#160;&#160;&#160;if(($i-1)%$line==0&#124;&#124;$i==1)&#160;&#160;&#160;{$class_text.=&#34;&#34;;}&#160;&#160;&#160;$class_text.=&#34;&#60;li&#62;&#60;a href=\&#34;&#34;.$classurl.&#34;\&#34; target=\&#34;_blank\&#34;&#62;&#34;.$r1[classname].&#34;&#60;/a&#62;&#34;.$newsdata.&#34;&#60;/li&#62;&#34;;&#160;&#160;&#160;//分割&#160;&#160;&#160;if($i%$line==0)&#160;&#160;&#160;{$class_text.=&#34;&#34;;}&#160;&#160;}&#160;&#160;&#160;&#160;if($i&#60;&#62;0)&#160;&#160;{&#160;&#160;&#160;$table=&#34;&#60;ul&#62;&#34;;&#160;&#160;&#160;$table1=&#34;&#60;/ul&#62;&#34;;&#160;&#160;&#160;$ys=$line-$i%$line;&#160;&#160;&#160;$p=0;&#160;&#160;&#160;for($j=0;$j&#60;$ys&#38;&#38;$ys!=$line;$j++)&#160;&#160;&#160;{&#160;&#160;&#160;&#160;$p=1;&#160;&#160;&#160;&#160;$class_text.=&#34;&#34;;&#160;&#160;&#160;}&#160;&#160;&#160;if($p==1)&#160;&#160;&#160;{&#160;&#160;&#160;&#160;$class_text.=&#34;&#34;;&#160;&#160;&#160;}&#160;&#160;}&#160;&#160;$text.=$table.$class_text.$table1.&#34;&#60;/li&#62;&#34;;&#160;}&#160;echo $text;} ecms地图标签用div+css实现，留作修改之用配合css和js可以实现下拉菜单]]></description>
			<content:encoded><![CDATA[<blockquote><p>&nbsp;function sys_DivMap($classid,$line,$bcolor,$color){<br />&nbsp;global $empire,$class_r,$dbtbpre;<br />&nbsp;$sql=$empire-&gt;query(&quot;select classid,classname,sonclass,islast,tbname from {$dbtbpre}enewsclass where bclassid=&#39;$classid&#39; and showclass=0 order by myorder,classid&quot;);<br />&nbsp;while($r=$empire-&gt;fetch($sql))<br />&nbsp;{<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;//栏目链接<br />&nbsp;&nbsp;$classurl=sys_ReturnBqClassname($r,9);<br />&nbsp;&nbsp;$text.=&quot;&lt;li&gt;&lt;a href=\&quot;&quot;.$classurl.&quot;\&quot; target=\&quot;_blank\&quot;&gt;&quot;.$r[classname].&quot;&lt;/a&gt;&quot;.$newsdata;<br />&nbsp;&nbsp;$sql1=$empire-&gt;query(&quot;select classname,classid,islast,sonclass,tbname from {$dbtbpre}enewsclass where bclassid=&#39;$r[classid]&#39; and showclass=0 order by myorder,classid&quot;);<br />&nbsp;&nbsp;$i=0;<br />&nbsp;&nbsp;$class_text=&quot;&quot;;<br />&nbsp;&nbsp;while($r1=$empire-&gt;fetch($sql1))<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;//栏目链接<br />&nbsp;&nbsp;&nbsp;$classurl=sys_ReturnBqClassname($r1,9);<br />&nbsp;&nbsp;&nbsp;$i++;<br />&nbsp;&nbsp;&nbsp;if(($i-1)%$line==0||$i==1)<br />&nbsp;&nbsp;&nbsp;{$class_text.=&quot;&quot;;}<br />&nbsp;&nbsp;&nbsp;$class_text.=&quot;&lt;li&gt;&lt;a href=\&quot;&quot;.$classurl.&quot;\&quot; target=\&quot;_blank\&quot;&gt;&quot;.$r1[classname].&quot;&lt;/a&gt;&quot;.$newsdata.&quot;&lt;/li&gt;&quot;;<br />&nbsp;&nbsp;&nbsp;//分割<br />&nbsp;&nbsp;&nbsp;if($i%$line==0)<br />&nbsp;&nbsp;&nbsp;{$class_text.=&quot;&quot;;}<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;if($i&lt;&gt;0)<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;$table=&quot;&lt;ul&gt;&quot;;<br />&nbsp;&nbsp;&nbsp;$table1=&quot;&lt;/ul&gt;&quot;;<br />&nbsp;&nbsp;&nbsp;$ys=$line-$i%$line;<br />&nbsp;&nbsp;&nbsp;$p=0;<br />&nbsp;&nbsp;&nbsp;for($j=0;$j&lt;$ys&amp;&amp;$ys!=$line;$j++)<br />&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;$p=1;<br />&nbsp;&nbsp;&nbsp;&nbsp;$class_text.=&quot;&quot;;<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;if($p==1)<br />&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;$class_text.=&quot;&quot;;<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;$text.=$table.$class_text.$table1.&quot;&lt;/li&gt;&quot;;<br />&nbsp;}<br />&nbsp;echo $text;<br />}</p>
</blockquote>
<p>ecms地图标签用div+css实现，留作修改之用<br />配合css和js可以实现下拉菜单</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/05/01/ecms-sitemap-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecms远程保存图片的bug</title>
		<link>http://www.humker.com/2008/04/24/ecms-save-image/</link>
		<comments>http://www.humker.com/2008/04/24/ecms-save-image/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 12:59:08 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=60</guid>
		<description><![CDATA[使用ecms到现在，唯独它的远程保存图片有问题，粘贴的好好的，不管图片多少，总是有内容页为空的现象出现，而其他的字段都有，今天没事找了一下原因，在config.php中的一行有这样一个全局变量，默认是1，将它改为0，无论多少图片我都可以保存。这究竟算不算bug不好说。 $saveurlimgclearurl=0; //远程保存图片自动去除图片的链接(0为保留,1为去除) 再高明的程序员也有问题，dz以前遇到一个字符串转义的bug，自己出于对dz的信任，没有改，后来一个朋友告诉我了原因，cache问题就没有错了。 下面是mysql5下ecms常出现的错误 在采集的时候 MySQL server has gone away 怎么解决啊~~ mysql 5.0的`~~ 以前用mysql4.0没出现过问题..  MySQL server has gone away insert into phome_enewsfile(filename,filesize,adduser,path,filetime,classid,no,type,id,cjid,onclick) values(&#8217;04f1ab9ab9fcc04da6658f1c63f9b987.jpg&#8217;,61377,&#8217;ozchinese&#8217;,&#8217;2008-05-08&#8242;,&#8217;2008-05-08 12:17:33&#8242;,34,&#8217;[URL]04f1ab9ab9fcc04da6658f1c63f9b987.jpg&#8217;,1,0,6168,0); 尝试过把max_allowed_packet改到16MB都没用~~~wait_time_out也加大数了.都没办法. 这个可能和这个有关系]]></description>
			<content:encoded><![CDATA[<p>使用ecms到现在，唯独它的远程保存图片有问题，粘贴的好好的，不管图片多少，总是有内容页为空的现象出现，而其他的字段都有，今天没事找了一下原因，在config.php中的一行有这样一个全局变量，默认是1，将它改为0，无论多少图片我都可以保存。这究竟算不算bug不好说。</p>
<blockquote><p>$saveurlimgclearurl=0; //远程保存图片自动去除图片的链接(0为保留,1为去除)</p></blockquote>
<p>再高明的程序员也有问题，dz以前遇到一个字符串转义的bug，自己出于对dz的信任，没有改，后来一个朋友告诉我了原因，cache问题就没有错了。</p>
<p>下面是mysql5下ecms常出现的错误<br />
在采集的时候 MySQL server has gone away<br />
怎么解决啊~~</p>
<p>mysql 5.0的`~~</p>
<p>以前用mysql4.0没出现过问题.. </p>
<p>MySQL server has gone away</p>
<p>insert into phome_enewsfile(filename,filesize,adduser,path,filetime,classid,no,type,id,cjid,onclick) values(&#8217;04f1ab9ab9fcc04da6658f1c63f9b987.jpg&#8217;,61377,&#8217;ozchinese&#8217;,&#8217;2008-05-08&#8242;,&#8217;2008-05-08 12:17:33&#8242;,34,&#8217;[URL]04f1ab9ab9fcc04da6658f1c63f9b987.jpg&#8217;,1,0,6168,0);</p>
<p>尝试过把max_allowed_packet改到16MB都没用~~~wait_time_out也加大数了.都没办法.<br />
这个可能和这个有关系</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/04/24/ecms-save-image/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

