<?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>Quando Omni Flunkus Moritati &#187; Programming</title>
	<atom:link href="http://www.zezore.com/blog/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zezore.com</link>
	<description></description>
	<lastBuildDate>Thu, 18 Feb 2010 10:32:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>วิธีใช้ login ของ wordpress กับ script ที่เราเขียนเอง</title>
		<link>http://www.zezore.com/2008/10/15/programming/single-sign-on-with-wordpress/</link>
		<comments>http://www.zezore.com/2008/10/15/programming/single-sign-on-with-wordpress/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 12:04:56 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.zezore.com/?p=31</guid>
		<description><![CDATA[The script below checks if user already logged in, if not, it will redirect to Wordpress Login page then send the user back after they enter the correct username &#38; password.
มีคนถามเรื่องนี้มา ตัวเราก็อยากรู้เองเหมือนกัน เลยไปค้น ๆ ดูแล้วมั่วเอา ได้ สคริปท์แบบนี้
&#60;?php
require_once(&#8216;wp-load.php&#8217;);
if (!is_user_logged_in())
{
auth_redirect();
}
?&#62;
เป็นการหา cookie ของ wordpress ถ้าไม่เจอจะส่งไปที่หน้า login หลังจากนั้นค่อยส่งกลับมาหน้าเดิม
]]></description>
			<content:encoded><![CDATA[<p>The script below checks if user already logged in, if not, it will redirect to Wordpress Login page then send the user back after they enter the correct username &amp; password.</p>
<p>มีคนถามเรื่องนี้มา ตัวเราก็อยากรู้เองเหมือนกัน เลยไปค้น ๆ ดูแล้วมั่วเอา ได้ สคริปท์แบบนี้</p>
<blockquote><p><span style="color: #ff0000;">&lt;?php</span></p>
<p>require_once(&#8216;wp-load.php&#8217;);<br />
if (!is_user_logged_in())<br />
{<br />
auth_redirect();<br />
}</p>
<p><span style="color: #ff0000;">?&gt;</span></p></blockquote>
<p>เป็นการหา cookie ของ wordpress ถ้าไม่เจอจะส่งไปที่หน้า login หลังจากนั้นค่อยส่งกลับมาหน้าเดิม</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zezore.com/2008/10/15/programming/single-sign-on-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check and cut the strings by length in PHP</title>
		<link>http://www.zezore.com/2008/02/06/programming/check-and-cut-the-strings-by-length-in-php/</link>
		<comments>http://www.zezore.com/2008/02/06/programming/check-and-cut-the-strings-by-length-in-php/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 12:16:58 +0000</pubDate>
		<dc:creator>ZoR</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php function]]></category>
		<category><![CDATA[substr]]></category>

		<guid isPermaLink="false">http://www.zezore.com/2008/02/06/programming/check-and-cut-the-strings-by-length-in-php/</guid>
		<description><![CDATA[function striptext($message, $position)
{
if (strlen($message) &#62; $position) // Check if string length is exceeded
{
$post = substr($message,$position,1);
if ($post !=" ") // If last character is not space
{
while($post !=" ") // Check next character one by one
{
$i=1;
$position=$position+$i;
$post = substr($message,$position,1);
}
}
$post = substr($message,0,$position);
$text = $post . '...'; // Add dots
} else {
$text = $message . '...'; // Or do nothing
}
return($text);
}
Usage: [...]]]></description>
			<content:encoded><![CDATA[<p><code>function striptext($message, $position)<br />
{<br />
if (strlen($message) &gt; $position) <strong>// Check if string length is exceeded</strong><br />
{<br />
$post = substr($message,$position,1);<br />
if ($post !=" ") <strong>// If last character is not space</strong><br />
{<br />
while($post !=" ") <strong>// Check next character one by one</strong><br />
{<br />
$i=1;<br />
$position=$position+$i;<br />
$post = substr($message,$position,1);<br />
}<br />
}<br />
$post = substr($message,0,$position);<br />
$text = $post . '...'; <strong>// Add dots</strong><br />
} else {<br />
$text = $message . '...'; <strong>// Or do nothing</strong><br />
}<br />
return($text);<br />
}</code></p>
<p><strong>Usage:</strong> (Allow only 5 characters to display)<br />
striptext(&#8220;Blah Blah Blah&#8221;, &#8220;5&#8243;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zezore.com/2008/02/06/programming/check-and-cut-the-strings-by-length-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>วิธีแก้ปัญหาโดนบังคับอัพเกรด msn 7.5 เป็น 8.1</title>
		<link>http://www.zezore.com/2007/09/12/programming/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%82%e0%b8%94%e0%b8%99%e0%b8%9a%e0%b8%b1%e0%b8%87%e0%b8%84%e0%b8%b1%e0%b8%9a%e0%b8%ad/</link>
		<comments>http://www.zezore.com/2007/09/12/programming/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%82%e0%b8%94%e0%b8%99%e0%b8%9a%e0%b8%b1%e0%b8%87%e0%b8%84%e0%b8%b1%e0%b8%9a%e0%b8%ad/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 05:32:58 +0000</pubDate>
		<dc:creator>ZoR</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.zezore.com/2007/09/12/programming/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%82%e0%b8%94%e0%b8%99%e0%b8%9a%e0%b8%b1%e0%b8%87%e0%b8%84%e0%b8%b1%e0%b8%9a%e0%b8%ad/</guid>
		<description><![CDATA[zickr_url='http://www.zezore.com/2007/09/12/programming/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%82%e0%b8%94%e0%b8%99%e0%b8%9a%e0%b8%b1%e0%b8%87%e0%b8%84%e0%b8%b1%e0%b8%9a%e0%b8%ad/' ไมโครซอฟท์บังคับให้ผู้ใช้อัพเกรด msn messenger เนื่องจากปัญหาช่องโหว่ MS07-054 ทำให้หลังจากที่เรากดรับ Video Chat หรือ Webcam แล้ว แฮคเกอร์สามารถรันโปรแกรมบางอย่างบนเครื่องเราได้
สำหรับคนที่จะแก้ไขตามวิธีด้านล่าง จะต้องยอมรับความเสี่ยงตามที่บอกไว้
การแก้ไขให้สามารถใช้งาน msn 7.5 ทำตามขั้นตอนนี้
- ปิดโปรแกรม msn 7.5 ดูตรง taskbar ให้แน่ใจว่าไม่มีไอคอนอยู่
- ไปที่ไฟล์ C:\Program Files\MSN Messenger\msnmsgr.exe คลิกขวา เลือก properties
ไปที่แท็บ compatibility เลือก Run this program in compatibility mode for: แล้วเลือก windows 2000
- กด OK แล้วเปิด msn ตามปกติ
]]></description>
			<content:encoded><![CDATA[<p><div class="zickrbutton"><script>zickr_url='http://www.zezore.com/2007/09/12/programming/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%82%e0%b8%94%e0%b8%99%e0%b8%9a%e0%b8%b1%e0%b8%87%e0%b8%84%e0%b8%b1%e0%b8%9a%e0%b8%ad/'</script><script language="javascript" src="http://api.zickr.com/button.js"></script></div> ไมโครซอฟท์บังคับให้ผู้ใช้อัพเกรด msn messenger เนื่องจากปัญหาช่องโหว่ <a href="http://www.microsoft.com/technet/security/Bulletin/MS07-054.mspx" target="_blank" title="Vulnerability in MSN Messenger and Windows Live Messenger Could Allow Remote Code Execution (942099)">MS07-054</a> ทำให้หลังจากที่เรากดรับ Video Chat หรือ Webcam แล้ว แฮคเกอร์สามารถรันโปรแกรมบางอย่างบนเครื่องเราได้</p>
<p><strong>สำหรับคนที่จะแก้ไขตามวิธีด้านล่าง จะต้องยอมรับความเสี่ยงตามที่บอกไว้</strong></p>
<p>การแก้ไขให้สามารถใช้งาน msn 7.5 ทำตามขั้นตอนนี้</p>
<p>- ปิดโปรแกรม msn 7.5 ดูตรง taskbar ให้แน่ใจว่าไม่มีไอคอนอยู่<br />
- ไปที่ไฟล์ C:\Program Files\MSN Messenger\msnmsgr.exe คลิกขวา เลือก properties<br />
ไปที่แท็บ compatibility เลือก Run this program in compatibility mode for: แล้วเลือก windows 2000<br />
- กด OK แล้วเปิด msn ตามปกติ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zezore.com/2007/09/12/programming/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%82%e0%b8%94%e0%b8%99%e0%b8%9a%e0%b8%b1%e0%b8%87%e0%b8%84%e0%b8%b1%e0%b8%9a%e0%b8%ad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
