<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Ariotek Community Forums - Blogs</title>
		<link>https://ariotek.co.uk/forums/blogs/</link>
		<description>Ariotek is a UK based webhost offering business and personal web hosting, domain registration, SSL certificates, teamspeak and much more.</description>
		<language>en</language>
		<lastBuildDate>Sun, 05 Feb 2012 23:18:45 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://ariotek.co.uk/forums/images/misc/rss.jpg</url>
			<title>Ariotek Community Forums - Blogs</title>
			<link>https://ariotek.co.uk/forums/blogs/</link>
		</image>
		<item>
			<title>Fixing Roundcube multi domain login</title>
			<link>https://ariotek.co.uk/forums/blogs/colin/fixing-roundcube-multi-domain-login-9/</link>
			<pubDate>Tue, 19 Jul 2011 13:03:19 GMT</pubDate>
			<description>Since we have been having issues with DWmail and there being no updates for the last few years we had to allow customers the use of a webmail client...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Since we have been having issues with DWmail and there being no updates for the last few years we had to allow customers the use of a webmail client outwith their own Cpanel. We have other users that use the webmail on a frequent basis so I decided to install several webmail clients to give the uisers as much choice as possible.<br />
<br />
Now here's the tough part choosing which ones to install, well I chose Roundcube first as I quite like the interface and its easy to customise(so I thought). I installed it all and working within 5 minutes all nice and easy, now the hard part getting it to use multiple domains.<br />
<br />
You would think this would be easy so headed over to the RondCube forums and hey presto loads of ways to make it use multiple domains. Went through them one by one and none of them would work with the latest Roundcube.<br />
<br />
So for anyone is having the same problems please do the following.<br />
<br />
Fisrt of all open the main.inc file in the program/includes folder and go to line 1800 which should have this function:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:192px;"><code><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">rcube_parse_host</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$host</span><span style="color: #007700">=</span><span style="color: #DD0000">''</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;%n&nbsp;-&nbsp;host<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$n&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/:\d+$/'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'SERVER_NAME'</span><span style="color: #007700">&#93;);<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;%d&nbsp;-&nbsp;domain&nbsp;name&nbsp;without&nbsp;first&nbsp;part,&nbsp;e.g.&nbsp;%d=mail.domain.tld,&nbsp;%m=domain.tld<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$d&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/^&#91;^\.&#93;+\./'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$n</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;%h&nbsp;-&nbsp;IMAP&nbsp;host<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$h&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_SESSION</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'imap_host'</span><span style="color: #007700">&#93;&nbsp;?&nbsp;</span><span style="color: #0000BB">$_SESSION</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'imap_host'</span><span style="color: #007700">&#93;&nbsp;:&nbsp;</span><span style="color: #0000BB">$host</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;%z&nbsp;-&nbsp;IMAP&nbsp;domain&nbsp;without&nbsp;first&nbsp;part,&nbsp;e.g.&nbsp;%h=imap.domain.tld,&nbsp;%z=domain.tld<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$z&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/^&#91;^\.&#93;+\./'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$h</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">$name&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_replace</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'%n'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'%d'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'%h'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'%z'</span><span style="color: #007700">),&nbsp;array(</span><span style="color: #0000BB">$n</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$d</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$h</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$z</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">$name</span><span style="color: #007700">);<br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$name</span><span style="color: #007700">;<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> Replace it with this<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:216px;"><code><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">rcube_parse_host</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$host</span><span style="color: #007700">=</span><span style="color: #DD0000">''</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;%n&nbsp;-&nbsp;host<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$n&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/:\d+$/'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'SERVER_NAME'</span><span style="color: #007700">&#93;);<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;%d&nbsp;-&nbsp;domain&nbsp;name&nbsp;without&nbsp;first&nbsp;part,&nbsp;e.g.&nbsp;%d=mail.domain.tld,&nbsp;%m=domain.tld<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$d&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/^&#91;^\.&#93;+\./'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$n</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;%h&nbsp;-&nbsp;IMAP&nbsp;host<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$h&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_SESSION</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'imap_host'</span><span style="color: #007700">&#93;&nbsp;?&nbsp;</span><span style="color: #0000BB">$_SESSION</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'imap_host'</span><span style="color: #007700">&#93;&nbsp;:&nbsp;</span><span style="color: #0000BB">$host</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;%z&nbsp;-&nbsp;IMAP&nbsp;domain&nbsp;without&nbsp;first&nbsp;part,&nbsp;e.g.&nbsp;%h=imap.domain.tld,&nbsp;%z=domain.tld<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$z&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/^&#91;^\.&#93;+\./'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$h</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$domains&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">explode</span><span style="color: #007700">(</span><span style="color: #DD0000">'@'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">get_input_value</span><span style="color: #007700">(</span><span style="color: #DD0000">'_user'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RCUBE_INPUT_POST</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$p&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$domains</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;;<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">$name&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_replace</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'%n'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'%d'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'%h'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'%z'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'%p'</span><span style="color: #007700">),&nbsp;array(</span><span style="color: #0000BB">$n</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$d</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$h</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$z</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$p</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">$name</span><span style="color: #007700">);<br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$name</span><span style="color: #007700">;<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> Notice that the changes are in 3 lines and we will be using %p in the main config file. Now open main.inc.php in the config folder and go to line 68 and you should have this:<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:36px;"><code><code><span style="color: #000000">
<span style="color: #0000BB">$rcmail_config</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'default_host'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">;&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> Change to this:<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:36px;"><code><code><span style="color: #000000">
<span style="color: #0000BB">$rcmail_config</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'default_host'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #DD0000">'%p'</span><span style="color: #007700">;&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> As you can see we are using the value %p from the function, thats it save and upload all done hope this helps anyone that requires multidomains in their roundcube installation.</blockquote>

 ]]></content:encoded>
			<dc:creator>Colin</dc:creator>
			<guid isPermaLink="true">https://ariotek.co.uk/forums/blogs/colin/fixing-roundcube-multi-domain-login-9/</guid>
		</item>
		<item>
			<title>Getting Quirky Linux in the UK</title>
			<link>https://ariotek.co.uk/forums/blogs/terryphi/getting-quirky-linux-uk-5/</link>
			<pubDate>Sun, 31 Oct 2010 16:39:53 GMT</pubDate>
			<description>I have set up a separate site with basic information about Quirky Linux and my personal recommendations, tweaks and customisation. 
...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">I have set up a separate site with basic information about Quirky Linux and my personal recommendations, tweaks and customisation.<br />
<br />
<a href="http://sites.google.com/site/quirkyuk/" target="_blank">http://sites.google.com/site/quirkyuk/</a></blockquote>

 ]]></content:encoded>
			<dc:creator>Terryphi</dc:creator>
			<guid isPermaLink="true">https://ariotek.co.uk/forums/blogs/terryphi/getting-quirky-linux-uk-5/</guid>
		</item>
		<item>
			<title>Getting old rather to quickly</title>
			<link>https://ariotek.co.uk/forums/blogs/colin/getting-old-rather-quickly-4/</link>
			<pubDate>Mon, 12 Apr 2010 09:54:04 GMT</pubDate>
			<description>I hit 47 yesterday and it seems like I actually feel the years piling on. I do not know if its phsycological or not but I do feel older and my body...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">I hit 47 yesterday and it seems like I actually feel the years piling on. I do not know if its phsycological or not but I do feel older and my body seems to feel the same way.<br />
<br />
Was a wonderful weekend, the weather was great, we went down to Strathclyde park on Saturday and had a picnic. Zoe decided she would fall in the only place which was muddy in the whole park within 30 seconds of arriving but she still had a great time even though she was covered in muck.<br />
<br />
<table style="width: auto;"><tbody><tr><td><a href="http://picasaweb.google.com/lh/photo/i9kOshZcZ0D_nPLC2eK7A7KnyghD0zYtgNsepOIqUlk?feat=embedwebsite" target="_blank"><img src="http://lh3.ggpht.com/_RB06qeel9f8/S8DDhu-UmiI/AAAAAAAA4wA/87m11GHxgTg/s144/IMG_0149.JPG" border="0" alt="" /></a></td></tr><tr><td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/117419287054145702439/20100410?authkey=Gv1sRgCLmhj_fo-5SPQA&amp;feat=embedwebsite" target="_blank">2010-04-10</a></td></tr></tbody></table></blockquote>

 ]]></content:encoded>
			<dc:creator>Colin</dc:creator>
			<guid isPermaLink="true">https://ariotek.co.uk/forums/blogs/colin/getting-old-rather-quickly-4/</guid>
		</item>
		<item>
			<title>PCI compliance is a nightmare</title>
			<link>https://ariotek.co.uk/forums/blogs/colin/pci-compliance-nightmare-2/</link>
			<pubDate>Mon, 22 Mar 2010 19:56:16 GMT</pubDate>
			<description>Well what a crazy past few days, I have been working on not only updating our PCI compliance since our site is on multiple servers but also trying...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Well what a crazy past few days, I have been working on not only updating our PCI compliance since our site is on multiple servers but also trying out the different PCI compliance providers. So far have tried 2 main suppliers:<br />
<br />
<a href="http://www.mcafeesecure.com/us/" target="_blank">McAfee Secure</a><br />
<br />
<a href="http://www.hackerguardian.com/" target="_blank">Hackerguardian</a><br />
<br />
Now we have had PCI compliance for a few months on a couple of servers and on our site however keeping software up to date is a nightmare. I will give an example, one site tells me that php is out of date the other its fine(php ver 5.2.13). I have problems with Vbulletin on one site but not on the other, dwmail on one not the other, the list goes on. I will detail below the software that failed on one and not the other.<br />
<ul><li>Vbulletin</li>
<li>Dwmail</li>
<li>Mailman</li>
<li>Idevaffiliate</li>
<li>Joomla</li>
<li>PHP</li>
<li>Apache</li>
<li>Kayako(nightmare)</li>
</ul>Thats just the important ones. I have had to use mod_rewrite to make all logins secure with SSL, changed the way some of the scripts interact with the server and LOADS more.<br />
<br />
All this to make sure that the business and ecommerce accounts will now have the option of gaining full PCI compliance at a fraction of the price of the major competition 2 of whom have been deatiled above.<br />
<br />
All in all I would thoroughly recommend having a bash at trying to get your site/server PCI compliant in a 4 day timeframe, I will tell you now it will drive to you to drink.<br />
<br />
Right I am off for a G&amp;T, cheers :drink:</blockquote>

 ]]></content:encoded>
			<dc:creator>Colin</dc:creator>
			<guid isPermaLink="true">https://ariotek.co.uk/forums/blogs/colin/pci-compliance-nightmare-2/</guid>
		</item>
		<item>
			<title>New forums I like</title>
			<link>https://ariotek.co.uk/forums/blogs/colin/new-forums-i-like-1/</link>
			<pubDate>Thu, 18 Mar 2010 00:04:41 GMT</pubDate>
			<description>Played about with the new forums for the last few days and I must admit I like it. There are loads of cool features in the backend which make life...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Played about with the new forums for the last few days and I must admit I like it. There are loads of cool features in the backend which make life easier to admin them which is all good for me :)<br />
<br />
Love the new look as well seems clean and fresh.</blockquote>

 ]]></content:encoded>
			<dc:creator>Colin</dc:creator>
			<guid isPermaLink="true">https://ariotek.co.uk/forums/blogs/colin/new-forums-i-like-1/</guid>
		</item>
	</channel>
</rss>

