<?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>Webscriptz.be &#187; programming</title>
	<atom:link href="http://webscriptz.be/tags/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://webscriptz.be</link>
	<description></description>
	<lastBuildDate>Thu, 13 Oct 2011 18:16:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Yii framework: RBAC</title>
		<link>http://webscriptz.be/2011/02/16/yii-framework-rbac/369</link>
		<comments>http://webscriptz.be/2011/02/16/yii-framework-rbac/369#comments</comments>
		<pubDate>Wed, 16 Feb 2011 18:44:43 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[access-control]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[RBAC]]></category>
		<category><![CDATA[role-based-access]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[yii]]></category>
		<category><![CDATA[yii framework]]></category>

		<guid isPermaLink="false">http://webscriptz.be/2011/02/16/yii-framework-rbac/369</guid>
		<description><![CDATA[Rbac in the Yiiframework isn&#8217;t hard at all but how do you keep your db clean and readable code readable and logic! After you have successfully configured the RBAC in /protected/config/main.php you need to insert the sql into your database and introduce your rules and accesses into to table, mine looks like this: And my [...]]]></description>
			<content:encoded><![CDATA[<p>Rbac in the Yiiframework isn&#8217;t hard at all but how do you keep your db clean and readable code readable and logic!</p>
<p>After you have successfully configured the RBAC in /protected/config/main.php you need to insert the sql into your database and introduce your rules and accesses into to table, mine looks like this:</p>
<p><img src="http://webscriptz.be/wp-content/uploads/2011/02/002.png" alt="" title="Selection_001" /></p>
<p>And my code:</p>
<p><img src="http://webscriptz.be/wp-content/uploads/2011/02/001.png" alt="" title="Selection_002" /></p>
<p>This shows you how clean it can be first i have &#8216;moduleName.controllerName.actionName&#8217; which even when working in the db has you focused on what you&#8217;re doing.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2011/02/16/yii-framework-rbac/369" target="_blank"><img src="http://webscriptz.be/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2011/02/16/yii-framework-rbac/369" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2011/02/16/yii-framework-rbac/369/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yii &amp; encryption</title>
		<link>http://webscriptz.be/2010/11/13/yii-encryption/344</link>
		<comments>http://webscriptz.be/2010/11/13/yii-encryption/344#comments</comments>
		<pubDate>Sat, 13 Nov 2010 15:02:45 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[AES]]></category>
		<category><![CDATA[decrypt]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rijdael]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[yii]]></category>

		<guid isPermaLink="false">http://webscriptz.be/2010/11/13/yii-encryption/344</guid>
		<description><![CDATA[I&#8217;ve already said a few things about Yii and the encryption in a few posts prior to this one so now let me help everybody a hand in working with the Yii encryption. Basic Configuration The image is the minimal configuration you will need in &#8216;yourApplication/protected/config/main.php Usage Once you have installed this, the only thing [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve already said a few things about Yii and the encryption in a few posts prior to this one so now let me help everybody a hand in working with the Yii encryption.</p>
<p><strong>Basic Configuration</strong></p>
<p><img class="size-medium wp-image-347 alignnone" title="yiiEncrypt" src="http://webscriptz.be/wp-content/uploads/2010/11/yiiEncrypt.png" alt="" width="620" height="126" /></p>
<p>The image is the minimal configuration you will need in &#8216;yourApplication/protected/config/main.php</p>
<p><strong>Usage</strong></p>
<p>Once you have installed this, the only thing to do is to call for it using the following:</p>
<p>Yii::app()-&gt;secuirtyManager-&gt;encrypt()  &amp; decryp.</p>
<p><strong>A note to the wise</strong></p>
<p>If you, like me, use AES-256, you&#8217;ll need base64_encode &amp; _decode to save it to database if not you won&#8217;t be able to save your passwords and retrieve them correctly.</p>
<p>Using it by encapsulating the Yii::app()-&gt;secuirtyManager-&gt;encrypt() in a base64_encode() if you need to encrypt a password.</p>
<p><a href="http://webscriptz.be/wp-content/uploads/2010/11/yiiEncryptEx.png"><img class="alignnone size-medium wp-image-360" title="yiiEncryptEx" src="http://webscriptz.be/wp-content/uploads/2010/11/yiiEncryptEx.png" alt="" width="740" height="55" /></a></p>
<p>If you want to decode a string you need to encapsulate base64_decode in Yii::app()-&gt;secuirtyManager-&gt;encrypt().</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2010/11/13/yii-encryption/344" target="_blank"><img src="http://webscriptz.be/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2010/11/13/yii-encryption/344" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2010/11/13/yii-encryption/344/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>http://www.smashingmagazine.com/2009/07/&#8230;</title>
		<link>http://webscriptz.be/2010/11/04/httpwww-smashingmagazine-com200907/338</link>
		<comments>http://webscriptz.be/2010/11/04/httpwww-smashingmagazine-com200907/338#comments</comments>
		<pubDate>Thu, 04 Nov 2010 20:32:01 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[link]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://webscriptz.be/2010/11/04/httpwww-smashingmagazine-com200907/338</guid>
		<description><![CDATA[http://www.smashingmagazine.com/2009/07/13/css-3-cheat-sheet-pdf/ Share on Facebook]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.smashingmagazine.com/2009/07/13/css-3-cheat-sheet-pdf/" rel="nofollow">http://www.smashingmagazine.com/2009/07/13/css-3-cheat-sheet-pdf/</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2010/11/04/httpwww-smashingmagazine-com200907/338" target="_blank"><img src="http://webscriptz.be/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2010/11/04/httpwww-smashingmagazine-com200907/338" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2010/11/04/httpwww-smashingmagazine-com200907/338/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rijndael_256 &amp; php &amp; Yii frameworkstoring encrypted data</title>
		<link>http://webscriptz.be/2010/11/02/rijndael_256-php-yii-frameworkstoring-encrypted-data/337</link>
		<comments>http://webscriptz.be/2010/11/02/rijndael_256-php-yii-frameworkstoring-encrypted-data/337#comments</comments>
		<pubDate>Mon, 01 Nov 2010 23:16:04 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[AES]]></category>
		<category><![CDATA[auth]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rijdael]]></category>
		<category><![CDATA[yii]]></category>

		<guid isPermaLink="false">http://webscriptz.be/2010/11/02/rijndael_256-php-yii-frameworkstoring-encrypted-data/337</guid>
		<description><![CDATA[While programming my authentication module today, i&#8217;ve been experimenting with Rijndael 256 or AES as it is also known. This isn&#8217;t hard, at least not the code because php already includes everything as does Yii for that matter, no, the hard thing is to store an encrypted password. AES encodes your password but does so [...]]]></description>
			<content:encoded><![CDATA[<p>While programming my authentication module today, i&#8217;ve been experimenting with Rijndael 256 or AES as it is also known. This isn&#8217;t hard, at least not the code because php already includes everything as does Yii for that matter, no, the hard thing is to store an encrypted password.</p>
<p>AES encodes your password but does so also by using characters that aren&#8217;t &#8216;printable&#8217; at least not as signs. So I basically began looking for a way to have AES encode everything in characters in the ascii range, luckily for me php already has such functions included: base64_encode and _decode which is nice.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2010/11/02/rijndael_256-php-yii-frameworkstoring-encrypted-data/337" target="_blank"><img src="http://webscriptz.be/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2010/11/02/rijndael_256-php-yii-frameworkstoring-encrypted-data/337" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2010/11/02/rijndael_256-php-yii-frameworkstoring-encrypted-data/337/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security mistakes in website application&#8230;</title>
		<link>http://webscriptz.be/2010/10/19/security-mistakes-in-website-application/320</link>
		<comments>http://webscriptz.be/2010/10/19/security-mistakes-in-website-application/320#comments</comments>
		<pubDate>Tue, 19 Oct 2010 07:28:05 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[link]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[mistakes]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://webscriptz.be/2010/10/19/security-mistakes-in-website-application/320</guid>
		<description><![CDATA[Security mistakes in website applications, take a look, it&#8217;s not the usual long explication. http://www.smashingmagazine.com/2010/10/18/common-security-mistakes-in-web-applications/ Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>Security mistakes in website applications, take a look, it&#8217;s not the usual long explication.<br />

<a href="http://www.smashingmagazine.com/2010/10/18/common-security-mistakes-in-web-applications/" rel="nofollow">http://www.smashingmagazine.com/2010/10/18/common-security-mistakes-in-web-applications/</a></p>

<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2010/10/19/security-mistakes-in-website-application/320" target="_blank"><img src="http://webscriptz.be/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2010/10/19/security-mistakes-in-website-application/320" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2010/10/19/security-mistakes-in-website-application/320/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coding right, tips</title>
		<link>http://webscriptz.be/2009/08/21/coding-right-tips/235</link>
		<comments>http://webscriptz.be/2009/08/21/coding-right-tips/235#comments</comments>
		<pubDate>Fri, 21 Aug 2009 00:21:29 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[practice]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://webscriptz.be/?p=235</guid>
		<description><![CDATA[I stumbled upon this when searching for something about code, enjoy! site: freevbcode Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon this when searching for something about code, enjoy!</p>
<p>site: <a href="http://www.freevbcode.com/ShowCode.Asp?ID=2547">freevbcode</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2009/08/21/coding-right-tips/235" target="_blank"><img src="http://webscriptz.be/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2009/08/21/coding-right-tips/235" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2009/08/21/coding-right-tips/235/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony php framework</title>
		<link>http://webscriptz.be/2009/07/27/symfony-php-framework/233</link>
		<comments>http://webscriptz.be/2009/07/27/symfony-php-framework/233#comments</comments>
		<pubDate>Mon, 27 Jul 2009 19:15:27 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[Ci]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[vacation]]></category>
		<category><![CDATA[webframework]]></category>

		<guid isPermaLink="false">http://webscriptz.be/?p=233</guid>
		<description><![CDATA[I&#8217;m attached to codeigniter, I know my way around but codeigniter as a a easy to use but now I want something more darring and so this is it, Symfony framework, I think I&#8217;ll be doing that in my vacation that starts in about a week Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m attached to codeigniter, I know my way around but codeigniter as a a easy to use but now I want something more darring and so this is it, Symfony framework, I think I&#8217;ll be doing that in my vacation that starts in about a week <img src='http://webscriptz.be/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2009/07/27/symfony-php-framework/233" target="_blank"><img src="http://webscriptz.be/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2009/07/27/symfony-php-framework/233" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2009/07/27/symfony-php-framework/233/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter the views and .htaccess</title>
		<link>http://webscriptz.be/2009/03/14/codeigniter-and-views-and-htaccess/219</link>
		<comments>http://webscriptz.be/2009/03/14/codeigniter-and-views-and-htaccess/219#comments</comments>
		<pubDate>Sat, 14 Mar 2009 20:23:53 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[Ci]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://webscriptz.be/?p=219</guid>
		<description><![CDATA[I must admit that I not a huge fan of Frameworks and Patterns because: A) They make things complicated B) Subject you to some nasty code stuff and rules C) Because templating and Frameworks can be water and fire. Codeigniter on the opposite has some advantage on it side for the templating stuff. This is [...]]]></description>
			<content:encoded><![CDATA[<p>I must admit that I not a huge fan of Frameworks and Patterns because:</p>
<blockquote><p>A) They make things complicated</p>
<p>B) Subject you to some nasty code stuff and rules</p>
<p>C) Because templating and Frameworks can be water and fire.</p></blockquote>
<p>Codeigniter on the opposite has some advantage on it side for the templating stuff. This is really a short explanation for a common problem in other framework.</p>
<p>What to do if you want a nice folder structure or have different template styles, remember this is just a basic thing which happen to work in CI 1.7.</p>
<p><code><br />
function index(){<br />
$this-&gt;load-&gt;view('Themename/news/index);<br />
}</code></p>
<p>Just add some slashes an it works so normally it should work if you would make an adaptation for themes too with a variable in it.</p>
<p>The next thing was kind of hard to find on the web so let me share it. It&#8217;s for when you develop with CI and your not working in the root directory of your server.</p>
<p><code><br />
DirectoryIndex index.php<br />
RewriteEngine on<br />
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] </code></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2009/03/14/codeigniter-and-views-and-htaccess/219" target="_blank"><img src="http://webscriptz.be/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2009/03/14/codeigniter-and-views-and-htaccess/219" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2009/03/14/codeigniter-and-views-and-htaccess/219/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MVC again</title>
		<link>http://webscriptz.be/2009/03/09/mvc-again/214</link>
		<comments>http://webscriptz.be/2009/03/09/mvc-again/214#comments</comments>
		<pubDate>Mon, 09 Mar 2009 21:49:06 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[exp]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://webscriptz.be/?p=214</guid>
		<description><![CDATA[I&#8217;ve grew bored of having to deal with some irritating PHP issues so I&#8217;ve turned my back to those and began testing codeIgniter. It seems strait forward but templating already has me intrigued with problems and mod_rewrite needs a look too I think :p . Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve grew bored of having to deal with some irritating PHP issues so I&#8217;ve turned my back to those and began testing codeIgniter. It seems strait forward but templating already has me intrigued with problems and mod_rewrite needs a look too I think :p .</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2009/03/09/mvc-again/214" target="_blank"><img src="http://webscriptz.be/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://webscriptz.be/2009/03/09/mvc-again/214" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2009/03/09/mvc-again/214/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

