<?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>Aaron Jefferson Villanueva&#039;s Blog Site&#187; PHP</title>
	<atom:link href="http://malebolgia.shadowsonawall.net/category/code-programming/php/feed" rel="self" type="application/rss+xml" />
	<link>http://malebolgia.shadowsonawall.net</link>
	<description>Programming / Designing Blogging from windows to mac.</description>
	<lastBuildDate>Fri, 06 Aug 2010 02:40:24 +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>Cake using Multiple Select Checkboxes</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/cake-using-multiple-select-checkboxes.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/cake-using-multiple-select-checkboxes.html#comments</comments>
		<pubDate>Thu, 03 Dec 2009 02:26:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[explode function]]></category>
		<category><![CDATA[form helper]]></category>
		<category><![CDATA[implode function]]></category>
		<category><![CDATA[multiple select checkboxes]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=150</guid>
		<description><![CDATA[A sample on how to use multiple select checkbox within cakephp views and controller.
&#160;

After reviewing the http://api.cakephp.org/file/cake/libs/view/helpers/form.php#method-FormHelperselect 
1.) Inserting to database
-View Decleration Example.


1
2
3
4
5
6
7
8
9
10
11
 &#60;?php 
//add.ctp for example
?&#62;
     &#60;em&#62;How would you describe your job (mark as many as applies):   &#60;/em&#62;
           [...]]]></description>
			<content:encoded><![CDATA[<p>A sample on how to use <span style="color: #333300;"><strong>multiple select checkbox</strong></span> within cakephp views and controller.</p>
<p>&nbsp;</p>

<p>After reviewing the <strong><a href="http://api.cakephp.org/file/cake/libs/view/helpers/form.php#method-FormHelperselect" target = "_blank">http://api.cakephp.org/file/cake/libs/view/helpers/form.php#method-FormHelperselect</a></strong></p> <br />
<p><strong><span style="color: #993300;">1.) Inserting to database</span></strong></p>
<p>-View Decleration Example.</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #666666; font-style: italic;">//add.ctp for example</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
     &lt;em&gt;How would you describe your job (mark as many as applies):   &lt;/em&gt;
           <span style="color: #000000; font-weight: bold;">&lt;?php</span>       <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">input</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'describeJob'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'div'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'select'</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'multiple'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'checkbox'</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'legend'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'false'</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'options'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Physical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Physical'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Mental'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Mental'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Stressful'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Stressful'</span><span style="color: #339933;">,</span>  <span style="color: #0000ff;">'Easy-going'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Easy-going'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Secure'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Secure'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Non-secure'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Non-secure'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Exhausting'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Exhausting'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Relaxing'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Relaxing'</span> <span style="color: #009900;">&#41;</span>
                                                      <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>




<p>-On your controller. Use implode php function and add a seperator that you like, for this example I use ","</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
 <span style="color: #666666; font-style: italic;">//job_controller @add() function</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Job'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'describeJob'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Job'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'describeJob'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">create</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>



<p><br /> <span style="color: #993300;"><strong>2.) Editing part, Retrieving values of the datafield to mark check on those were choosen before.  <br /><span style="color: #D83E1C;"> -View Decleration Example. In this example I used explode function of php directly in the view, notice the <span style="color: #4B692D;"> <em>"selected"</em> </span> option added in to the $form-&gt;input helper, this will get the values, supposed to be check in that field.</span></strong></span></p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #666666; font-style: italic;">//edit.ctp for example</span>
       <span style="color: #000088;">$piecesJob</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">,</span>  <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Job'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'describeJob'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
             <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">input</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'describeJob'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'div'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'select'</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'multiple'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'checkbox'</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'legend'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'false'</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'options'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Physical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Physical'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Mental'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Mental'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Stressful'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Stressful'</span><span style="color: #339933;">,</span>  <span style="color: #0000ff;">'Easy-going'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Easy-going'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Secure'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Secure'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Non-secure'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Non-secure'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Exhausting'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Exhausting'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Relaxing'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Relaxing'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                                                    <span style="color: #0000ff;">'selected'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$piecesJob</span>   <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>



<p><strong>That's it</strong> <img src='http://malebolgia.shadowsonawall.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/cake-using-multiple-select-checkboxes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cake Baking Models &#8211; Cannot see other tables</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/cake-baking-models-cannot-see-other-tables.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/cake-baking-models-cannot-see-other-tables.html#comments</comments>
		<pubDate>Sun, 08 Nov 2009 02:57:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[tabke]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=131</guid>
		<description><![CDATA[
Problem.After I updated the database, I added 1 table; relate it to another table, and go to the command line to bake what I did, after typing "cake bake model" at the command prompt, I found out that the recently added table was not listed.

&#160;
Reason.Cake caches your model schema. Solution.1.) Clear your cache by deleting all files [...]]]></description>
			<content:encoded><![CDATA[
<p><strong><span style="color: #ff0000;">Problem.</span></strong><br />After I updated the database, I added 1 table; relate it to another table, and go to the command line to bake what I did, after typing "<span style="color: #993300;"><em>cake bake model</em></span>" at the command prompt, I found out that the recently added table was not listed.</p>
<p><a href="http://malebolgia.shadowsonawall.net/wp-content/uploads/2009/11/cake-table-large.jpg"><img class="size-full wp-image-130" title="Cake PHP Bake Model Problem" src="http://malebolgia.shadowsonawall.net/wp-content/uploads/2009/11/cake-table-smal.jpg" alt="Cake PHP Bake Model Problem" width="200" height="101" /></a></p>
<p>&nbsp;</p>
<p><strong><span style="color: #800000;">Reason.</span></strong><br />Cake caches your model schema. <br /><br /><strong><span style="color: #99cc00;">Solution.</span></strong><br />1.) <br />Clear your cache by deleting all files in your app's <strong><span style="color: #333300;"><span style="text-decoration: underline;">tmp/cache/models/</span></span></strong> <br /><span style="color: #333300;"><strong><span style="text-decoration: underline;">and tmp/cache/persistent/</span></strong></span><br /><br />2.) <br />Disable caching in your app's config/core.php // make sure to enable back again in production setup</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * Turn off all caching application-wide.  *  
 */</span>  
Configure<span style="color: #339933;">::</span><span style="color: #004000;">write</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Cache.disable'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>



<p>After doing the solution, I can now successfully bake the new table.</p>
]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/cake-baking-models-cannot-see-other-tables.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Work Telephone: Paypal Sandbox</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/work-telephone-paypal-sandbox.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/work-telephone-paypal-sandbox.html#comments</comments>
		<pubDate>Fri, 21 Nov 2008 10:10:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Paypal Sandbox]]></category>
		<category><![CDATA[Phone Number]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=94</guid>
		<description><![CDATA[Work Telephone: The phone number is not properly formatted. 
&#13; And I'm only trying this for Registering&#160; &#34;Business Account&#34; on sandbox.
&#13; 
&#13; This link would help click here
&#13;

&#13; &#160; Try using this format&#160; xxx yyy zzzz (308 555&#160;1234) to get past the code&#160;and get into the account. Then once in the account, you can update [...]]]></description>
			<content:encoded><![CDATA[<b><span style="color: rgb(153, 51, 0);">Work Telephone: The phone number is not properly formatted. </span></b><br />
&#13; And I'm only trying this for Registering&nbsp; &quot;Business Account&quot; on sandbox.<br />
&#13; <br />
&#13; This link would help <a href="http://www.paypaldeveloper.com/pdn/board/message?board.id=basicpayments&amp;thread.id=1195&amp;view=by_date_ascending&amp;page=9">click here</a><br />
&#13;
<p style="background-color: rgb(192, 192, 192);"><br />
&#13; &nbsp; <span style="font-size: small;"><b><i>Try using this format&nbsp; xxx yyy zzzz (308 555&nbsp;1234) </i></b><i>to get past the code&nbsp;and get into the account. Then once in the account, you can update the account information to the correct phone number through Profile> phone number.</i><br />
&#13; <br />
&#13; &nbsp; Frank I.<br />
&#13; &nbsp; PayPal Certified Developer<br />
&#13; &nbsp; PayPal PayWatch Analyst<br />
&#13; &nbsp; http://www.paypaldeveloper.com<br />
&#13; &nbsp; PayPal, an eBay Company</span><span style="font-size: smaller;"><br />
&#13; <br />
&#13; </span></p>
&#13; <b><span style="color: rgb(153, 51, 0);">The Social Security Number you entered cannot be validated.</span></b><br />
&#13; <br />
&#13; This link would help <a href="http://www.pdncommunity.com/pdn/board/message?board.id=sandbox&amp;message.id=2979">click here</a><br />
&#13;
<p style="background-color: rgb(192, 192, 192);"><br />
&#13; &nbsp; <span style="font-size: small;">A social security number needed to be added. <b>This can be done by you, the number must start with '111'</b>. <br />
&#13; <br />
&#13; &nbsp; Frank I. <br />
&#13; &nbsp; PayPal Certified Developer <br />
&#13; &nbsp; PayPal PayWatch Analyst <br />
&#13; &nbsp; http://www.paypaldeveloper.com <br />
&#13; &nbsp; PayPal, an eBay Company <br />
&#13; <br />
&#13; <br type="_moz" />
&#13; </span></p>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/work-telephone-paypal-sandbox.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CMSMS FrontEnd User Hack&#8230;</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/cmsms-frontend-user-hack-for-automatic-login.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/cmsms-frontend-user-hack-for-automatic-login.html#comments</comments>
		<pubDate>Tue, 30 Sep 2008 05:29:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Automatic Login]]></category>
		<category><![CDATA[CMSMS FrontEnd User]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=51</guid>
		<description><![CDATA[CMSMS FrontEnd User Hack for Automatic Login 

The following step by step method I did Integrating CMSMS and amember for automatic login
&#13; 
&#13; Current Version of FrontEndUsers plugin is 1.5.2
&#13; CMSMS Version 1.4.1
&#13; 
&#13; For Session - I used&#13;

&#13; &#160;&#160;&#160; $_SESSION['fe_user_logged_in'] //- just passing a non sense string   not important.
&#13; &#160;&#160;&#160; $_SESSION['fe_int_username'] //- [...]]]></description>
			<content:encoded><![CDATA[<strong>CMSMS FrontEnd User Hack for Automatic Login</strong> <br />

The following step by step method I did Integrating CMSMS and amember for automatic login<br />
&#13; <br />
&#13; Current Version of <span style="color: rgb(153, 51, 0);"><b>FrontEndUsers</b></span> plugin is 1.5.2<br />
&#13; <span style="color: rgb(0, 128, 128);"><b>CMSMS</b></span> Version 1.4.1<br />
&#13; <br />
&#13; <b><span style="color: rgb(128, 0, 0);">For Session - I used</span></b><span style="font-size: smaller;">&#13;
<p style="background-color: rgb(192, 192, 192);"><br />
&#13; &nbsp;&nbsp;&nbsp; $_SESSION['fe_user_logged_in'] //- just passing a non sense string <img src='http://malebolgia.shadowsonawall.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  not important.<br />
&#13; &nbsp;&nbsp;&nbsp; $_SESSION['fe_int_username'] //- passing username value<br />
&#13; &nbsp;&nbsp;&nbsp; $_SESSION['fe_int_password'] //- passing password value<br />
&#13; &nbsp;</p>
&#13; <span style="color: rgb(255, 0, 0);"><i><span style="font-size: larger;">Note: I used Custom Session variables, cause on my current project I used 4 different apps to pass this session variables... If you are only integrating cmsms on amember, I advice that you get the session of amember</span><span style="font-size: larger;"> username and password.</span></i></span><span style="color: rgb(0, 128, 128);"><b><span style="font-size: larger;"><br />
&#13; <br />
&#13; CMSMS</span></b></span><span style="font-size: larger;"><br />
&#13; Front End User Login</span><br />
&#13; </span> -----------------------------------------------------------------------------------------------------<br />
&#13; <b>1</b>.)at [<span style="color: rgb(51, 51, 0);">index.php</span>] root of cmsms<br />
&#13; add <b><span style="color: rgb(255, 102, 0);">session_start();</span></b> at the beginning<br />
&#13; <br />
&#13; over modules folder find<br />
&#13; <span style="color: rgb(153, 51, 0);"><i>FrontEndUsers</i></span> folder<br />
&#13; <br />
&#13; <b>2</b>.)Injecting the Sessions<br />
&#13; <br />
&#13; on - [<span style="color: rgb(51, 51, 0);">action.do_login.php</span>]<br />
&#13; <br />
&#13; find (could be) on line 80:<br />
&#13;
<p style="background-color: rgb(192, 192, 192);"><span style="font-size: smaller;">&nbsp;&nbsp;&nbsp;&nbsp; <br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $this->Audit( 0, $this->Lang('friendlyname'),<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $this->Lang('frontenduser_loggedin').&quot;: &quot;.$params['feu_input_username'] );<br />
&#13; <br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; //<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; // we're logged in<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; //<br />
&#13; <br />
&#13; </span></p>
&#13; put these following code at bottom of it:&#13;
<p style="background-color: rgb(192, 192, 192);"><span style="font-size: smaller;">&nbsp;&nbsp;&nbsp;&nbsp; <br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; /* Custom Login Session */<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $_SESSION['fe_user_logged_in'] = &quot;logged_in&quot;; // store session data<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $_SESSION['fe_int_username'] = $params['feu_input_username']; //username<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $_SESSION['fe_int_password'] = $params['feu_input_password']; //password<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; session_write_close();<br />
&#13; <br />
&#13; </span></p>
&#13; <b>3</b>.)Erasing the Session<br />
&#13; <br />
&#13; on - [<span style="color: rgb(51, 51, 0);">action.logout.php</span>]<br />
&#13; <br />
&#13; find (could be) on line 53:<br />
&#13;
<p style="background-color: rgb(192, 192, 192);">&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: smaller;"><span style="background-color: rgb(192, 192, 192);"> <br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $this->SendEvent( 'OnLogout', $parms );<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $this->_SendNotificationEmail('OnLogout',$parms);<br />
&#13; <br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; // we're logged out<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; // redirect somewhere <br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; // todo, add more options here.<br />
&#13; </span></span></p>
&#13; put these following code at bottom of it:<span style="font-size: smaller;">&#13;
<p style="background-color: rgb(192, 192, 192);"><br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; /* Custom Logout Session */<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $_SESSION['fe_user_logged_in'] = NULL; // store session data as NULL<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $_SESSION['fe_int_username'] = NULL;<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; $_SESSION['fe_int_password'] = NULL;<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp; session_write_close();<br />
&#13; &nbsp;</p>
&#13; </span><b>4</b>.)This is not necessary but if you want to custom design or name on your login boxes you can edit the hard code at:<br />
&#13; <br />
&#13; [<span style="color: rgb(51, 51, 0);">function.user_loginform.php</span>]<br />
&#13; <br />
&#13; Like in this case I added some javascript on input boxes and also changed the class style.<br />
&#13;
<p style="background-color: rgb(192, 192, 192);"><span style="font-size: smaller;"><br />
&#13; /*<br />
&#13; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $smarty->assign('input_username', <br />
&#13; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $this->CreateInputText( $id, 'feu_input_username',<br />
&#13; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; $username,<br />
&#13; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $this->GetPreference('usernamefldlength'),<br />
&#13; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $this->GetPreference('max_usernamelength')));<br />
&#13; */&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br />
&#13; <br />
&#13; &nbsp;&nbsp;&nbsp; $smarty->assign('input_label', $id );<br />
&#13; &nbsp;&nbsp;&nbsp; $smarty->assign('id_password',$id.'feu_input_password');<br />
&#13; &nbsp;&nbsp;&nbsp; $smarty->assign('prompt_password', $this->Lang('prompt_password'));<br />
&#13; <br />
&#13; &nbsp;&nbsp;&nbsp; $smarty->assign('input_password', '&lt;input type=&quot;password&quot; name = &quot;' .$id.&nbsp; 'feu_input_password&quot; class=&quot;passwordfield&quot; <br />
&#13; <br />
&#13; &nbsp;&nbsp;&nbsp; onfocus=&quot;this.style.backgroundImage=\'none\'&quot; onblur=&quot;if(this.value==\'\'){this.style.backgroundImage=\'url(images/login-password.gif)\'}&quot;  />');<br />
&#13; <br />
&#13; /*<br />
&#13; <br />
&#13; </span></p>
&#13; <br />
&#13; <br />
&#13; <br />
&#13; <br />]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/cmsms-frontend-user-hack-for-automatic-login.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla 1.5 phpbb bridge bug fixed</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/joomla-1-5-phpbb-bridge-bug-fixed.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/joomla-1-5-phpbb-bridge-bug-fixed.html#comments</comments>
		<pubDate>Wed, 06 Aug 2008 09:59:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[phpbb bridge]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=92</guid>
		<description><![CDATA[*This happens when you verify the account through mail.
&#13; In /plugins/user/phpbb3.php, replace line 92:
&#13; 
&#13; from
&#13; &#160;&#160;&#160; if(!isset($userid)) {
&#13; 
&#13; to
&#13; &#160;&#160;&#160; if (( ! isset( $userid )) &#124;&#124; ( strlen( $userid ) == 0 )) {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // it's set, but has no value
&#13; 
&#13; Forum Source
&#13; ]]></description>
			<content:encoded><![CDATA[*This happens when you verify the account through mail.<br />
&#13; In /plugins/user/phpbb3.php, replace line 92:<br />
&#13; <br />
&#13; <b>from</b><br />
&#13; <span style="background-color: rgb(255, 255, 153);"><span style="color: rgb(0, 51, 0);">&nbsp;&nbsp;&nbsp; if(!isset($userid)) {</span></span><br />
&#13; <br />
&#13; <b>to</b><br />
&#13; <span style="color: rgb(0, 51, 0);"><span style="background-color: rgb(255, 255, 153);">&nbsp;&nbsp;&nbsp; if (( ! isset( $userid )) || ( strlen( $userid ) == 0 )) {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // it's set, but has no value</span></span><br />
&#13; <br />
&#13; <a target="_blank" href="http://www.rocketwerx.com/forum/viewtopic.php?f=22&amp;t=807&amp;st=0&amp;sk=t&amp;sd=a&amp;sid=292265e94dfac323c1f1affc7a216be9&amp;start=40">Forum Source</a><br />
&#13; <br />]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/joomla-1-5-phpbb-bridge-bug-fixed.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Module Title not showing up Joomla 1.5(fixed)</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/module-title-not-showing-up-joomla-1-5fixed.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/module-title-not-showing-up-joomla-1-5fixed.html#comments</comments>
		<pubDate>Mon, 28 Jul 2008 10:18:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Module title]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=96</guid>
		<description><![CDATA[&#160; I encountered this problem, when I am upgrading a template from 1.0 to 1.5... I thought this was only a minor problem, until 3 hours past and I still couldn't fix it... I checked everything on the admin, settings, parameters, and even global configuration. Until I rechecked the module param at the template&#160; &#60;jdoc:include [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: justify;">&nbsp; I encountered this problem, when I am upgrading a template from 1.0 to 1.5... I thought this was only a minor problem, until 3 hours past and I still couldn't fix it... I checked everything on the admin, settings, parameters, and even global configuration. Until I rechecked the module param at the template&nbsp; &lt;jdoc:include type=&quot;modules&quot; name=&quot;user2&quot;&nbsp;  /> and I try putting style... first a blank one... it doesn't work, then I try putting style=&quot;xhtml&quot; and now the title of module shows<br />
&#13; <br />
&#13; <span style="color: rgb(255, 102, 0);">&lt;jdoc:include type=&quot;modules&quot; name=&quot;user2&quot;&nbsp; style=&quot;xhtml&quot;&nbsp;  /></span></div>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/module-title-not-showing-up-joomla-1-5fixed.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtue Mart Bug</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/virtue-mart-bug.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/virtue-mart-bug.html#comments</comments>
		<pubDate>Sat, 22 Dec 2007 10:41:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Virtuemart Bug]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=101</guid>
		<description><![CDATA[When Adding Category, Product or Just change configuration, the administration page automatically Logs me out, I tried to Google for the solution which is easy to find... and visited the results which are forum of virtuemart but it takes me 3 forums before I finally got to the solution page.

Virtue Mart Session fix

Changes to be [...]]]></description>
			<content:encoded><![CDATA[<div align="justify">When Adding Category, Product or Just change configuration, the administration page automatically Logs me out, I tried to Google for the solution which is easy to find... and visited the results which are forum of virtuemart but it takes me 3 forums before I finally got to the solution page.</div>
<p><br />
Virtue Mart Session <a target="_blank" href="http://virtuemart.net/index.php?option=com_docman&#038;task=cat_view&#038;gid=101&#038;Itemid=66">fix</a><br />
<br />
<font color="#ff6600"><strong>Changes to be made:</strong></font></p>
<p><font color="#ffcc00">administrator/index2.php</font><br />
<strong><font size="1" color="#00ff00">BEFORE</font></strong><br />
<font size="1" color="#99cc00">########<br />
103        doGzip();<br />
104        <br />
105        // if task action is 'save' or 'apply' redo session check<br />
106        if ( $task == 'save' || $task == 'apply' ) {<br />
107            $mainframe->initSessionAdmin( $option, '' );<br />
108        }<br />
#########</font><br />
<br />
<br />
<font size="1" color="#00ff00"><strong>AFTER</strong></font><br />
<font size="1" color="#99cc00">########<br />
102        // if task action is 'save' or 'apply' redo session check<br />
103        if ( $task == 'save' || $task == 'apply' ) {<br />
104            $mainframe->initSessionAdmin( $option, '' );<br />
105        }<br />
106        doGzip();<br />
########</font></p>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/virtue-mart-bug.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla SEF and IIS URL rewrite</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/php/joomla-sef-and-iis-url-rewrite.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/php/joomla-sef-and-iis-url-rewrite.html#comments</comments>
		<pubDate>Mon, 03 Dec 2007 12:38:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Clean URL]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[ISAPI 3.0]]></category>
		<category><![CDATA[SEF]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=13</guid>
		<description><![CDATA[Using ISAPI 3.0 over IIS 6.0 for rewriting URL to Search Engine Friendly URL, I experienced this problem that links return 404 error when clicking any links on joomla. After googling for 3 hours, I found the right solution, which requires to hack the code.
.htaacess  code 
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond [...]]]></description>
			<content:encoded><![CDATA[<p>Using ISAPI 3.0 over IIS 6.0 for rewriting URL to Search Engine Friendly URL, I experienced this problem that links return 404 error when clicking any links on joomla. After googling for 3 hours, I found the right solution, which requires to hack the code.</p>
<p><strong><font color="#00ff00">.htaacess</font></strong>  code <br />
<font size="1" color="#ff9900">RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##<br />
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule (.*) index.php</font></p>
<div align="justify" style="background-color: rgb(255, 255, 255);"><font size="1" color="#993300" >This is because Joomla expects original URL in the REQUEST_URI server variable, but in IIS this variable is not available and cannot be emulated.</font><br />
<font size="1" color="#993300" >With ISAPI_Rewrite we store original request in HTTP_X_REWRITE_URL. You can then assign value of this variable in PHP code to the REQUEST_URI variable</font></div>
<p>at   <strong><font color="#00ff00">/components/com_sef/sef.php</font></strong> <br />
<font color="#ff9900"><font size="1">// IIS patch.<br />
if (isset($_SERVER['HTTP_X_REWRITE_URL'])) {<br />
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];<br />
}</font><br />
</font></p>
<p>I append this code over sef.php by the way I'm using the component sh404SEF which I guess is the best for joomla I have tried OpenSEF (<font size="1" color="#808000">this component I guess is not continue for development</font>) and ArtioSEF.</p>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/php/joomla-sef-and-iis-url-rewrite.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shifting from IIS 6 to Apache</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/php/joomla/shifting-from-iis-6-to-apache.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/php/joomla/shifting-from-iis-6-to-apache.html#comments</comments>
		<pubDate>Sun, 20 May 2007 16:17:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Server Setup]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[IIS 6]]></category>
		<category><![CDATA[mod_aspdotnet]]></category>
		<category><![CDATA[mod_perl]]></category>
		<category><![CDATA[OpenSEF]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=74</guid>
		<description><![CDATA[ This week I was so very busy I have been put on a task where I am going to install on a dedicated server an Apache... this apache server must run on different port so while testing the new server we wont affect the current web server running which is IIS 6 and the [...]]]></description>
			<content:encoded><![CDATA[<div align="justify"> This week I was so very busy I have been put on a task where I am going to install on a dedicated server an Apache... this apache server must run on different port so while testing the new server we wont affect the current web server running which is IIS 6 and the vistors of the sites can still visit it. Where shifting cause of the rewrite problems, in IIS the company used ISAPI rewrite it enables the IIS to rewrite URLs o browsers... this is so important cause in SEO search engine prefer a clean URL. The problem is some syntax in htaccess mod_rewrite were not supported by ISAPI rewrite, we are using Joomla for CMS cause I know it a lot I installed OpenSEF an Excellent Component that does SEF magic for joomla. In apache this is so easy to handle but in IIS for me it is so hard so my boss given up and we decidedly to shift server... I have encounters lot of problem still shifting first running asp .net on apache, at first I installed Apache 2.2 I notice I could not install the mod_aspdotnet module... after throughly researching the cause... I need to downgrade to Apache 2.0 and It works. So I got everything working with dotNet but it doesnt support plain asp I still need to install <a target="_blank" href="http://www.apache-asp.org/">mod_perl</a> , and still lot of configuration to do with httpd.conf. Another Problem we may encounter is move the SSL certificate to the new apache server. This week will be a tough one.</div>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/php/joomla/shifting-from-iis-6-to-apache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
