<?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>清风无影</title>
	<atom:link href="http://imvoo.com/feed" rel="self" type="application/rss+xml" />
	<link>http://imvoo.com</link>
	<description>移动网络化生活，关注智能手机、网络、cms</description>
	<lastBuildDate>Sat, 25 Feb 2012 16:16:58 +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>联通营业厅里居然不能刷卡</title>
		<link>http://imvoo.com/archives/619.html</link>
		<comments>http://imvoo.com/archives/619.html#comments</comments>
		<pubDate>Sat, 25 Feb 2012 16:16:58 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[难说难道]]></category>
		<category><![CDATA[联通]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=619</guid>
		<description><![CDATA[联通营业厅里居然不能刷卡]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>昨天去办小米手机的时候，发票都打出来了，我递给她卡之后，她居然说不能刷银联卡。由于还有几分钟就要下班了，害得我跑着出去取钱，那么凉的天，累的我满头大汗，因为抱着小孩跑的。联通的思维是不是应该改一下啊，像办iPhone手机的人至少要4900元吧，还有6000多的，难道让他们都装着现金去？5年前，如果没有pos机的话还可以理解，现在银行卡、信用卡这么普遍的情况下不能刷卡，这至少说明了他们的服务真的不到位啊！（不知道其他地区是什么样子，这边的移动公司貌似也没有）。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/398.html" title="联通定制未配置Wi-Fi 3G版iPhone开始量产">联通定制未配置Wi-Fi 3G版iPhone开始量产</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/619.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pptp及l2tp安装教程篇一安装pptp</title>
		<link>http://imvoo.com/archives/615.html</link>
		<comments>http://imvoo.com/archives/615.html#comments</comments>
		<pubDate>Wed, 22 Feb 2012 12:00:23 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网络日志]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[l2tp]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=615</guid>
		<description><![CDATA[网上已经有了pptp和l2tp的一键安装包，虽然很方便，但是大部分的网上教程和安装包都是需要编译的，其实合理利用各种各样的源]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>网上已经有了pptp和l2tp的一键安装包，虽然很方便，但是大部分的网上教程和安装包都是需要编译的，其实合理利用各种各样的源，可以省却不少功夫，安装的时间也比编译的快了很多。</p>
<p><span id="more-615"></span></p>
<p>该篇文章是安装pptp，下一篇将写安装l2tp。这实际是是根据记忆写的，可能在步骤或配置上会有遗漏，争取下次用虚拟机自己动手安装来试试，如有错误，请指教。</p>
<p>1、首先要安装pptp的源，以Centos 6为例：</p>
<pre class="brush: bash; title: 代码; notranslate">

yum update

yum install ppp iptables

rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm

yum install pptpd
</pre>
<p>这时会显示：Package pptpd-1.3.4-2.el6.x86_64 already installed and latest version</p>
<p>2、/etc/pptpd.conf的内容是这样的，参照这里修改文件即可，千万不要覆盖了，因为原文件就是一个教你怎么配置的教程啊，看网上的一些教程上来就是rm 然后touch，再写入教程上提供的配置，这样完全没有必要，还少了一个学习的地方。</p>
<pre class="brush: bash; title: 代码; notranslate">

option /etc/ppp/options.pptpd

localip 192.168.10.2

remoteip 192.168.10.234-238,192.168.10.245

1

3、/etc/ppp/options.pptpd的配置

1

name pptpd

refuse-pap
refuse-chap
refuse-mschap

require-mschap-v2

require-mppe-128

ms-dns 8.8.8.8
ms-dns 8.8.4.4

proxyarp

novj
novjccomp

nologfd
</pre>
<p>我记得不错的话，这个配置文件里，只需要想改两个dns服务器即可，这里用的是Google的DNS服务器。</p>
<p>4、离成功快了，现在给pptpd加一个帐号吧，vim打开/etc/ppp/chap-secrets，加上</p>
<pre class="brush: bash; title: 代码; notranslate">

test   pptpd   test12345        *
</pre>
<div>意思是，用户名为test，用的是pptpd服务，密码是test12345，不限定IP地址为*</div>
<div>5、用户名、密码都有了，现在是不是可以连接了？答案是肯定的，如果在确认你的防火墙打开了pptp端口的情况下，这时就可以连接pptp服务器了，连接之前记得重启一下service pptpd restart来让配置生效。</div>
<div>但是这时虽然可以连接，却不能上网，这是因为我们还没有设置转发，现在只能上内网（用来上公司内部网的，到这里应该就可以了吧？）</div>
<div>但是，因为众所周知的原因，我们搭建这个东东，并不是用来上内网的，所以，下面让我们继续设置吧。</div>
<div>6、编辑/etc/sysconfig/iptables，网上看的iptables 的相关文档，都不推荐这样子来设定iptables</div>
<div>
<pre class="brush: bash; title: 代码; notranslate">&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
*nat
 <img src='http://imvoo.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> REROUTING ACCEPT [6:312]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
 <img src='http://imvoo.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> OSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 192.168.10.0/24 -o eth0 -j MASQUERADE
COMMIT

;在filter段里加入下面的

-A INPUT -p tcp --dport 1723 -j ACCEPT
-A INPUT -p tcp --dport 47 -j ACCEPT
-A INPUT -p gre -j ACCEPT
</pre>
<p>7、不直接编辑的情况下</p>
<pre class="brush: bash; title: 代码; notranslate">

iptables -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j MASQUERADE
</pre>
<p>8、注意开启IP地址的转发功能</p>
<pre class="brush: bash; title: 代码; notranslate">

echo 1 &gt; /proc/sys/net/ipv4/ip_forward
</pre>
<p>&nbsp;</p>
<p>要点：</p>
<p>1、iptables防火墙的设置</p>
<p>2、IP的转发</p>
<p>&nbsp;</p>
<p>参考：</p>
<p>1、http://www.diahosting.com/dload/pptpd.sh</p>
<p>2、http://phorum.study-area.org/index.php?topic=16243.0</p>
</div>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/612.html" title="yum安装带mpm-itk的apache">yum安装带mpm-itk的apache</a></li><li><a href="http://imvoo.com/archives/444.html" title="CentOS下LNMP环境的建立">CentOS下LNMP环境的建立</a></li><li><a href="http://imvoo.com/archives/410.html" title="Nginx在Centos5下的service启动脚本">Nginx在Centos5下的service启动脚本</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/615.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yum安装带mpm-itk的apache</title>
		<link>http://imvoo.com/archives/612.html</link>
		<comments>http://imvoo.com/archives/612.html#comments</comments>
		<pubDate>Wed, 22 Feb 2012 01:27:01 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网络日志]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[mpm-itk]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=612</guid>
		<description><![CDATA[上一篇关于mpm-itk的文章是我自己编译的文件，后来才发现在网上有一个源编译的就是apache2 with mpm-itk]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>上一篇关于mpm-itk的文章是我自己编译的文件，后来才发现在网上有一个源编译的就是apache2 with mpm-itk，这样就更省事了，这个源的更新还能跟的上apache2的版本，在这里分布一下。</p>
<p><span id="more-612"></span></p>
<p>1、首先要创建repo文件</p>
<p>第一步的说明，都可以在<a href="http://centos.alt.ru/repository/centos" target="_blank">http://centos.alt.ru/repository/centos</a>/readme.txt中找到。</p>
<p>下面以centos6为例</p>
<pre class="brush: bash; title: 代码; notranslate">

[CentALT]
name=CentALT Packages for Enterprise Linux 6 - $basearch
baseurl=http://centos.alt.ru/repository/centos/6/$basearch/
enabled=1
gpgcheck=0
</pre>
<p>最好将enabled=1改成0，因为该源中还有一些其它软件，在update时会有冲突。</p>
<p>或者</p>
<pre class="brush: bash; title: 代码; notranslate">

for i386
rpm -ihv http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm

for x86_64
rpm -ihv http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
</pre>
<p>同样更改enabled=0。</p>
<p>2、安装httpd apache2</p>
<p>在服务器中还没有安装httpd时</p>
<pre class="brush: bash; title: 代码; notranslate">

yum --enablerepo=CentALT install httpd
</pre>
<p>升级用</p>
<pre class="brush: bash; title: 代码; notranslate">

yum --enablerepo=CentALT update httpd
</pre>
<p>3、部分设置</p>
<p>安装后，并不是以mpm-itk方式运行的，这时需要进行一些设置，将/etc/sysconfig/httpd 文件中的</p>
<pre class="brush: bash; title: 代码; notranslate">
; HTTPD=/usr/sbin/httpd.itk
</pre>
<p>去掉注释</p>
<p>在/etc/httpd/conf.d/里创建itk.conf文件，内容为下：</p>
<pre class="brush: bash; title: 代码; notranslate">

##
## Server-Pool Size Regulation (MPM specific)
##
&lt;IfModule itk.c&gt;
 LoadModule php5_module modules/libphp5.so
&lt;/IfModule&gt;

&lt;IfModule itk.c&gt;
 &lt;IfModule sapi_apache2.c&gt;
 php_value session.save_path /tmp
 &lt;/IfModule&gt;
&lt;/IfModule&gt;

# itk MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
&lt;IfModule itk.c&gt;
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
&lt;/IfModule&gt;
</pre>
<p>现在将可以启动或重新启动httpd</p>
<pre class="brush: bash; title: 代码; notranslate">
service restart httpd
</pre>
<p>在&lt;VirtualHost&gt;&lt;/VirtualHost&gt;里添加：</p>
<pre class="brush: bash; title: 代码; notranslate">&lt;/pre&gt;
&lt;IfModule itk.c&gt;

AssignUserId someuser someuser

&lt;/IfModule&gt;
&lt;pre&gt;</pre>
<div></div>
<div>如有不当之外，请指教。</div>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/615.html" title="pptp及l2tp安装教程篇一安装pptp">pptp及l2tp安装教程篇一安装pptp</a></li><li><a href="http://imvoo.com/archives/590.html" title="Apache with mpm-itk 2.2.19 for centos6.0">Apache with mpm-itk 2.2.19 for centos6.0</a></li><li><a href="http://imvoo.com/archives/444.html" title="CentOS下LNMP环境的建立">CentOS下LNMP环境的建立</a></li><li><a href="http://imvoo.com/archives/410.html" title="Nginx在Centos5下的service启动脚本">Nginx在Centos5下的service启动脚本</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/612.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>体验Linode日本vps</title>
		<link>http://imvoo.com/archives/595.html</link>
		<comments>http://imvoo.com/archives/595.html#comments</comments>
		<pubDate>Fri, 17 Feb 2012 07:46:39 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网络日志]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[盛大云]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=595</guid>
		<description><![CDATA[体验Linode日本vps,购了一个Linode日本Vps，同于以前用过Linode的Vps，自然是轻车熟路]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>好久没有写日志，也就没有打理这个网站。昨天晚上心血来潮，购了一个Linode日本Vps，同于以前用过Linode的Vps，自然是轻车熟路，一路申请一来。把原服务器上的网站打包，然后直接wget到新VPS上，差不多一个小时，就迁移完成了。</p>
<p><span id="more-595"></span></p>
<p>在迁移过程中，涉及到解析时候，到万网去看了看，发现大喜事，万网的域名可以直接申请转移了，发到邮箱。而不用像以前那样要邮寄资料。</p>
<p>快！很快！同时我还在体验着盛大云主机（电信，我的是联通）。Linode的日本服务器比盛大云还快。当然，盛大云体验的时候无法选择联通IP。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/533.html" title="Vps自动备份web和mysql数据库脚本">Vps自动备份web和mysql数据库脚本</a></li><li><a href="http://imvoo.com/archives/528.html" title="ssh auth认证方式连接Linux服务器">ssh auth认证方式连接Linux服务器</a></li><li><a href="http://imvoo.com/archives/527.html" title="免费使用一年的Amazon云计算主机">免费使用一年的Amazon云计算主机</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/595.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apache with mpm-itk 2.2.19 for centos6.0</title>
		<link>http://imvoo.com/archives/590.html</link>
		<comments>http://imvoo.com/archives/590.html#comments</comments>
		<pubDate>Sun, 28 Aug 2011 16:22:08 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[软件应用]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[mpm-itk]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=590</guid>
		<description><![CDATA[该rpm包是根据官方2.2.15和mpm-itk官方补丁制作而成，已经打上了rhel(centos)的几个补丁，安装之前一定要备份原httpd.conf文件，虽然安装之后会自动保存一个httpd.conf.rpmsave文件，但是还是手动保存下保险。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>点击<a href="http://mpm-itk.sesse.net/" target="_blank">mpm-itk</a>的官方网站，一句话来说，就是可以让你的apache以特定的用户（一般来说是虚拟主机所有者）来运行php，提供了类似于suexec的功能，但是比suexec 更加容易设置和使用。</p>
<p><span id="more-590"></span></p>
<p>该rpm包是根据官方2.2.15和mpm-itk官方补丁制作而成，已经打上了rhel(centos)的几个补丁，安装之前一定要备份原httpd.conf文件，虽然安装之后会自动保存一个httpd.conf.rpmsave文件，但是还是手动保存下保险。4个文件</p>
<p>httpd, httpd-tools, httpd-devel, mod_ssl</p>
<p>安装 rpm -Uvh *.rpm</p>
<p>同时有32位的rpm包供安装，同样提供了src.rpm，<del>32位的系统请重新编译。</del></p>
<p><del>rpm &#8211;rebuild httpd-2.2.19-1.el6.src.rpm</del></p>
<p>因为我只所有下载，都在下面下面最后。</p>
<p>降级回到系统自带的httpd2.2.15</p>
<div>
<p>yum downgrade httpd httpd-tools httpd-devel mod_ssl</p>
</div>
<div></div>
<h3>使用方法：</h3>
<p>在&lt;VirtualHost&gt;&lt;/VirtualHost&gt;里添加：</p>
<pre class="brush: php; title: 代码; notranslate">

&lt;IfModule itk.c&gt;

AssignUserId someuser someuser

&lt;/IfModule&gt;
</pre>
<h3>需知：</h3>
<p>1、session不可写的问题，原php设置的session.save_path为/var/lib/php/session，只对root用户和apache组可写。可以设置该目录为/tmp/session  ，解决该问题。我的解决是把该用户加入apache组 usermod -G apache,someuser someuser</p>
<p>2、conf.d/itk.conf为mpm-itk的一些设置。由于conf.d/php.ini里的设置，如果没有itk.conf则不会解释php。</p>
<p>3、手动修改/etc/sysconfig/httpd 增加 HTTPD=/usr/sbin/httpd.itk</p>
<p>4、因为httpd.itk为root运行的程序。</p>
<p><a href="http://dl.dbank.com/c0mn1adp98" target="_blank">Dbank下载</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/612.html" title="yum安装带mpm-itk的apache">yum安装带mpm-itk的apache</a></li><li><a href="http://imvoo.com/archives/565.html" title="让apache2运行时使用不同的用户权限">让apache2运行时使用不同的用户权限</a></li><li><a href="http://imvoo.com/archives/407.html" title="对Apache的Order Deny Allow的理解">对Apache的Order Deny Allow的理解</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/590.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>拼音别名插件 PinyinAlias 0.9 for Joomla1.7</title>
		<link>http://imvoo.com/archives/587.html</link>
		<comments>http://imvoo.com/archives/587.html#comments</comments>
		<pubDate>Wed, 03 Aug 2011 16:28:45 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[拼音别名]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=587</guid>
		<description><![CDATA[距上次发布拼音插件，已经过去了很长时间，上次的是在1.6RC版的时候发布的。这次带了了很多更新。更换了拼音类，采用了This is Lukin zone写的拼音类。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>距上次发布拼音插件，已经过去了很长时间，上次的是在1.6RC版的时候发布的。这次带了了很多更新。更换了拼音类，采用了&lt;a href=http://lukin.cn/blog/Developer/13.html target=_blank&gt;This is Lukin zone&lt;/a&gt;写的拼音类。</p>
<p><span id="more-587"></span></p>
<h2>插件简介：</h2>
<p>将Joomla文章别名转移成拼音别名，并用-符号隔开，兼容标题中出现的英文单词。</p>
<p>如：Joomla文章别名===&gt;joomla-wen-zhang-bie-ming</p>
<p>插件生效需将Global Configuration-&gt;Unicode Aliases设置为No。</p>
<p>插件选项：标题长度，默认为20，即需要截取标题的长度用于转移成拼音。设置为0则全部转换成拼音。</p>
<p>多音字：多音字默认只转换到第一个音，如果你想几个音都转换的话，选择全部。</p>
<p><del>因为用到<a href="http://php.net/manual/en/function.mb-convert-encoding.php" target="_blank">mb_convert_encoding()</a>函数进行编码转移，所以</del>需要服务器php支持MBString库，是否支持，可在phpinfo查看。</p>
<p>已知问题：</p>
<p><del>无论是utf-8编码的繁体字还是big5都是不支持的，utf-8编码的繁体字会有错误，big5编码的会出现空白。</del></p>
<p>新版已经支持utf-8的繁体字转拼音，再次感谢拼音类作者。</p>
<h2>版权协议：</h2>
<p>此插件基于GPL的许可协议的自由软件。</p>
<h2>下载：</h2>
<p><a href="http://dl.dbank.com/c0bfh8rykx" target="_blank">Dbank下载</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/540.html" title="Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin">Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</a></li><li><a href="http://imvoo.com/archives/550.html" title="Phoca GuestbookV2.0.1留言本插件 中文版 ">Phoca GuestbookV2.0.1留言本插件 中文版 </a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/587.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Joomla精选文章布局缓存出错的临时解决</title>
		<link>http://imvoo.com/archives/584.html</link>
		<comments>http://imvoo.com/archives/584.html#comments</comments>
		<pubDate>Wed, 03 Aug 2011 03:44:39 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[缓存]]></category>
		<category><![CDATA[解决]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=584</guid>
		<description><![CDATA[在上一篇说了一Joomla1.7.0的精选文章布局终于可以选择分类了，如果不开缓存的话，是没有问题的，开了缓存的话，多个精选文章的页面就会显示某个首先缓存的页面。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>在上一篇说了一<a href="http://imvoo.com/archives/574.html">Joomla1.7.0的精选文章布局终于可以选择分类</a>了，如果不开缓存的话，是没有问题的，开了缓存的话，多个精选文章的页面就会显示某个首先缓存的页面。</p>
<p>这是由于Joomla的缓存是由参数id和view来命名的（md5），而参数ID是文章分类的ID，精选布局恰恰是那几个文章布局中不需要ID的唯一布局。该问题已经报告给官方，并得到了确认。在官方补丁出来之前，先来一个小补丸吧。</p>
<p><span id="more-584"></span>当然，如果你的Joomla没有使用多个精选文章布局页面，请不要使用下面的代码，因为我不知道这个代码会不会引起什么问题。</p>
<p>目标文件：/libraries/joomla/environment/request.php 第439行函数改为下面的，其时就是加了一个判断，如果视图为精选，且不存在id，则把id设置为itemid（菜单id）的负值（这是为了不和其它的冲突）。</p>
<p>更严谨的还要判断option=com_content。</p>
<pre class="brush: php; title: 代码; notranslate">

public static function set($array, $hash = 'default', $overwrite = true)
{
foreach ($array as $key =&gt; $value) {
self::setVar($key, $value, $hash, $overwrite);
}
if ( array_key_exists( 'view' , $array ) &amp;&amp; !array_key_exists( 'id' , $array ) &amp;&amp; $array['view']=='featured' ) {
self::setVar('id', '-'.$array['Itemid'] , $hash, $overwrite);
}
}
</pre>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/584.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla论坛组件Kunena1.6.5中文语言包</title>
		<link>http://imvoo.com/archives/576.html</link>
		<comments>http://imvoo.com/archives/576.html#comments</comments>
		<pubDate>Tue, 02 Aug 2011 12:02:15 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[kunena]]></category>
		<category><![CDATA[中文语言包]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=576</guid>
		<description><![CDATA[Kunena是Joomla的标准论坛组件，不同于phpbb这种论坛需要桥接器，Kunena是原生的。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Kunena是Joomla的标准论坛组件，不同于phpbb这种论坛需要桥接器，Kunena是原生的。Kunena 这个词来源于非洲的斯瓦希利语（Swahili），意思是“陈述、讲话”。<br />
Kunena1.6.5需要Joomla1.5.23、Joomla1.6.6和Joomla1.7.0，对于1.6.6用户，建立还是升级到1.7.0。安装之前要备份和测试。</p>
<p><span id="more-576"></span>目前，官方版本里暂时没有中文语言包，所以：<br />
１）如果你还没有安装，那么可以打开Kunena的文件，把两个语言包放在archive文件夹里；<br />
２）已经安装的，把两个文件夹里的.ini文件分别解压到前台、后台语言文件夹里。</p>
<h3>翻译项目主页</h3>
<p>这个语言包是花了三天的时间翻译的，并同时参考网上的一些翻译，并在本地安装了Discuz参考一些术语，力求达到与国内论坛的统一。主要的词汇有主题、论坛、版块、分区、用户、会员、帖子、主题帖、置顶、锁定等。<br />
该中文语言包的翻译项目主页：https://www.transifex.net/projects/p/Kunena/team/zh_CN/<br />
这是由Kunena官方团队建立的翻译项目，其中的中文翻译小组。<br />
下面的下载只是Kunena组件的翻译，不包含插件、模块等其它一些Kunena官方出的扩展的语言包，但是上面那个翻译项目里已经包含了，可以下载后上传到相应的语言文件夹里，注意，这里需要改名，下载下来的名字并不是语言文件的名字，参考英文语言文件来改名。</p>
<h3>长远打算</h3>
<p>长期更新该语言包，争取每次Kunena升级的时候，都能跟上步伐，可以集成在官方安装包里。一些翻译错误或者有更很的翻译，可以在这里提出。或者您也可以申请加入Kunena的中文翻译小组。</p>
<h3>下载地址：</h3>
<p>下面这是打包的语言包，在后台像安装扩展那样直接安装就可以了。</p>
<p><a title="Skydrive下载点" href="https://skydrive.live.com/redir.aspx?cid=5684a3b118e4d35a&amp;resid=5684A3B118E4D35A%21270" target="_blank">Skydrive</a>  <a href="http://dl.dbank.com/c01aipk55f" target="_blank">Dank下载</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/576.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Joomla!1.7.0的精选文章布局终于加上了分类选择</title>
		<link>http://imvoo.com/archives/574.html</link>
		<comments>http://imvoo.com/archives/574.html#comments</comments>
		<pubDate>Mon, 25 Jul 2011 08:14:02 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=574</guid>
		<description><![CDATA[Joomla!1.7.0的精选文章布局终于加上了分类选择]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>在1.6的时候，精选文章布局的描述里写着“选择要显示的分类的精选文章”，而在设置里一直没有该选项，而现在1.7.0终于把这个选项加上了。</p>
<p>这对于想建立中国式布局的网站很有利。当时我在官网提交这个Bug的时候，一直没有修正。现在1.7.0终于修正了这个Bug，我在模板上写的一些控制语句，也可以去掉了。</p>
<p>当时，折中的方案是在模板里判断是某个菜单，然后不显示精选文章，直接显示模块。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/574.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla!1.6.5升级到1.7.0</title>
		<link>http://imvoo.com/archives/567.html</link>
		<comments>http://imvoo.com/archives/567.html#comments</comments>
		<pubDate>Mon, 25 Jul 2011 06:00:02 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=567</guid>
		<description><![CDATA[Joomla!1.6.5如期发布，我的一个网站也从1.6.5升级到了1.7.0，过程很顺利。1.6系列的网站必须升级到1.6.5才能升级1.7.0。就国内服务器的速度来说，最好还是下载升级包进行升级。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Joomla!1.7.0如期发布，我的一个网站也从1.6.5升级到了1.7.0，过程很顺利。1.6系列的网站必须升级到1.6.5才能升级1.7.0。就国内服务器的速度来说，最好还是下载升级包进行升级。<br />
<span id="more-567"></span><br />
在做升级之前一定要备份。</p>
<h3>1、在线升级1.7.0</h3>
<p>如果你的服务器在国外，那么用在线升级很方便，点击扩展-扩展管理-更新-查找更新，选中找到的升级包，然后点更新，即可。</p>
<p>如果服务器在国内的话，这种在线升级的方法还是别用了，会连接超时的，Joomla的服务器的下载速度不敢恭维，我的一个Wordpress网站（国内）在线升级都经常失败，而Wordpress的包才2M多，Joomla的包在7M，可想而知。</p>
<h3>2、用扩展管理上传更新</h3>
<p>下载<a href="http://joomlacode.org/gf/project/joomla/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5986" target="_blank">1.6.5到1.7.0的升级包</a></p>
<p>（1）如果你的本地电脑上服务器的连接速度还不错的话，上传7M不会超时的话，可以直接在后台上传安装。</p>
<p>（2）如果上传速度不行，要么ftp上传到tmp目录，用从文件夹安装，要么就上传某一个服务器（或者就那台服务器）用通过网址远程安装。</p>
<h3>3、手动升级</h3>
<p>不建议采用，手动升级有些麻烦。还是下载那个升级包（或者完全包，但是要删除installtion文件夹），然后解压之后，再解压里面的Joomla_1.7.0-Stable-Update_Package.zip（升级包里）文件，把里面的文件全部上传，覆盖。</p>
<pre class="brush: php; title: 代码; notranslate">
/templates/atomic/css/blueprint/src/blueprintcss-0-9-1-cheatsheet-3-5-3-gjms.pdf
/administrator/manifests/packages/joomla.xml
/administrator/templates/bluestork/css/rounded.css
/administrator/templates/bluestork/css/norounded.css
/administrator/templates/bluestork/images/j_corner_bl.png
/administrator/templates/bluestork/images/j_header_right_rtl.png
/administrator/templates/bluestork/images/j_crn_br_dark.png
/administrator/templates/bluestork/images/j_crn_br_black.png
/administrator/templates/bluestork/images/j_crn_tr_black.png
/administrator/templates/bluestork/images/j_crn_bl_dark.png
/administrator/templates/bluestork/images/j_crn_tr_med.png
/administrator/templates/bluestork/images/j_crn_bl_light.png
/administrator/templates/bluestork/images/j_header_right.png
/administrator/templates/bluestork/images/j_crn_br_light.png
/administrator/templates/bluestork/images/j_crn_tl_black.png
/administrator/templates/bluestork/images/j_crn_bl_black.png
/administrator/templates/bluestork/images/j_crn_tr_dark.png
/administrator/templates/bluestork/images/j_crn_bl_med.png
/administrator/templates/bluestork/images/j_header_left.png
/administrator/templates/bluestork/images/j_crn_tl_med.png
/administrator/templates/bluestork/images/j_crn_tl_dark.png
/administrator/templates/bluestork/images/j_crn_br_med.png
/administrator/templates/bluestork/images/j_crn_tl_light.png
/administrator/templates/bluestork/images/j_crn_tr_light.png
/administrator/templates/bluestork/images/j_corner_br.png
/administrator/templates/bluestork/images/j_header_left_rtl.png
/administrator/templates/hathor/html/com_modules/module/modal.php
/administrator/templates/hathor/html/com_modules/module/edit_assignment.php
/administrator/templates/hathor/html/com_menus/item/edit_modules.php
/administrator/templates/hathor/html/com_menus/items/default_batch.php
/administrator/templates/hathor/html/com_languages/language/edit.php
/administrator/templates/hathor/html/com_content/article/edit_metadata.php
/administrator/templates/hathor/html/com_categories/category/edit_metadata.php
/administrator/templates/hathor/html/com_categories/categories/default_batch.php
/administrator/components/com_menus/models/forms/item_options.xml
/administrator/language/overrides/xx-XX.override.ini
/administrator/help/helpsites-16.xml
/administrator/help/en-GB/Components_Content_Categories_Edit.html
/administrator/help/en-GB/Components_Weblinks_Categories_Edit.html
/administrator/help/en-GB/Components_Newsfeeds_Categories_Edit.html
/administrator/help/en-GB/Components_Banners_Categories_Edit.html
/administrator/help/en-GB/Components_Contact_Categories_Edit.html
/media/editors/codemirror/css/docs.css
/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.js
/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php
/media/editors/tinymce/jscripts/tiny_mce/plugins/media/css/content.css
/media/mod_languages/images/ta.gif
/libraries/joomla/config.php
/libraries/joomla/import.php
/libraries/joomla/version.php
</pre>
<p>和这些目录</p>
<pre class="brush: php; title: 代码; notranslate">
/plugins/authentication/example
/plugins/user/example
/plugins/content/example
/plugins/extension/example
/administrator/templates/hathor/html/com_modules/select
/administrator/templates/hathor/html/com_media
/administrator/templates/hathor/html/mod_popular
/administrator/templates/hathor/html/mod_status
/administrator/templates/hathor/html/mod_latest
/administrator/components/com_weblinks/helpers/html
/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/css
/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/img
/media/editors/tinymce/jscripts/tiny_mce/plugins/example
</pre>
<p>不想删的话，也可以，就是多一些垃圾，不过在以后升级的时候，也许垃圾文件是越来越多，还是建议删掉吧。 做完这些之后，要升级数据库了，如果下载的是完全包，那么在phpmyadmin里执行installation/sql/mysql/joomla_update_17ga.sql，要是升级包的话，在phpmyadmin里执行/administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06.sql 和administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06-2.sql两个文件。 其实这两个文件的内容为以下，把#_替换成你的前缀，如jos 1、languages表增加ordering字段，用于排序，并设置索引</p>
<pre class="brush: php; title: 代码; notranslate"> ALTER TABLE `#__languages` ADD COLUMN `ordering` int(11) NOT NULL DEFAULT 0 AFTER `published`; ALTER TABLE `#__languages` ADD INDEX `idx_ordering` (`ordering`); </pre>
<p>2、增加表associations表</p>
<pre class="brush: php; title: 代码; notranslate"> CREATE TABLE IF NOT EXISTS `#__associations` ( `id` VARCHAR(50) NOT NULL COMMENT 'A reference to the associated item.', `context` VARCHAR(50) NOT NULL COMMENT 'The context of the associated item.', `key` CHAR(32) NOT NULL COMMENT 'The key for the association computed from an md5 on associated ids.', PRIMARY KEY `idx_context_id` (`context`, `id`), INDEX `idx_key` (`key`) ) DEFAULT CHARSET=utf8; </pre>
<p>至此，你的网站就运行在1.7.0下了。也许，这个时候你的浏览器里出现的后台界面会有一些不工整，你需要清除浏览器的缓存，然后刷新即可。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/567.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让apache2运行时使用不同的用户权限</title>
		<link>http://imvoo.com/archives/565.html</link>
		<comments>http://imvoo.com/archives/565.html#comments</comments>
		<pubDate>Wed, 13 Jul 2011 02:13:33 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[软件应用]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[权限]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=565</guid>
		<description><![CDATA[我的服务器（debian）运行着不同的用户和网站。这意味着我要给这些用户ftp或者（和）ssh访问权限。像大多数网站一样，他们使用cms管理内容，一般需要这些目录的写权限。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>在使用cpanel时，可以看到各个用户目录/home/youname/public_html都是各自用户的权限，而我们在自己建立服务器的时候，一般都是用chown把该目录转成nobody/apache等所有，如果又有ftp的话，这时管理就不方便了。</p>
<p>在中文搜索解决方案没有结果的情况下，用英文搜索，终于找到了<a href="http://blog.andreaolivato.net/open-source/running-apache2-virtualhost-with-different-users.html" target="_blank">这篇</a>文章。</p>
<p><span id="more-565"></span></p>
<p>简译如下：</p>
<p>在我的服务器（debian）运行着不同的用户和网站。这意味着我要给这些用户ftp或者（和）ssh访问权限。像大多数网站一样，他们使用cms管理内容，一般需要这些目录的写权限。</p>
<p>在过去，让这些目录可写的解决方案是把这些用户的组设置为www-data，并把目录的权限设置为644。这种方法可以让服务器和用户都能写，但是我并不满意这个方案。</p>
<p>在debian上包括ubuntu实现这个很简单。</p>
<p>sudo apt-get install apache2-mpm-itk</p>
<p>在虚拟主机的配置文件里加上：</p>
<p>&lt;IfModule mpm_itk_module&gt;</p>
<p>AssignUserId whichuser whichgroup</p>
<p>&lt;/IfModule&gt;</p>
<p>把以前更改的权限，放心的改回去吧。现在就没有问题了，apache拥有指定用户的权限了。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/590.html" title="Apache with mpm-itk 2.2.19 for centos6.0">Apache with mpm-itk 2.2.19 for centos6.0</a></li><li><a href="http://imvoo.com/archives/407.html" title="对Apache的Order Deny Allow的理解">对Apache的Order Deny Allow的理解</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/565.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>joomla1.6.4发布，来迎接1.7吧</title>
		<link>http://imvoo.com/archives/562.html</link>
		<comments>http://imvoo.com/archives/562.html#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:00:56 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[业界动态]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/562.html</guid>
		<description><![CDATA[Joomla1.6.4发布，该版本修正了四个安全问题，和一个关于升级到1.7问题的更新。
1.7版将于7月19日发布，1.6版需要先升级到1.6.4才可以升级到1.7。
本文由Wordpress for android发布。


	
	
	
	
	
	




	
相关文章拼音别名插件 PinyinAlias 0.9 for Joomla1.7Joomla精选文章布局缓存出错的临时解决Joomla论坛组件Kunena1.6.5中文语言包Joomla!1.7.0的精选文章布局终于加上了分类选择Joomla!1.6.5升级到1.7.0]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Joomla1.6.4发布，该版本修正了四个安全问题，和一个关于升级到1.7问题的更新。<br />
1.7版将于7月19日发布，1.6版需要先升级到1.6.4才可以升级到1.7。</p>
<p>本文由Wordpress for android发布。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/562.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla1.6.1发布</title>
		<link>http://imvoo.com/archives/559.html</link>
		<comments>http://imvoo.com/archives/559.html#comments</comments>
		<pubDate>Tue, 08 Mar 2011 06:34:50 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=559</guid>
		<description><![CDATA[Joomla1.6.1发布了，主要是一些安全更新。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Joomla1.6.1发布了，主要是一些安全更新。</p>
<p>1、可以在线更新，经过实验成功升级（注：服务器在国外，国内的服务器还没有条件试）；</p>
<p>2、在线下载，覆盖更新。</p>
<p>注意升级之前，备份网站，备份数据库，以备不时之需。如果升级失败，还可以返回。当然，这是任何程序升级之前的必备步骤。</p>
<p>中文语言包：<a href="http://joomlacode.org/gf/project/choice/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5301"></a><a href="http://joomlacode.org/gf/project/choice/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5301">http://joomlacode.org/gf/project/choice/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5301</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/559.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>歌曲音乐文件的分类整理</title>
		<link>http://imvoo.com/archives/555.html</link>
		<comments>http://imvoo.com/archives/555.html#comments</comments>
		<pubDate>Tue, 08 Mar 2011 01:28:50 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[软件应用]]></category>
		<category><![CDATA[整理]]></category>
		<category><![CDATA[音乐]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=555</guid>
		<description><![CDATA[电脑中音乐文件的整理,m4a,mp3文件的整理。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>最近电脑里增加了很多的音乐，目前总共2500首左右，如此多的文件的归档整理是一个问题。正好的是，我的音乐文件80%以上都是最近下载的，以前的音乐文件也很少，整理起来也很快。</p>
<p><span id="more-555"></span>iTunes上下载的音乐歌曲基本上按歌手/专辑目录层次，歌曲名按曲目号 歌名来存储的，如：</p>
<blockquote><p>刘德华/美丽的一天/01 美丽的一天.m4a</p></blockquote>
<p>如果是多张光盘的话，文件名又为：</p>
<blockquote><p>1-01 Amor Gitano.m4a</p></blockquote>
<p>那么，我的音乐也是按这种格式整理的，初期的整理的音乐是如一格式</p>
<blockquote><p>01 &#8211; 美丽的一天.m4a</p></blockquote>
<p>另在ubuntu下支持几种目录结构：</p>
<blockquote><p>艺术家 &#8211; 专辑名</p>
<p>艺术家/专辑名</p></blockquote>
<p>但是，为了在文件浏览器里可以清晰地查找歌曲，建立还是以艺术家 / 专辑 来建立目录结构。</p>
<p>目前主要用的wmp12和ubuntu 下的Rhythmbox来听音乐。Rhythmbox下部分mp3的信息会乱码，可以用mp3tag把id3v1信息删除，保存apev2和id3v2信息。但是用Rhythmbox听一遍之后，tag信息会被改为id3 v2.4版本，wmp12只支持v2.3版本，这时在wmp12里的歌曲就会找不到信息，而归到未知艺术家里。</p>
<p>关于专辑文件夹名：</p>
<p>部分专辑，用了发行日期 专辑名的名称，如</p>
<blockquote><p>2011-03 Hold It Against Me &#8211; Single</p></blockquote>
<p>这样是最清楚的，一般电脑按名称排序时，也能达到按专辑发布日期排序的目的，这适合于专辑较多的歌手，如张学友在我这里有11张专辑，布兰妮包括单曲、EP共有20个目录。</p>
<p>自动整理：</p>
<p>像很好联机听歌软件存放的歌曲都很乱，在一个文件夹里。在初期的音乐整理的确是很麻烦。</p>
<p>目前的自动整理软件不好找，找到了一个说是提供这样的整理的功能的软件，但是不能在win7下使用，作罢。现在我用的是mp3tag来手动整理，当然是初期，以后下载音乐的时候，都按上述格式来整理就可以了。</p>
<p>在mp3tag里按album排序，同一专辑的，选上右键，然后移动到某个目录就可以，这就是手动。这步也可以在资源管理器里操作，更改视图为详细信息，同样按专辑排序，然后再操作。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">暂无相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/215.html" title="重组后，中国移动的前途何在？">重组后，中国移动的前途何在？</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li><li><a href="http://imvoo.com/archives/177.html" title="服务器转入国内，速度比国外快多了">服务器转入国内，速度比国外快多了</a></li><li><a href="http://imvoo.com/archives/507.html" title="安装财富通控件后，键盘失效">安装财富通控件后，键盘失效</a></li><li><a href="http://imvoo.com/archives/82.html" title="不用SEO取得成功的方法">不用SEO取得成功的方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/555.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>摘要输出带缩略图的Joomla Blog布局</title>
		<link>http://imvoo.com/archives/552.html</link>
		<comments>http://imvoo.com/archives/552.html#comments</comments>
		<pubDate>Tue, 25 Jan 2011 03:03:48 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[布局]]></category>
		<category><![CDATA[缩略库]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=552</guid>
		<description><![CDATA[国内的CMS很多都带有摘要输出的文章列表布局，在Joomla中与此相近的有Blog布局。下面，就利用该Blog布局改造成近似摘要输出（并带缩略图）的布局。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>国内的CMS很多都带有摘要输出的文章列表布局，在Joomla中与此相近的有Blog布局。下面，就利用该Blog布局改造成近似摘要输出（并带缩略图）的布局。<span id="more-552"></span></p>
<p>直接上代码：</p>
<p>编辑模板html/com_content/category/blog.php和blog_item.php。</p>
<p>提取出第一张图，如果为空则不显示图片，如果不为空，则显示图片。这里并不是缩略图，如果想用缩略库的话，可以使用生成缩略库的函数类库。</p>
<pre class="brush: php; title: 代码; notranslate">
			&lt;?php
				$regex = &quot;/\&lt;img.+src\s*=\s*\&quot;([^\&quot;]*)\&quot;[^\&gt;]*\&gt;/&quot;;
				preg_match ($regex, $this-&gt;item-&gt;introtext, $matches);
				$images = (count($matches)) ? $matches : array();
				if (count($images)){
				$mainImage = $images[1];
				$thumbnail = $images[1];
			} else {
				$thumbnail = '';
				$mainImage = '';
			}
			//if ($mainImage=='') $mainImage='/images/defaultpic.gif';
			if ($mainImage) {
			?&gt;
			&lt;a title=&quot;&lt;?php echo $this-&gt;escape($this-&gt;item-&gt;title); ?&gt;&quot; href=&quot;&lt;?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this-&gt;item-&gt;slug, $this-&gt;item-&gt;catid)); ?&gt;&quot;&gt;
			&lt;img src=&quot;&lt;?php echo $mainImage; ?&gt;&quot; alt=&quot;&lt;?php echo $this-&gt;escape($this-&gt;item-&gt;title); ?&gt;&quot; class=&quot;thumbnail alignright&quot;&gt;
			&lt;/a&gt;
			&lt;?php } ?&gt;
				&lt;?php echo '&lt;p&gt;'.$this-&gt;item-&gt;metadesc.'...&lt;/p&gt;'; ?&gt;
</pre>
<p>$this-&gt;item-&gt;metadesc是用于 meta 描述来输出摘要。</p>
<p>如果不想手动填写meta 描述（其实还是填的好，利用SEO），可以在模板里用下面的代码代替。注意：Joomla用的是utf-8，截断utf-8的字符需要mbstring库中的mb_substr函数。</p>
<pre class="brush: php; title: 代码; notranslate">
echo '&lt;p&gt;'.mb_substr(strip_tags($this-&gt;item-&gt;introtext),0,100,'UTF-8').'...&lt;/p&gt;';
</pre>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/552.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Phoca GuestbookV2.0.1留言本插件 中文版</title>
		<link>http://imvoo.com/archives/550.html</link>
		<comments>http://imvoo.com/archives/550.html#comments</comments>
		<pubDate>Fri, 07 Jan 2011 03:24:20 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[phoca guestbook]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[留言本]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=550</guid>
		<description><![CDATA[Phoca Guestbook留言本是Joomla平台的留言本组件，现在Joomla1.6正式版即将发布，该留言本也放出了beta版本，目前是beta3。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Phoca Guestbook留言本是Joomla平台的留言本组件，当前版本2.0.1。</p>
<p><span id="more-550"></span></p>
<p>该留言本的特点：</p>
<ol>
<li>可创建多个留言本；</li>
<li>可选择是否只允许注册会员留言，还是任何人均可留言；</li>
<li>可选择是否要求提供 email 和 网站；</li>
<li>可选择是否启用验证码（有图片验证码、算术验证码等形式可选）；</li>
<li>可选是否只针对游客启用验证码；</li>
<li>可选是否检查用户身份，即：游客留言时不允许使用已被注册会员使用的用户名和 email；</li>
<li>可指定禁用的敏感词；</li>
<li>可指定屏蔽的 IP 地址；</li>
<li>可选是否允许在留言内容中显示超链接（URL Links），以及每条留言中允许显示的链接数量；</li>
<li>可给游客预定义名称，例如”游客“；</li>
<li>没有回复留言功能</li>
</ol>
<p>2011年1月18日更新，修正哪些翻译。</p>
<p>2011年8月3日，更新2.0.1</p>
<p>中文版下载：<a href="http://dl.dbank.com/c0azil6zst">http://dl.dbank.com/c0azil6zst</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/540.html" title="Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin">Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/550.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Everbox邀请链接两个</title>
		<link>http://imvoo.com/archives/548.html</link>
		<comments>http://imvoo.com/archives/548.html#comments</comments>
		<pubDate>Thu, 06 Jan 2011 01:49:32 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[业界动态]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=548</guid>
		<description><![CDATA[http://account.everbox.com/invite/YdbRTqV4qSIxNFBEoNvZtEUyQTOKakOSa6dA5iDA
http://account.everbox.com/invite/hYPmD016qqCpXOXuV11e9k9Q5suNMY36jJQzrFgB


	
	
	
	
	
	




	
暂无相关文章手机通过笔记本的无线网卡上网！又见芙蓉！几大手机系统厂商的App Store嘀咕华丽的回来了医学重大发现：人体有一块肌肉“叉腰肌”被发现]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>http://account.everbox.com/invite/YdbRTqV4qSIxNFBEoNvZtEUyQTOKakOSa6dA5iDA</p>
<p>http://account.everbox.com/invite/hYPmD016qqCpXOXuV11e9k9Q5suNMY36jJQzrFgB</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">暂无相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/326.html" title="成功获得chi.mp的邀请">成功获得chi.mp的邀请</a></li><li><a href="http://imvoo.com/archives/386.html" title="今天转移了一个域名到GoDaddy">今天转移了一个域名到GoDaddy</a></li><li><a href="http://imvoo.com/archives/236.html" title="IBM Thinkpad 701c 打开的视频">IBM Thinkpad 701c 打开的视频</a></li><li><a href="http://imvoo.com/archives/424.html" title="博客域名即将更换">博客域名即将更换</a></li><li><a href="http://imvoo.com/archives/471.html" title="网易将推出免费域名邮箱服务">网易将推出免费域名邮箱服务</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/548.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla判断是否首页</title>
		<link>http://imvoo.com/archives/543.html</link>
		<comments>http://imvoo.com/archives/543.html#comments</comments>
		<pubDate>Wed, 29 Dec 2010 01:56:07 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[首页]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=543</guid>
		<description><![CDATA[Joomla默认的布局都不是很适合国内的CMS布局，用Joomla设计一个符合国人习惯的首页，首先要要判断是否是首页，才能在index.php里定制首页代码。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Joomla默认的布局都不是很适合国内的CMS布局，用Joomla设计一个符合国人习惯的首页，首先要要判断是否是首页，才能在index.php里定制首页代码。</p>
<p><span id="more-543"></span>下面是在网上搜集的一些判断是否是首页的代码：</p>
<p>下面这段只能在1.5版本应用，1.6版已经取消了frontpage</p>
<pre class="brush: php; title: 代码; notranslate">
&lt;?php
if($option != &quot;&quot; &amp;&amp; $option != &quot;com_frontpage&quot;){
}
?&gt;
</pre>
<p>下面这段可以应用在1.5+</p>
<pre class="brush: php; title: 代码; notranslate">
&lt;?php
$menu = &amp; JSite::getMenu();
if ($menu-&gt;getActive() == $menu-&gt;getDefault()) {
        echo 'This is the home page';
}
?&gt;
</pre>
<p>还有一个</p>
<pre class="brush: php; title: 代码; notranslate">
function isHome()
{
   if (JURI::current() == JURI::base()) return true;
   return false;
}
</pre>
<p>以上引用自：http://forum.joomla.org/viewtopic.php?f=304&amp;t=428965</p>
<p>我在最近的一个Joomla站里，用的是个人方法，因为我的一个幻灯片只在首页出现，那么，我只判断是否有该幻灯片，即知是不是在首页。</p>
<pre class="brush: php; title: 代码; notranslate">
$isFrontPage	= $this-&gt;countModules('index-newsflash');
</pre>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/543.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</title>
		<link>http://imvoo.com/archives/540.html</link>
		<comments>http://imvoo.com/archives/540.html#comments</comments>
		<pubDate>Thu, 23 Dec 2010 02:08:17 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[拼音别名]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=540</guid>
		<description><![CDATA[现在正在基于1.6版Joomla做一个站，中文站能够用到拼音别名。现在网上的拼音别名插件还是基于1.5版的。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p><a href="http://imvoo.com/archives/587.html">本文已经有更新版本。</a>Joomla1.6现在已经到RC1了，不出意外的话，2011年1月10日就会出正式版，现在正在基于1.6版Joomla做一个站，中文站能够用到拼音别名。现在网上的拼音别名插件还是基于1.5版的。 <span id="more-540"></span> 本插件基于<a href="http://www.tzpsky.com/zui-xin-xiu-zheng-ban-wordpress-zhong-wen-biao-ti-zhuan-huan-pin-yin-cha-jian/" target="_blank">最新修正版WordPress中文标题转换拼音插件</a>所写的Wordpress拼音别名类。</p>
<h2>插件简介：</h2>
<p>将Joomla1.6文章别名转移成拼音别名，并用-符号隔开，兼容标题中出现的英文单词。 如：Joomla文章别名===&gt;joomla-wen-zhang-bie-ming 插件生效需将Global Configuration-&gt;Unicode Aliases设置为No。 插件选项：标题长度，默认为20，即需要截取标题的长度用于转移成拼音。设置为0则全部转换成拼音。 因为用到<a href="http://php.net/manual/en/function.mb-convert-encoding.php" target="_blank">mb_convert_encoding()</a>函数进行编码转移，所以需要服务器php支持MBString库，是否支持，可在phpinfo查看。 已知问题： 无论是utf-8编码的繁体字还是big5都是不支持的，utf-8编码的繁体字会有错误，big5编码的会出现空白。</p>
<h2>版权协议：</h2>
<p>此插件基于GPL的许可协议的自由软件。插件的使用者可以： 以任何目的运行此程序的自由； 以学习程序工作机理为目的，对程序进行修改的自由； 再发行复制件的自由； 改进此程序，并公开发布改进的自由。</p>
<h2>下载：</h2>
<p><a href="http://imvoo.com/wp-content/uploads/2010/12/pinyinalias.zip">Pinyinalias for Joomla1.6</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/550.html" title="Phoca GuestbookV2.0.1留言本插件 中文版 ">Phoca GuestbookV2.0.1留言本插件 中文版 </a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/540.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vps自动备份web和mysql数据库脚本</title>
		<link>http://imvoo.com/archives/533.html</link>
		<comments>http://imvoo.com/archives/533.html#comments</comments>
		<pubDate>Thu, 28 Oct 2010 03:26:26 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网络日志]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[备份]]></category>
		<category><![CDATA[脚本]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/533.html</guid>
		<description><![CDATA[为服务安装上了Dropbox，设定为每天4:00-6:00 开启同步服务。在之前运行两个脚本，自动备份web文件夹和mysql数据库。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>用Vps什么事都要自己费心，备份也是。像Linode里的备份服务是要收费的，一个月是5美元。与其花这5美元，不如自己丰衣足食。为服务安装上了Dropbox，设定为每天4:00-6:00 开启同步服务。在之前运行两个脚本，自动备份web文件夹和mysql数据库。</p>
<p>两个脚本都是备份文件到/root/Dropbox/backup目录里，并自动删除10天前的备份。web备份是每周行一次，删除30天前的备份。</p>
<p><span id="more-533"></span></p>
<h3>一、备份WEB文件夹</h3>
<p>1、备份/home/users/public_html目录</p>
<p>2、修改crontab为每周第一天3：22时运行</p>
<pre class="brush: bash; title: 代码; notranslate">22 3 * * 0 root run-parts /etc/cron.weekly</pre>
<p>3、复制脚本到/etc/cron.weekly目录</p>
<p>4、修改权限</p>
<pre class="brush: bash; title: 代码; notranslate">
chmod 0755 /etc/cron.weekly/webbackup.sh
</pre>
<p>5、脚本如下</p>
<pre class="brush: bash; title: 代码; notranslate">
#!/bin/sh

filename=`date +%Y%m%d`

backup_dir=&quot;/root/Dropbox/backup/web&quot;

#delete all files 10 days ago

find $backup_dir -mtime +30 -name &quot;*&quot; -exec rm -rf {} \;

#each user you want backup

users=&quot;baidu sina&quot;

for user in ${users}; do

tar zcvf $backup_dir/$user$filename.tar.gz /home/$user/public_html

done
</pre>
<p>6、注意filename那句不是单引号，在tab键上方</p>
<p>7、要备份的用户的public_html目录，就把该用户填入users</p>
<h3>二、Mysql数据库每日备份</h3>
<p>1、为了安全，新建用户backup，用强密码（自动生成即可），全局权限为select,lock tables</p>
<p>2、每日3：00开始执行，修改crontab</p>
<p>3、复制脚本到/etc/cron.daily</p>
<p>4、修改权限</p>
<p>5、脚本内容</p>
<pre class="brush: bash; title: 代码; notranslate">

#!/bin/sh

dbuser=&quot;backup&quot;

dbpassword=&quot;youpassword&quot;

datas=&quot;db1 db2 db3&quot;

filename=`date +%Y%m%d`

bin_dir=&quot;/usr/local/mysql/bin&quot;

backup_dir=&quot;/root/Dropbox/backup/mysql&quot;

#delete all files 10 days ago

find $backup_dir -mtime +10 -name &quot;*&quot; -exec rm -rf {} \;

#Do each database backup

for data in ${datas}; do

    $bin_dir/mysqldump --opt -u$dbuser -p$dbpassword $data | gzip &gt; $backup_dir/$data$filename.sql.gz

done
</pre>
<p>6、同上一个第6条</p>
<p>7、要备份的数据库填入datas</p>
<h3>三、感受</h3>
<p>因为都在美国的原因，备份到dropbox的速度很快，一个10M的文件备份到dropbox，从开启dropbox服务，马上刷新dropbox的网站就可以看到了。</p>
<p>如果流量很紧张的话，也可以设定dropbox为每周运行，或每5天运行等。应该是需要设定要备份周期，或者结合起来使用。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/595.html" title="体验Linode日本vps">体验Linode日本vps</a></li><li><a href="http://imvoo.com/archives/527.html" title="免费使用一年的Amazon云计算主机">免费使用一年的Amazon云计算主机</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/533.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

