<?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>All About Free &#187; 代码</title>
	<atom:link href="http://all.aboutfree.me/tag/%e4%bb%a3%e7%a0%81/feed" rel="self" type="application/rss+xml" />
	<link>http://all.aboutfree.me</link>
	<description></description>
	<lastBuildDate>Sun, 09 Oct 2011 14:00:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://all.aboutfree.me/wp-includes/js/jquery/jquery.js?ver=1.4.4'></script>
<script type="text/javascript">
/* <![CDATA[ */
jQuery.ajax({type:'GET',url:'http://all.aboutfree.me/wp-content/plugins/wp-postviews-plus/postviews_plus.php',data:'todowppvp=add&type=tag&id=208_1',cache:false,dataType:'script'});
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>开心牧场用户等级计算函数</title>
		<link>http://all.aboutfree.me/589</link>
		<comments>http://all.aboutfree.me/589#comments</comments>
		<pubDate>Wed, 21 Oct 2009 23:19:45 +0000</pubDate>
		<dc:creator>Free</dc:creator>
				<category><![CDATA[技术存档]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[uchome]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[函数]]></category>
		<category><![CDATA[开心农场]]></category>
		<category><![CDATA[开心牧场]]></category>
		<category><![CDATA[等级]]></category>

		<guid isPermaLink="false">http://all.aboutfree.me/?p=589</guid>
		<description><![CDATA[编写开心牧场get_user_info请求时候返回的信息时候发现 需要返回一段用户等级的内容 但是翻遍了两个php都没发现有相关的代码 无奈&#8230;从httpwatch上看到Referer: Master.swf?v=1 好吧&#8230;反编译了master.swf&#8230; 找啊找&#8230;终于找到了相关的代码 改写成php代码&#8230; function expToGrade($exp){ return intval(sqrt(($exp+25)/100) - 0.5); }]]></description>
			<content:encoded><![CDATA[<p>编写开心牧场get_user_info请求时候返回的信息时候发现</p>
<p>需要返回一段用户等级的内容</p>
<p>但是翻遍了两个<a href="http://all.aboutfree.me/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>都没发现有相关的代码</p>
<p>无奈&#8230;从httpwatch上看到Referer: Master.swf?v=1</p>
<p>好吧&#8230;反编译了master.swf&#8230;</p>
<p>找啊找&#8230;终于找到了相关的代码</p>
<p><a href="http://all.aboutfree.me/wp-content/uploads/2009/10/new1.PNG"><img class="alignnone size-medium wp-image-590" title="new1" src="http://all.aboutfree.me/wp-content/uploads/2009/10/new1-300x78.PNG" alt="new1" width="300" height="78" /></a></p>
<p>改写成<a href="http://all.aboutfree.me/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>代码&#8230;</p>
<pre class="brush: php; title: ;">function expToGrade($exp){
return intval(sqrt(($exp+25)/100) - 0.5);
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://all.aboutfree.me/589/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

