<?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>Mr. 21 &#187; 开源盛试</title>
	<atom:link href="http://mr21.in/codes/feed" rel="self" type="application/rss+xml" />
	<link>http://mr21.in</link>
	<description>KunMing &#124; SysAdmin &#124; Blogger &#124; G Fans</description>
	<lastBuildDate>Thu, 06 Oct 2011 09:23:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://mr21.in/?pushpress=hub'/>
		<item>
		<title>利用Linux内核的多个安全漏洞提权</title>
		<link>http://mr21.in/codes/linux-kernel-root-level-exploit-leveraging-multiple-previous-vulnerabilities.html</link>
		<comments>http://mr21.in/codes/linux-kernel-root-level-exploit-leveraging-multiple-previous-vulnerabilities.html#comments</comments>
		<pubDate>Sun, 19 Dec 2010 16:39:31 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Kernel Bug]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=372</guid>
		<description><![CDATA[这是来自VPSee的消息，因为我个人试了一下Debian表示没有鸭梨，于是转过来，手痒的Ubunu用户可以试试…… &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-这是手痒的... ]]></description>
			<content:encoded><![CDATA[<p>这是来自<a href="http://www.vpsee.com/2010/12/linux-kernel-root-level-exploit-leveraging-multiple-previous-vulnerabilities/">VPSee的消息</a>，因为我个人试了一下Debian表示没有鸭梨，于是转过来，手痒的Ubunu用户可以试试……</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-这是手痒的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>系统安全高手 Dan Rosenberg 发布了<a href="http://marc.info/?l=full-disclosure&#038;m=129175358621826&#038;w=2">一段 C 程序</a>，这段200多行的程序利用了 Linux Econet 协议的3个安全漏洞，可以导致本地帐号对系统进行拒绝服务或特权提升，也就是说一个普通用户可以通过运行这段程序后轻松获得 root shell，以下在 update 过的 Ubuntu 10.04 Server LTS 上测试通过：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span>
2.6.32-<span style="color: #000000;">21</span>-server
&nbsp;
$ <span style="color: #c20cb9; font-weight: bold;">gcc</span> full-nelson.c <span style="color: #660033;">-o</span> full-nelson
$ .<span style="color: #000000; font-weight: bold;">/</span>full-nelson
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Resolving kernel addresses...
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #7a0874; font-weight: bold;">&#93;</span> Resolved econet_ioctl to 0xffffffffa0131510
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #7a0874; font-weight: bold;">&#93;</span> Resolved econet_ops to 0xffffffffa0131600
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #7a0874; font-weight: bold;">&#93;</span> Resolved commit_creds to 0xffffffff8108b820
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #7a0874; font-weight: bold;">&#93;</span> Resolved prepare_kernel_cred to 0xffffffff8108bc00
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Calculating target...
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Failed to <span style="color: #000000; font-weight: bold;">set</span> Econet address.
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Triggering payload...
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Got root<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>由于 RHEL/CentOS 默认不支持 Econet 协议，所以测试没有通过：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span>
2.6.18-194.26.1.el5
&nbsp;
$ <span style="color: #c20cb9; font-weight: bold;">gcc</span> full-nelson.c <span style="color: #660033;">-o</span> full-nelson
$ .<span style="color: #000000; font-weight: bold;">/</span>full-nelson
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Failed to open <span style="color: #c20cb9; font-weight: bold;">file</span> descriptors.</pre></div></div>

<p>如果在企业环境用 Ubuntu 的话可能会比较杯具了，几百个帐号里总可以找到一两个帐号被内部或外部人员通过上面这段程序拿到 root，这对服务器的危害是毁灭性的。前天还在说 Ubuntu 在内核方面无作为，现在想起来还有点后怕。VPSee 提醒正在使用多个普通帐号登录 Ubuntu VPS 的朋友及时升级或打内核补丁，出售 VPN/SSH 帐号、提供免费 SSH 的商家尤其要小心 “客户” 捣乱，使用其他 Linux 发行版的朋友也最好检查一下自己的 VPS 有没有这些高危漏洞。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-这是手痒的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>21个人的测试，在Debian 5.0.6上测试，结果如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span>
2.6.26-<span style="color: #000000;">2</span>-xen-amd64
$ <span style="color: #c20cb9; font-weight: bold;">gcc</span> h.c <span style="color: #660033;">-o</span> h
$ .<span style="color: #000000; font-weight: bold;">/</span>h
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Resolving kernel addresses...
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #7a0874; font-weight: bold;">&#93;</span> Resolved econet_ioctl to 0xffffffffa017819b
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #7a0874; font-weight: bold;">&#93;</span> Resolved econet_ops to 0xffffffffa01791e0
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Failed to resolve kernel symbols.</pre></div></div>

<p>同时，各位提供SSH番羽墙的童鞋，只要把用户的shell设置为nologin便可以表示没有鸭梨了~</p>
<p>-EOF-</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/linux-kernel-root-level-exploit-leveraging-multiple-previous-vulnerabilities.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>在防火墙后访问cPanel</title>
		<link>http://mr21.in/codes/accessing-cpanel-from-behind-firewall.html</link>
		<comments>http://mr21.in/codes/accessing-cpanel-from-behind-firewall.html#comments</comments>
		<pubDate>Fri, 10 Oct 2008 07:21:13 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[CPanel]]></category>
		<category><![CDATA[cPanel proxy]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=201</guid>
		<description><![CDATA[今天， 有个叫Jimmy Shadow的家伙，购买了一个基于cPanel管理的虚拟空间，不过，他无法通过2082端口访问CP，据说是因为位于校园网络后面，我想应该是防火墙的问题。 于是21使用GG大神经过一番... ]]></description>
			<content:encoded><![CDATA[<p>今天，<br />
有个叫<a href="http://www.jimmyshadow.com/">Jimmy Shadow</a>的家伙，购买了一个基于cPanel管理的虚拟空间，不过，他无法通过2082端口访问CP，据说是因为位于校园网络后面，我想应该是防火墙的问题。</p>
<p>于是21使用GG大神经过一番搜寻，找到一个工具：<strong>cPanel Proxy</strong>。<br />
它的工作原理就是通过Apache的Rewrite规则，将2082端口的访问重定向到一个PHP脚本上，经过试用，效果明显。</p>
<p>大概安装方法如下：（选自<a href="http://liewonheart.com/2008/06/accessing-cpanel-from-behind-firewall/#webproxy">liewonheart.com</a>。）</p>
<ol>
<li>通过Web代理登录你的cPanel；</li>
<li>在Addon Domain（域名附加）模块为你的域名增加一个叫“cpanel”子站点绑定，目录为 /public_html/cpanel/ ；</li>
<li>在域名所属的DNS增加这个记录并指向你的空间IP（如果域名和空间是一块儿买的，那就不需此步）；</li>
<li>下载<a href="http://sourceforge.net/projects/cpanelproxy"><strong>cPanel Proxy</strong></a>（感谢myplacedk写了这个脚本）。</li>
<li>上传<strong>cPanelProxy.zip</strong>里的所有文件到你的 /public_html/cpanel/ 目录。<br />
（21注：或者是/www/cpanel/，也有可能是/cpanel/，根据你的实际情况而定）</li>
<li>编辑并上传包含以下内容的<strong>.htaccess</strong>文件到你的/public_html/cpanel/目录（之前下载的文件包里也有）：

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="conf" style="font-family:monospace;">RewriteEngine on
RewriteCond %{REQUEST_URI} !^/cpanelproxy.php
RewriteRule .* /cpanelproxy.php [last]</pre></td></tr></table></div>

<p>注：如果你的网络无法使用FTP工具，你可以考虑<a href="http://www.net2ftp.com/">net2ftp</a>。</li>
<li>完成了，访问 cpanel.yourdomain.com 即可对你的cPanel进行任何动作了，嘿嘿~</li>
</ol>
<p>以下是引用来源的原文：<span id="more-201"></span></p>
<p>From: <a href="http://liewonheart.com/2008/06/accessing-cpanel-from-behind-firewall/#webproxy">liewonheart.com</a></p>
<blockquote><p>After my hosting order has been confirmed, I cannot enter cPanel either by http://mydomain/cpanel, http://mydomain:2082/ (port 2082) or by http://ip-address/cpanel. Firefox and IE showed disappointing error messages “The connection has timed out.” and “The page cannot be displayed.” respectively.</p>
<p>Then I asked my web host to assist me, but they replied “cPanel of your account is loading fine here”. What?! I was baffled at first, but later I discovered that actually i was behind a strict firewall &#8211; it blocked my connection!</p>
<p>Okay, if you are facing the same problem, please take a look at the solutions below.</p>
<p>Firstly, look for a web proxy.<br />
Proxy helps you bypass firewall. Google “web proxy” now and you will have a bundle of choices. Alternatively, you can use FoxyProxy or similar add-ons in Firefox.</p>
<p>However, it is quite inconvenience if everytime we need to enter web proxy page before getting into cPanel. And also, proxy might leak information about our computer &#8211; compromising our anonymity. Many proxies unknowingly reveal our browser information and referring websites. Some of them even expose our real IP address.</p>
<p>That’s why cPanel proxy comes in.<br />
Load cPanel via web proxy.<br />
Add a subdomain, called it “cpanel”.<br />
Download cPanel proxy (Thanks to myplacedk for writing the script!)<br />
Upload the script cpanelproxy.php to the /public_html/cpanel/ directory.<br />
If firewall blocks your FTP tools (like File Zilla), you can use web ftp net2ftp or FireFTP in Firefox.<br />
Modify/upload the file .htaccess /public_html/cpanel/ to include the following 3 lines:</p>
<p>RewriteEngine on<br />
RewriteCond %{REQUEST_URI} !^/cpanelproxy.php<br />
RewriteRule .* /cpanelproxy.php [last] </p>
<p>If Windows doesn’t allow you to rename the file as .htaccess (because file is not allowed to have no name), do it in your server. </p>
<p>What’s next?<br />
That’s it! Now use cpanel.yourdomain.com to log in cPanel.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/accessing-cpanel-from-behind-firewall.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>请默哀</title>
		<link>http://mr21.in/codes/china_earthquake.html</link>
		<comments>http://mr21.in/codes/china_earthquake.html#comments</comments>
		<pubDate>Mon, 19 May 2008 05:03:34 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[哀悼]]></category>
		<category><![CDATA[地震]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=191</guid>
		<description><![CDATA[博客、网站单色（灰度）显示，请在CSS中加入以下代码： * {filter: Gray;} 或者在&#60;/body>前加入以下代码 &#60;style>* {filter: Gray;} &#60;/style> 国务院公告 为表达全国各族人民对四川汶川大地震遇难同... ]]></description>
			<content:encoded><![CDATA[<p>博客、网站单色（灰度）显示，请在CSS中加入以下代码：</p>
<blockquote><p>* {filter: Gray;}</p></blockquote>
<p>或者在&lt;/body>前加入以下代码</p>
<blockquote><p>&lt;style>* {filter: Gray;} &lt;/style></p></blockquote>
<blockquote><p><strong>国务院公告 </strong></p>
<p>为表达全国各族人民对四川汶川大地震遇难同胞的深切哀悼,国务院决定,2008年5月19日至21日为全国哀悼日。在此期间,全国和各驻外机构下半旗志哀,停止公共娱乐活动,外交部和我国驻外使领馆设立吊唁簿。5月19日14时28分起,全国人民默哀3分钟,届时汽车、火车、舰船鸣笛，防空警报鸣响。</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/china_earthquake.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhpMyAdmin 2.9</title>
		<link>http://mr21.in/codes/phpmymdmin-29.html</link>
		<comments>http://mr21.in/codes/phpmymdmin-29.html#comments</comments>
		<pubDate>Wed, 03 Jan 2007 07:28:29 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://mr21.in/2007-01-177.html</guid>
		<description><![CDATA[在配置服务器发现新出的PMA 2.9.X都会出现一个问题， 我这里是设置为COOKIE登陆的，不论使用任何用户名，都会提示 错误 #1045 - Access denied for user 'mysql'@'localhost' (using password: NO) 不过，值得注意... ]]></description>
			<content:encoded><![CDATA[<p>在配置服务器发现新出的PMA 2.9.X都会出现一个问题，</p>
<p>我这里是设置为COOKIE登陆的，不论使用任何用户名，都会提示</p>
<pre>
错误
#1045 - Access denied for user 'mysql'@'localhost' (using password: NO)
</pre>
<p>不过，值得注意的是，其中的“MYSQL”不是真正的用户，而是另外的，<br />
搜索了一下，有些人的提示是</p>
<pre>
错误
#1045 - Access denied for user 'phpmyadmin'@'localhost' (using password: NO)
</pre>
<p>理论上应该是我猜测有可能是IIS用户名或者目录名。</p>
<p>目前尚未解决。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;我更新啦！&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Update: March 25th, 2008<br />
原因是启用了PHP的Safe_Mode，关闭就可以了。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/phpmymdmin-29.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>温和的被嵌入提示</title>
		<link>http://mr21.in/codes/%e6%b8%a9%e5%92%8c%e7%9a%84%e8%a2%ab%e5%b5%8c%e5%85%a5%e6%8f%90%e7%a4%ba.html</link>
		<comments>http://mr21.in/codes/%e6%b8%a9%e5%92%8c%e7%9a%84%e8%a2%ab%e5%b5%8c%e5%85%a5%e6%8f%90%e7%a4%ba.html#comments</comments>
		<pubDate>Sun, 07 May 2006 10:23:01 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客贴士]]></category>

		<guid isPermaLink="false">http://mr21.in/2006/05/07/%e6%b8%a9%e5%92%8c%e7%9a%84%e8%a2%ab%e5%b5%8c%e5%85%a5%e6%8f%90%e7%a4%ba/</guid>
		<description><![CDATA[我记得原来WP用户很流行使用一段Javascript以防止被嵌入框架，但是对于新版的WP来说，Preview就造成了不小的困扰。 我记得有人建议修改post.php来取消Preview功能， 不过，我修改了一下代码，用一... ]]></description>
			<content:encoded><![CDATA[<p>我记得原来WP用户很流行使用一段Javascript以防止被嵌入框架，但是对于新版的WP来说，Preview就造成了不小的困扰。</p>
<p>我记得有人建议修改post.php来取消Preview功能，<br />
不过，我修改了一下代码，用一个更温和的方式提示用户，而不是强制转向，这样多少有点作用，也不会影响自己编辑POST了。</p>
<blockquote><p>&lt;SCRIPT LANGUAGE=&#8221;javascript&#8221;><br />
	if (top.location != self.location)window.alert(&#8220;您目前是通过框架浏览本站，建议直接从http://mr21.in访问以获取最新讯息&#8221;);<br />
&lt;/SCRIPT></p></blockquote>
<p>效果很简单，就是弹一个对话框提示访客，提示内容请自己更改。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
附带一个用于连接打开远程终端服务的 Windows 2000/XP/2003 的基于ActiveX的<strong>远程桌面（RemoteDesktop）连接器WEB版</strong>。<br />
<strong>支持自定义端口。</strong><br />
俗称：3389<br />
地址：</p>
<p>http://www.weki.cn/3389/default.htm</p>
<p>下载：<br />
http://www.weki.cn/3389/3389.zip (414k) </p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/%e6%b8%a9%e5%92%8c%e7%9a%84%e8%a2%ab%e5%b5%8c%e5%85%a5%e6%8f%90%e7%a4%ba.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Kill 61.136.57.198</title>
		<link>http://mr21.in/codes/kill-6113657198.html</link>
		<comments>http://mr21.in/codes/kill-6113657198.html#comments</comments>
		<pubDate>Sat, 24 Sep 2005 14:54:31 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[CNC]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[ISP]]></category>

		<guid isPermaLink="false">http://mr21.in/2005/09/24/kill-6113657198/</guid>
		<description><![CDATA[恩&#8230; 可能标题有点误导性质，不过我真没想教大家干坏事， （查看了一下统计，云南的IP就有26个） 针对最近云南地区的CNC frame事件，想了一个解决的办法， 不过只是对个人网站有帮助而... ]]></description>
			<content:encoded><![CDATA[<p>恩&#8230;<br />
可能标题有点误导性质，不过我真没想教大家干坏事，<br />
（查看了一下统计，云南的IP就有26个）</p>
<p>针对最近云南地区的CNC frame事件，想了一个解决的办法，<br />
不过只是<strong>对个人网站有帮助而已</strong>，<br />
如果你只是浏览中被加上CNC frame，那估计还是没办法的。</p>
<p>说白了，就是防止被别人frame的代码，<br />
如果你有个人网站，并且不希望 云南的网友 访问的时候出现在一个CNC frame里面，那么，请用这个吧：</p>
<p>Code:</p>
<pre>
&lt;SCRIPT LANGUAGE=javascript&gt;
&lt;!--
if (top.location != self.location)top.location=self.location;
--&gt;
&lt;/SCRIPT&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/kill-6113657198.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[MT Plugin]StyleCatcher 1.01</title>
		<link>http://mr21.in/codes/mt-pluginstylecatcher-10.html</link>
		<comments>http://mr21.in/codes/mt-pluginstylecatcher-10.html#comments</comments>
		<pubDate>Sun, 04 Sep 2005 10:54:38 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[MovableType]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://mr21.in/2005/09/04/mt-pluginstylecatcher-10/</guid>
		<description><![CDATA[在WordPress上，自带有Theme Manager，MovableType 3.17的时候，只发现有模板编辑器，却没提供模板管理/切换的工具。 Movable Type 3.2 出来以后，官方极力推荐了一款名为 StyleCatcher 的插件， 根据官方的... ]]></description>
			<content:encoded><![CDATA[<p>在WordPress上，自带有Theme Manager，MovableType 3.17的时候，只发现有模板编辑器，却没提供模板管理/切换的工具。</p>
<p>Movable Type 3.2 出来以后，官方极力推荐了一款名为 <a href="http://www.sixapart.com/movabletype/news/2005/08/stylecatcher_pu.html">StyleCatcher</a> 的插件，<br />
根据官方的介绍，可以知道这是一款用来管理/切换MT模板的插件。</p>
<div class="flip"><img src="http://static.flickr.com/22/40053647_ce4f2a519c.jpg" alt="" /></div>
<p>安装很简单，把下载的StyleCatcher-1.0.zip解压以后，直接用FTP上传到MT的安装目录就行，（请注意，*NIX主机权限应为755）<br />
后台里面默认是启用的，</p>
<p><img src="http://www.sixapart.com/i/mt_styles_remixer_thumb.gif" alt="" /><br />
在后台的Plugins管理单元，点击 StyleCatcher 就可以进入主题管理了。<br />
点击 Find Style 就会开始寻找官方主题库（Style Libry）里面的主题，选择主题后，在右下脚的Blog列表选择一个，确定就行。</p>
<p>相关：<br />
StyleCatcher 1.01: http://www.sixapart.com/pronet/code/StyleCatcher-1.01.zip<br />
MT Styles: http://www.sixapart.com/movabletype/styles/</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/mt-pluginstylecatcher-10.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replaces My counts</title>
		<link>http://mr21.in/codes/replaces-my-counts.html</link>
		<comments>http://mr21.in/codes/replaces-my-counts.html#comments</comments>
		<pubDate>Sun, 07 Aug 2005 10:59:12 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[Counts]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://mr21.in/2005/08/07/replaces-my-counts/</guid>
		<description><![CDATA[经过半个星期的不断跟踪，发现Mo100是彻底没希望了，本希望它会死灰复燃，结果是一沉到底， 不过，出于谋种预感，之前就申请了“我要啦(51.la)”的统计器，而“一统天下”的已经没法申请... ]]></description>
			<content:encoded><![CDATA[<p>经过半个星期的不断跟踪，发现Mo100是彻底没希望了，本希望它会死灰复燃，结果是一沉到底，<br />
不过，出于谋种预感，之前就申请了“我要啦(51.la)”的统计器，而“一统天下”的已经没法申请，VIP的我又不够格……</p>
<p>根据模糊的记忆，大概有几K的IP吧，不过也无所谓了，弄个站嘛，没追求这么多余的东西。</p>
<p>同时给每篇POST加个[English]，用来翻译文章的，Translate by Google.<br />
顺便修改了一下时间的显示格式，表现得跟我的日记一致。</p>
<p>最近估计要生篇POST骂一下Super Girl/Sound了.. .. ..像MM的都完了，剩下的.. .. ..SIGH!</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/replaces-my-counts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Popularization Code of FireFox</title>
		<link>http://mr21.in/codes/popularization-code-of-firefox.html</link>
		<comments>http://mr21.in/codes/popularization-code-of-firefox.html#comments</comments>
		<pubDate>Sun, 01 May 2005 03:21:45 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Popularization]]></category>

		<guid isPermaLink="false">http://live21.makemyblog.info/?p=46</guid>
		<description><![CDATA[在GG上搜索到一个GG公益问题答案的网站，就COPY了一端推广代码下来。 希望看到的人都使用一下，推广一下OSS事业~！ 您现在使用的是IE浏览器，这似乎不是一个很好的选择。我们建议您使用更... ]]></description>
			<content:encoded><![CDATA[<p>在GG上搜索到一个<a href="http://gfans.org/psas-list/zh_CN/">GG公益问题答案的网站</a>，就COPY了一端推广代码下来。<br />
希望看到的人都使用一下，推广一下OSS事业~！</p>
<pre>
<!--Firefox推广代码-->
<table id="MSIEalert" summary="Spread Firefox" style="background:#FFFFE1;border:1px solid #ccc;margin:0px;font-size:14px;cursor:pointer;cursor:hand;width:100%;display:none;" onclick="window.location='http://www.mozilla.net.cn/firefox/'">
<tr>
<td style="width:20px;padding:5px 0 5px 5px;">
<img alt="No IE!" src="http://www.mozilla.net.cn/spread/images/warn.gif" style="border:0px;width:16px;height:16px;"/>
</td>
<td style="padding:5px 5px 5px 0;">
您现在使用的是IE浏览器，这似乎不是一个很好的选择。我们建议您使用更快速、安全的Firefox浏览器浏览本站。
</td>
<td style="text-align:right;padding:5px;">
<img alt="Close" src="http://www.mozilla.net.cn/spread/images/close.gif" style="border:0px;width:16px;height:16px;" onclick="closeMSIEalert()"/>
</td>
</tr>
</table>

<script type="text/javascript">
<!--
if (navigator.userAgent.indexOf("MSIE") != -1 &#038;&#038; document.cookie.indexOf("AlertCloseTime=") == -1) {
    document.getElementById('MSIEalert').style.display = "";
}
function closeMSIEalert(){
    event.cancelBubble=true;
    document.getElementById('MSIEalert').style.display='none';
    document.cookie = "AlertCloseTime=1; path=/";
}
//-->
</script>
<!--Firefox推广代码结束-->
</pre>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/popularization-code-of-firefox.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>CC License</title>
		<link>http://mr21.in/codes/cc-license.html</link>
		<comments>http://mr21.in/codes/cc-license.html#comments</comments>
		<pubDate>Wed, 13 Apr 2005 11:03:54 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[Creative Commons License]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Logo]]></category>

		<guid isPermaLink="false">http://live21.makemyblog.info/?p=39</guid>
		<description><![CDATA[现在很多网站都宣称使用CCL（Creative Commons License，创作共用协议）协议，并且附带之类的LOGO。 不过，我们如果使用Firefox并且加载了mozcc插件的话，会发现很多自称使用了CCL的网站没有任何标示... ]]></description>
			<content:encoded><![CDATA[<p>现在很多网站都宣称使用CCL（Creative Commons License，创作共用协议）协议，并且附带<img src="http://creativecommons.org/images/public/somerights20.png" alt="Creative Commons License" />之类的LOGO。<br />
不过，我们如果使用<a href="http://www.mozilla.org.cn">Firefox</a>并且加载了<a href="http://yergler.net/projects/mozcc/">mozcc</a>插件的话，会发现很多自称使用了CCL的网站没有任何标示，所以，我们需要正确使用CCL标示。</p>
<p><b>正确使用CCL标示：</b></p>
<p>http://creativecommons.org/license/</p>
<p>选项后，使用其提供的代码。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/cc-license.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>E-Mail Icon</title>
		<link>http://mr21.in/codes/e-mail-icon.html</link>
		<comments>http://mr21.in/codes/e-mail-icon.html#comments</comments>
		<pubDate>Mon, 11 Apr 2005 10:51:09 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[E-mail]]></category>
		<category><![CDATA[Icon]]></category>

		<guid isPermaLink="false">http://live21.makemyblog.info/?p=29</guid>
		<description><![CDATA[记得去年就有这东西了，当时老BLOG上就用IFRAME发布了，既然是新BLOG，再发一下~~ http://www.nhacks.com/email/index.php 可以生成很多种的EMAIL ICON，其中还包括了QQ.com呢！ 当然，大名鼎鼎的GMAIL，HOTMAIL... ]]></description>
			<content:encoded><![CDATA[<p>记得去年就有这东西了，当时<a href="http://cdis.blogcn.com">老BLOG</a>上就用IFRAME发布了，既然是新BLOG，再发一下~~</p>
<p>http://www.nhacks.com/email/index.php</p>
<p>可以生成很多种的EMAIL ICON，其中还包括了QQ.com呢！<br />
当然，大名鼎鼎的GMAIL，HOTMAIL都在呢，至于怎么需要呢，大家自己去弄喽，填进自己的邮箱用户名，然后选择后缀，点Generate后就可以生成了，估计是用了PHP中GD库的支持，不过也不错啦~~等找一个就弄我自己这里~~</p>
<p>示例：（我弄了一些自己的邮箱）<br />
<img src="http://www.nhacks.com/email/email.php?mail_e=JQi57w9b&#038;iv=S6eSWRo%3D&#038;domain=SG90bWFpbA%3D%3D&#038;ext=3" alt="" /><br />
<img src="http://www.nhacks.com/email/email.php?mail_e=0wbGE7Il&#038;iv=wwOdVDk%3D&#038;domain=TVNO&#038;ext=0" alt="" /><br />
<img src="http://www.nhacks.com/email/email.php?mail_e=EecTQmzH&#038;iv=l3Hfz%2BQ%3D&#038;domain=R01haWw%3D&#038;ext=0" alt="" /><br />
<img src="http://www.nhacks.com/email/email.php?mail_e=3u0yVufb&#038;iv=kH24Jc0%3D&#038;domain=WWFob28%3D&#038;ext=1" alt="" /><br />
<img src="http://www.nhacks.com/email/email.php?mail_e=HAx%2By99a&#038;iv=C0FN3AQ%3D&#038;domain=UVE%3D&#038;ext=0" alt="" /></p>
<p>大家自己实验吧~~~</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/e-mail-icon.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>可伸缩菜单</title>
		<link>http://mr21.in/codes/%e5%8f%af%e4%bc%b8%e7%bc%a9%e8%8f%9c%e5%8d%95.html</link>
		<comments>http://mr21.in/codes/%e5%8f%af%e4%bc%b8%e7%bc%a9%e8%8f%9c%e5%8d%95.html#comments</comments>
		<pubDate>Sun, 13 Mar 2005 07:47:42 +0000</pubDate>
		<dc:creator>贰壹</dc:creator>
				<category><![CDATA[开源盛试]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[博客贴士]]></category>

		<guid isPermaLink="false">http://live21.makemyblog.info/?p=6</guid>
		<description><![CDATA[功能实现分为两部分，主体代码+菜单代码。 主体代码改变TD菜单的显示和隐藏状态（即修改TD部分的STYLE的DISPLAY部分，用于控制TD是否显示的）； 菜单代码实现功能控制和默认状态控制（使用on... ]]></description>
			<content:encoded><![CDATA[<p>功能实现分为两部分，<b>主体代码+菜单代码</b>。<br />
<b>主体代码</b>改变TD菜单的显示和隐藏状态（即修改TD部分的STYLE的DISPLAY部分，用于控制TD是否显示的）；<br />
<b>菜单代码</b>实现功能控制和默认状态控制（使用onclick跟style:display控制）</p>
<p>主体代码：</p>
<pre>
<script language=JavaScript>
function ico(ss)
        {
         if (ss.style.display=="none") 
          {ss.style.display="";           
        }
         else
          {ss.style.display="none";            
          }
        } 
</script>
</pre>
<p>TD菜单部分代码：<br />
<b>默认显示菜单：</b></p>
<pre>
控制部分：
<td class=menufont onclick=ico(placard) width=198></td>

状态显示：
<td class=biaogbf id=aboutm width=198></td>
</pre>
<p><b>默认隐藏菜单：</b></p>
<pre>
控制部分：
<td class=menufont onclick=ico(placard) width=198></td>

状态显示：
<td class=biaogbf id=aboutm width=198 style="display: none;"></td>
</pre>
<p>从代码上很容易看出，这只是简单改变TD的display状态而实现实时的显示/隐藏表格菜单，<br />
不过有个缺陷，就是代码只应用于表格效果最好，至于IMG也行，但是单纯的文字就不可能了，怎么说也要有个控制层。</p>
<p>恩，演示可以查看我在BLOGCN的BLOG：http://cdis.blogcn.com<br />
有什么问题请留言。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/codes/%e5%8f%af%e4%bc%b8%e7%bc%a9%e8%8f%9c%e5%8d%95.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

