<?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>Irimis&#039;S Blog</title>
	<atom:link href="http://irimia.suleapa.name/feed/" rel="self" type="application/rss+xml" />
	<link>http://irimia.suleapa.name</link>
	<description>NOT just another blog.</description>
	<lastBuildDate>Fri, 23 Dec 2011 15:04:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Groupon Scheduler ex OpenCal (.com)</title>
		<link>http://irimia.suleapa.name/2011/12/11/groupon-scheduler-opencal/</link>
		<comments>http://irimia.suleapa.name/2011/12/11/groupon-scheduler-opencal/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 22:22:23 +0000</pubDate>
		<dc:creator>Irimia</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[My work]]></category>
		<category><![CDATA[OpenCal]]></category>

		<guid isPermaLink="false">http://irimia.suleapa.name/?p=294</guid>
		<description><![CDATA[Felicitari Simon! Felicitari Arash! La 1 an de la lansarea, OpenCal devine Groupon Scheduler.]]></description>
			<content:encoded><![CDATA[<blockquote><p>We&#8217;re excited to announce that OpenCal has been acquired and is now part of Groupon! This is an opportunity to bring our innovative online appointment booking platform to a broad set of merchants and consumers world-wide.</p></blockquote>
<p>Felicitari <a title="Simon Vallee" href="http://twitter.com/simonvallee" target="_blank">Simon</a>! Felicitari <a title="Arash Shiva" href="http://twitter.com/ashiva" target="_blank">Arash</a>! La 1 an de la <a title="OpenCal official launch" href="http://opencal.com/blog/official-launch/" target="_blank">lansare</a>, <a title="OpenCal" href="http://opencal.com/" target="_blank">OpenCal</a> devine <a title="Groupon Scheduler" href="http://www.groupon.com/scheduler" target="_blank">Groupon Scheduler</a>.</p>
<h4>Ce inseamna OpenCal pentru mine?</h4>
<p>- cel mai huge proiect <a href="http://opencal.com/blog/welcome-to-the-opencal-blog/">lansat</a> (a se citi dezvoltat from scratch) so far;<br />
- aproape 1 an de munca;<br />
- cel mai stufos si bine pus la punct caiet de specificatii (thanks Simon &amp; Arash);<br />
- cea mai buna experienta de lucru (thanks Arash &amp; Simon);<br />
- &#8220;Count bugs if you can&#8217;t sleep.&#8221; (c) Arash;<br />
- 300K linii de cod;<br />
- 2193 revizii SVN;</p>
<h4>De citit!</h4>
<p><a href="http://opencal.com/blog/opencal-groupon-scheduler/" target="_blank">http://opencal.com/blog/opencal-groupon-scheduler/</a></p>
<p><a href="http://www.groupon.com/blog/cities/announcing-groupon-scheduler/" target="_blank">http://www.groupon.com/blog/cities/announcing-groupon-scheduler/</a></p>
<p><a href="http://techcrunch.com/2011/12/07/groupon-debuts-scheduler-to-streamline-online-bookings-for-merchants-consumers/" target="_blank">http://techcrunch.com/2011/12/07/groupon-debuts-scheduler-to-streamline-online-bookings-for-merchants-consumers/</a></p>
<p><a href="http://www.businesswire.com/news/home/20111207005838/en/Groupon-Announces-Groupon-Scheduler-Easy-Appointment-Management" target="_blank">http://www.businesswire.com/news/home/20111207005838/en/Groupon-Announces-Groupon-Scheduler-Easy-Appointment-Management</a></p>
]]></content:encoded>
			<wfw:commentRss>http://irimia.suleapa.name/2011/12/11/groupon-scheduler-opencal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codeigniter: Debugging with FirePHP</title>
		<link>http://irimia.suleapa.name/2010/03/01/codeigniter-debugging-with-firephp/</link>
		<comments>http://irimia.suleapa.name/2010/03/01/codeigniter-debugging-with-firephp/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 22:02:57 +0000</pubDate>
		<dc:creator>Irimia</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[FireBug]]></category>
		<category><![CDATA[FirePHP]]></category>

		<guid isPermaLink="false">http://irimia.suleapa.name/?p=215</guid>
		<description><![CDATA[FirePHP "enables you to log to your Firebug Console using a simple PHP method call. All data is sent via response headers and will not interfere with the content on your page. FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required."]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><a title="FirePHP" href="http://www.firephp.org/" target="_blank">FirePHP</a> &#8220;enables you to log to your <a title="FireBug" href="http://www.getfirebug.com/" target="_blank">Firebug</a> Console using a simple PHP method call. All data is sent via response headers and will not interfere with the content on your page. FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required.&#8221;</p>
<p>Using it with Codeigniter is very simple. First download <a title="FirePHP Core library" href="http://www.firephp.org/HQ/FinalRelease.htm" target="_blank">FirePHP core library</a>. Look inside newly downloaded zip file and extract from there <strong>FirePHP.class.php</strong> (you can find it inside <strong>FirePHPCore/lib/FirePHPCore/</strong>).</p>
<p>Rename <strong>FirePHP.class.php</strong> to <strong>firephp.php</strong> and move it or upload it to your Codeigniter <strong>system/application/libraries/</strong> folder.</p>
<p>Using it is very simple. Just load it in your controller and start using it.</p>
<pre class="brush: php; title: ; notranslate">
	class Welcome extends Controller {

		function __construct() {
			parent::Controller();

			$this-&gt;load-&gt;library('firephp')
		}

		function index() {

			$this-&gt;firephp-&gt;log(&quot;Log&quot;);
			$this-&gt;firephp-&gt;info(&quot;Info&quot;);
			$this-&gt;firephp-&gt;error(&quot;Error&quot;);
		}

 	}
</pre>
<p>Now take a look on FireBug console and you should see something like that</p>
<p><a href="http://irimia.suleapa.name/wp-content/uploads/2010/03/firephp.jpg" rel="lightbox[215]"><img class="alignnone size-full wp-image-225" title="Debugging with FirePHP example" src="http://irimia.suleapa.name/wp-content/uploads/2010/03/firephp.jpg" alt="" width="197" height="54" /></a></p>
<p>This is a basic example usage. A more advanced usage is available inside <a href="/?p=200" target="_self">MY_Controller</a> (enable it for certain ip or group log messages together).</p>
<p>Download <a class="downloadlink" href="http://irimia.suleapa.name/wp-content/plugins/download-monitor/download.php?id=3" title="Version 0.2 downloaded 250 times" >MY_Controller (250)</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://irimia.suleapa.name/2010/03/01/codeigniter-debugging-with-firephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Python 2.6 on Ubuntu 8.04 LTS</title>
		<link>http://irimia.suleapa.name/2010/02/21/install-python-2-6-on-ubuntu-8-04-lts/</link>
		<comments>http://irimia.suleapa.name/2010/02/21/install-python-2-6-on-ubuntu-8-04-lts/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 13:20:15 +0000</pubDate>
		<dc:creator>Irimia</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[PPA]]></category>
		<category><![CDATA[python2.6]]></category>

		<guid isPermaLink="false">http://irimia.suleapa.name/?p=208</guid>
		<description><![CDATA[Add to /etc/apt/sources.list Import the pub key Install python2.6]]></description>
			<content:encoded><![CDATA[<p>Add to /etc/apt/sources.list</p>
<pre class="brush: plain; title: ; notranslate">deb http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main</pre>
<p>Import the pub key</p>
<pre class="brush: plain; title: ; notranslate">sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D81367B9</pre>
<p>Install python2.6</p>
<pre class="brush: plain; title: ; notranslate">sudo apt-get install python2.6</pre>
]]></content:encoded>
			<wfw:commentRss>http://irimia.suleapa.name/2010/02/21/install-python-2-6-on-ubuntu-8-04-lts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Codeigniter: MY_Controller (One controller to rule them all)</title>
		<link>http://irimia.suleapa.name/2010/02/05/codeigniter-my_controller-one-controller-to-rule-them-all/</link>
		<comments>http://irimia.suleapa.name/2010/02/05/codeigniter-my_controller-one-controller-to-rule-them-all/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 03:56:26 +0000</pubDate>
		<dc:creator>Irimia</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Constants]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[FirePHP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MY_Controller]]></category>

		<guid isPermaLink="false">http://irimia.suleapa.name/?p=200</guid>
		<description><![CDATA[Codeigniter: MY_Controller (One controller to rule them all)]]></description>
			<content:encoded><![CDATA[<p><!--:en-->Download <a class="downloadlink" href="http://irimia.suleapa.name/wp-content/plugins/download-monitor/download.php?id=3" title="Version 0.2 downloaded 250 times" >MY_Controller (250)</a></p>
<p>February 28, 2010</p>
<ol>
<li>Debugging with FirePHP (<a href="/?p=215" target="_self">url</a>)</li>
</ol>
<p>February 05, 2010</p>
<ol>
<li>Constants in MySQL Database (<a href="/?p=166" target="_self">url</a>)</li>
</ol>
<p><!--:--><!--:ro--></p>
<p><!--:--></p>
]]></content:encoded>
			<wfw:commentRss>http://irimia.suleapa.name/2010/02/05/codeigniter-my_controller-one-controller-to-rule-them-all/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limehost &amp; IntoVPS January Pingdom Report</title>
		<link>http://irimia.suleapa.name/2010/02/03/january-limehost-intovps-pingdom-report/</link>
		<comments>http://irimia.suleapa.name/2010/02/03/january-limehost-intovps-pingdom-report/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 15:18:48 +0000</pubDate>
		<dc:creator>Irimia</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[IntoVPS]]></category>
		<category><![CDATA[January]]></category>
		<category><![CDATA[Limehost]]></category>
		<category><![CDATA[Pingdom]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Uptime]]></category>

		<guid isPermaLink="false">http://irimia.suleapa.name/?p=191</guid>
		<description><![CDATA[Limehost &#038; IntoVPS January Pingdom Report]]></description>
			<content:encoded><![CDATA[<p><!--:en--><strong><a href="http://bit.ly/intovps" target="_blank">IntoVPS 01 Jan &#8211; 31 Jan 2009</a></strong></p>
<p>Uptime 99.90%,  Downtime 0h 45m 01s, Response time 172 ms, Outages 8</p>
<p><strong><a href="http://bit.ly/limehost" target="_blank">LimeHost 01 Jan &#8211; 31 Jan 2009</a></strong></p>
<p>Uptime 98.91%,  Downtime 8h 05m 00s, Response time 128 ms, Outages 10<!--:--></p>
]]></content:encoded>
			<wfw:commentRss>http://irimia.suleapa.name/2010/02/03/january-limehost-intovps-pingdom-report/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Codeigniter: Keep constants in database</title>
		<link>http://irimia.suleapa.name/2010/01/27/codeigniter-keep-constants-in-database/</link>
		<comments>http://irimia.suleapa.name/2010/01/27/codeigniter-keep-constants-in-database/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 06:44:48 +0000</pubDate>
		<dc:creator>Irimia</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Constants]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://irimia.suleapa.name/?p=166</guid>
		<description><![CDATA[Codeigniter: Keep constants in database]]></description>
			<content:encoded><![CDATA[<p><!--:en-->Have you ever asked yourself how to achieve something like that before? How to keep your constants in a MySQL Database? This is very simple :).</p>
<p>First thing first .. We have to create a database table. Let&#8217;s name it <strong>app_constants</strong></p>
<pre class="brush: plain; title: ; notranslate">CREATE TABLE IF NOT EXISTS `app_constants` (
  `name` varchar(50) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY (`name`),
  UNIQUE KEY `UNIQUE` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
</pre>
<p>This is self explanatory. <strong>name</strong> row will keep our constant name and the <strong>value</strong> row will keep the constant value. Let&#8217;s move ahead and create the functions which will get the constants from Database and initialize them.</p>
<pre class="brush: php; title: ; notranslate">		/**
		 * Initialize DB Constants
		 */
		function initConstant() {

			foreach ($this-&gt;_getConstant() as $data) {

				$data = get_object_vars($data);
				define($data['name'], $data['value']);
			}

			/**
			 * This is a good place for your IS_AJAX constant (if used)
			 */
			define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');
		}

		/**
		 * Get constants from DB
		 */
		function _getConstant() {
			return $this-&gt;db-&gt;select()-&gt;from('app_constants')-&gt;get()-&gt;result();
		}</pre>
<p>That&#8217;s it. Keep in mind that this have to be executed earlier using <strong>hooks</strong> or in your <strong><a href="/?p=200" target="_self">MY_Controller</a></strong> (One controller to rule them all)<!--:--></p>
]]></content:encoded>
			<wfw:commentRss>http://irimia.suleapa.name/2010/01/27/codeigniter-keep-constants-in-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSV parser library for CodeIgniter</title>
		<link>http://irimia.suleapa.name/2009/09/24/csv-parser-library-for-codeigniter/</link>
		<comments>http://irimia.suleapa.name/2009/09/24/csv-parser-library-for-codeigniter/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 10:26:18 +0000</pubDate>
		<dc:creator>Irimia</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[CSV]]></category>

		<guid isPermaLink="false">http://irimia.suleapa.name/?p=98</guid>
		<description><![CDATA[CSV parser library for CodeIgniter]]></description>
			<content:encoded><![CDATA[<p><!--:en--></p>
<p>I spent last hour working on a CodeIgniter CSV (Comma Separated Values) parser library for a project I&#8217;m working on. It use PHP built in function <strong>fgetcsv()</strong>. The result is a multi-dimensional array.</p>
<pre class="brush: php; title: ; notranslate">
	class Csv {

		private $file_name = '';
		private $parse_header = FALSE;
		private $delimiter = ',';
		private $length = 0;

		private $header;
		private $file_pointer;

		function __construct($config = array()) {

			if(count($config &gt; 0)) {
				$this-&gt;initialize($config);
			}

			log_message('debug', &quot;CSV Class Initialized&quot;);
		}

		function initialize($config = array()) {

			foreach($config as $key =&gt; $val) {

				if(isset($this-&gt;$key)) {
					$this-&gt;$key = $val;
				}

			}

			if(is_file($this-&gt;file_name))
				$this-&gt;file_pointer = fopen($this-&gt;file_name, 'r');

			if($this-&gt;parse_header) {
				$this-&gt;header = fgetcsv($this-&gt;file_pointer, $this-&gt;length, $this-&gt;delimiter);
			}
		}

		function parse() {

			$data = array();

			while(($row = fgetcsv($this-&gt;file_pointer, $this-&gt;length, $this-&gt;delimiter)) !== FALSE) {
				if($this-&gt;parse_header) {

					foreach ($this-&gt;header as $i =&gt; $heading_i)
						$row_new[$heading_i] = $row[$i];

					$data[] = $row_new;
				} else
					$data[] = $row;
			}

			return $data;
		}

		function __destruct() {

			if($this-&gt;file_pointer) {
				fclose($this-&gt;file_pointer);
			}
		}
	}
</pre>
<p>For usage, save this library in <strong>system/libraries/</strong> or <strong>system/application/libraries/ </strong>and load it into your controller.</p>
<pre class="brush: php; title: ; notranslate">
$this-&gt;load-&gt;library('csv', $params);
</pre>
<p>Usage example:</p>
<p>Let&#8217;s suppose we have a CSV file contains data like this.</p>
<pre class="brush: plain; title: ; notranslate">
Id,Name,Category,Price
1,iPhone,Mobile,300
2,iMac,Desktop,529
3,MacBook,Mobile,2000
4,iTouch,Gadgets,157
5,Wii,Gaming,1250
</pre>
<p>Load the library</p>
<pre class="brush: php; title: ; notranslate">
	$params = array(
		'file_name' =&gt; '/path/to/csv/file.csv',
		'delimiter' =&gt; ',',
		'parse_header' =&gt; false,
	);

	$this-&gt;load-&gt;library('csv', $params);

	var_dump($this-&gt;csv-&gt;parse());
</pre>
<p>This is the result with <em>parse_header</em> FALSE</p>
<pre class="brush: plain; title: ; notranslate">
    array
      0 =&gt;
        array
          0 =&gt; string 'Id' (length=2)
          1 =&gt; string 'Name' (length=4)
          2 =&gt; string 'Category' (length=8)
          3 =&gt; string 'Price' (length=5)
      1 =&gt;
        array
          0 =&gt; string '1' (length=1)
          1 =&gt; string 'iPhone' (length=6)
          2 =&gt; string 'Mobile' (length=6)
          3 =&gt; string '300' (length=3)
      2 =&gt;
        array
          0 =&gt; string '2' (length=1)
          1 =&gt; string 'iMac' (length=4)
          2 =&gt; string 'Desktop' (length=7)
          3 =&gt; string '529' (length=3)
      3 =&gt;
        array
          0 =&gt; string '3' (length=1)
          1 =&gt; string 'MacBook' (length=7)
          2 =&gt; string 'Mobile' (length=6)
          3 =&gt; string '2000' (length=4)
      4 =&gt;
        array
          0 =&gt; string '4' (length=1)
          1 =&gt; string 'iTouch' (length=6)
          2 =&gt; string 'Gadgets' (length=7)
          3 =&gt; string '157' (length=3)
      5 =&gt;
        array
          0 =&gt; string '5' (length=1)
          1 =&gt; string 'Wii' (length=3)
          2 =&gt; string 'Gaming' (length=6)
          3 =&gt; string '1250' (length=4)
</pre>
<p>and the result with <em>parse_header</em> TRUE</p>
<pre class="brush: plain; title: ; notranslate">
    array
      0 =&gt;
        array
          'Id' =&gt; string '1' (length=1)
          'Name' =&gt; string 'iPhone' (length=6)
          'Category' =&gt; string 'Mobile' (length=6)
          'Price' =&gt; string '300' (length=3)
      1 =&gt;
        array
          'Id' =&gt; string '2' (length=1)
          'Name' =&gt; string 'iMac' (length=4)
          'Category' =&gt; string 'Desktop' (length=7)
          'Price' =&gt; string '529' (length=3)
      2 =&gt;
        array
          'Id' =&gt; string '3' (length=1)
          'Name' =&gt; string 'MacBook' (length=7)
          'Category' =&gt; string 'Mobile' (length=6)
          'Price' =&gt; string '2000' (length=4)
      3 =&gt;
        array
          'Id' =&gt; string '4' (length=1)
          'Name' =&gt; string 'iTouch' (length=6)
          'Category' =&gt; string 'Gadgets' (length=7)
          'Price' =&gt; string '157' (length=3)
      4 =&gt;
        array
          'Id' =&gt; string '5' (length=1)
          'Name' =&gt; string 'Wii' (length=3)
          'Category' =&gt; string 'Gaming' (length=6)
          'Price' =&gt; string '1250' (length=4)
</pre>
<p>Download <a class="downloadlink" href="http://irimia.suleapa.name/wp-content/plugins/download-monitor/download.php?id=2" title="Version1.0 downloaded 185 times" >CodeIgniter CSV file parser Library (185)</a>.<!--:--></p>
]]></content:encoded>
			<wfw:commentRss>http://irimia.suleapa.name/2009/09/24/csv-parser-library-for-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla! and SID in URI</title>
		<link>http://irimia.suleapa.name/2009/09/20/joomla-and-sid-in-uri/</link>
		<comments>http://irimia.suleapa.name/2009/09/20/joomla-and-sid-in-uri/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 20:59:53 +0000</pubDate>
		<dc:creator>Irimia</dc:creator>
				<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHPSESSID]]></category>
		<category><![CDATA[Session ID]]></category>
		<category><![CDATA[SID]]></category>
		<category><![CDATA[URI]]></category>

		<guid isPermaLink="false">http://irimia.suleapa.name/?p=4</guid>
		<description><![CDATA[Joomla! and SID in URI]]></description>
			<content:encoded><![CDATA[<p><!--:en-->On last project I&#8217;ve worked, I needed to pass the SID trough URI on entire website. The website was builded on Joomla! platform.</p>
<p>Joomla! is not offering natively anything for such thing and i had to find quickly a solution to fix this.</p>
<p>First solution, was to add these lines</p>
<pre class="brush: php; title: ; notranslate">
$session =&amp; JFactory::getSession();

$uri-&gt;setVar($session-&gt;getName(), $session-&gt;getId());
</pre>
<p>in <strong>includes/router.php</strong>, function <strong>build</strong>, before</p>
<pre class="brush: php; title: ; notranslate">return $uri;</pre>
<p>Second solution, was fixing this with a plugin</p>
<pre class="brush: php; title: ; notranslate">
	// no direct access
	defined( '_JEXEC' ) or die( 'Restricted access' );

	jimport( 'joomla.plugin.plugin' );

	class plgSystemSid extends JPlugin {

		function onAfterInitialise() {

			// Get application
			$application =&amp; JFactory::getApplication();

			// Get router
			$router =&amp; $application-&gt;getRouter();

			// Add the SID rule
			$router-&gt;attachBuildRule(array(&amp;$this, 'addSidToUri'));
		}

		function addSidToUri(&amp;$router, &amp;$uri) {

			// Add SID to query
			$session =&amp; JFactory::getSession();
			$uri-&gt;setVar($session-&gt;getName(), $session-&gt;getId());
		}

	}
</pre>
<p>Download <a class="downloadlink" href="http://irimia.suleapa.name/wp-content/plugins/download-monitor/download.php?id=1" title="Version1.0 downloaded 142 times" >Joomla! SID to URI (142)</a> plugin.</p>
<p><!--:--></p>
]]></content:encoded>
			<wfw:commentRss>http://irimia.suleapa.name/2009/09/20/joomla-and-sid-in-uri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://irimia.suleapa.name/2009/09/20/hello-world/</link>
		<comments>http://irimia.suleapa.name/2009/09/20/hello-world/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 10:06:12 +0000</pubDate>
		<dc:creator>Irimia</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://irimia.suleapa.name/?p=1</guid>
		<description><![CDATA[Hello world!]]></description>
			<content:encoded><![CDATA[<p><!--:en-->Welcome to my blog.<!--:--></p>
]]></content:encoded>
			<wfw:commentRss>http://irimia.suleapa.name/2009/09/20/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

