<?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>P0L0&#039;s Blog &#187; vhost</title>
	<atom:link href="http://p0l0.binware.org/index.php/tag/vhost/feed/" rel="self" type="application/rss+xml" />
	<link>http://p0l0.binware.org</link>
	<description>Opensource Projects and IT experiences</description>
	<lastBuildDate>Tue, 25 May 2010 06:24:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Roundcube vhost patch</title>
		<link>http://p0l0.binware.org/index.php/2006/02/27/roundcube-vhost-patch/</link>
		<comments>http://p0l0.binware.org/index.php/2006/02/27/roundcube-vhost-patch/#comments</comments>
		<pubDate>Mon, 27 Feb 2006 22:54:00 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[binware]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[roundcube]]></category>
		<category><![CDATA[vhost]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/index.php/2006/02/27/roundcube-vhost-patch/</guid>
		<description><![CDATA[Bueno trasteando con el roundcube para binware he visto que le faltan algunas cosas, aunque esta muy bien diseï¿½ado y funciona mas o menos estable. Como en squirrelmail uso la opcion de vhost para que los usuarios no tengan que poner el dominio al hacer login al webmail, pues he echo esta opcion en version [...]]]></description>
			<content:encoded><![CDATA[<p>Bueno trasteando con el <a href="http://www.roundcube.net">roundcube</a> para <a href="http://binware.org">binware</a> he visto que le faltan algunas cosas, aunque esta muy bien diseï¿½ado y funciona mas o menos estable.</p>
<p>Como en <a href="http://www.squirrelmail.org">squirrelmail</a> uso la opcion de <a href="http://www.squirrelmail.org/plugin_view.php?id=47">vhost</a> para que los usuarios no tengan que poner el dominio al hacer login al webmail, pues he echo esta opcion en version simple para <a href="http://www.roundcube.net">roundcube</a> (la <a href="http://www.squirrelmail.org/plugin_view.php?id=47">version</a> de <a href="http://www.squirrelmail.org">squirrelmail</a> hace muchisimas mas cosas, pero a mi me va bien con esto ya...). Les envie el codigo a los desarrolladores, lo que no se si lo incluiran o no...</p>
<p>Aqui esta el parche para la version 0.1-beta para quien le interese, lleva tambien configuracion para activarlo o no y para decidir si alguien de otro dominio puede hacer login.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">---</span> roundcubemail<span style="color: #339933;">-</span>0<span style="color: #339933;">.</span>1beta<span style="color: #339933;">/</span>config<span style="color: #339933;">/</span>main<span style="color: #339933;">.</span>inc<span style="color: #339933;">.</span>php<span style="color: #339933;">.</span>dist
<span style="color: #cc66cc;">2006</span><span style="color: #339933;">-</span><span style="color: #208080;">02</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">21</span> <span style="color: #208080;">00</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span><span style="color: #339933;">:</span><span style="color:#800080;">13.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">+++</span> roundcubemail<span style="color: #339933;">.</span><span style="color: #000000; font-weight: bold;">new</span><span style="color: #339933;">/</span>config<span style="color: #339933;">/</span>main<span style="color: #339933;">.</span>inc<span style="color: #339933;">.</span>php<span style="color: #339933;">.</span>dist  <span style="color: #cc66cc;">2006</span><span style="color: #339933;">-</span><span style="color: #208080;">02</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">23</span>
<span style="color: #cc66cc;">15</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">28</span><span style="color: #339933;">:</span><span style="color:#800080;">07.614663680</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">171</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">171</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">21</span> <span style="color: #339933;">@@</span>
<span style="color: #666666; font-style: italic;">// show pretty dates as standard</span>
<span style="color: #000088;">$rcmail_config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'prettydate'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">/*
+        Automatic add webserver domain and option to not
let to connect with other domains
+                               Author: Marco
+                               Date: 23/02/2006
+                               Mail: P0L0_notspam_binware.org
+*/</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">//Automatic add @domain from webserver domain</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$rcmail_config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'adddomain'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">//Number of dots for domain</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$rcmail_config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'adddomain_dots'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">//Dont let login with different domains</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$rcmail_config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'adddomain_dif'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">/* End */</span>
<span style="color: #339933;">+</span>
<span style="color: #666666; font-style: italic;">// end of config file</span>
<span style="color: #339933;">-</span>?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
\ No newline at <span style="color: #990000;">end</span> of <span style="color: #990000;">file</span>
<span style="color: #339933;">+</span>?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
diff <span style="color: #339933;">-</span>Naur roundcubemail<span style="color: #339933;">-</span>0<span style="color: #339933;">.</span>1beta<span style="color: #339933;">/</span>program<span style="color: #339933;">/</span><span style="color: #b1b100;">include</span><span style="color: #339933;">/</span>main<span style="color: #339933;">.</span>inc
roundcubemail<span style="color: #339933;">.</span><span style="color: #000000; font-weight: bold;">new</span><span style="color: #339933;">/</span>program<span style="color: #339933;">/</span><span style="color: #b1b100;">include</span><span style="color: #339933;">/</span>main<span style="color: #339933;">.</span>inc
<span style="color: #339933;">---</span> roundcubemail<span style="color: #339933;">-</span>0<span style="color: #339933;">.</span>1beta<span style="color: #339933;">/</span>program<span style="color: #339933;">/</span><span style="color: #b1b100;">include</span><span style="color: #339933;">/</span>main<span style="color: #339933;">.</span>inc
<span style="color: #cc66cc;">2006</span><span style="color: #339933;">-</span><span style="color: #208080;">02</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">21</span> <span style="color: #208080;">00</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span><span style="color: #339933;">:</span><span style="color:#800080;">13.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">+++</span> roundcubemail<span style="color: #339933;">.</span><span style="color: #000000; font-weight: bold;">new</span><span style="color: #339933;">/</span>program<span style="color: #339933;">/</span><span style="color: #b1b100;">include</span><span style="color: #339933;">/</span>main<span style="color: #339933;">.</span>inc  <span style="color: #cc66cc;">2006</span><span style="color: #339933;">-</span><span style="color: #208080;">02</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">23</span>
<span style="color: #cc66cc;">15</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">31</span><span style="color: #339933;">:</span><span style="color:#800080;">08.237204880</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">365</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">365</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">42</span> <span style="color: #339933;">@@</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$CONFIG</span><span style="color: #339933;">,</span> <span style="color: #000088;">$IMAP</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DB</span><span style="color: #339933;">,</span> <span style="color: #000088;">$sess_user_lang</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$user_id</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">;</span>
<span style="color: #339933;">-</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span>       <span style="color: #666666; font-style: italic;">/*
+         Automatic add webserver domain and option to not
let to connect with other domains
+               Author: Marco
+               Date: 23/02/2006
+               Mail: P0L0_notspam_binware.org
+       */</span>
<span style="color: #339933;">+</span>       <span style="color: #666666; font-style: italic;">//Check if we need to add mail</span>
<span style="color: #339933;">+</span>       <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$CONFIG</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'adddomain'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">+</span>       <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>               <span style="color: #666666; font-style: italic;">//Save domain</span>
<span style="color: #339933;">+</span>               <span style="color: #000088;">$addTempDomain</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'.'</span><span style="color: #339933;">,</span>
<span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>               <span style="color: #000088;">$addDomain</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>               <span style="color: #b1b100;">for</span>
<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span></pre></div></div>

<p><a href="http://binware.org/downloads/roundcube.vhost.patch">Descargar</a></p>



Share:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fp0l0.binware.org%2Findex.php%2F2006%2F02%2F27%2Froundcube-vhost-patch%2F&amp;partner=sociable" title="Print"><img src="http://p0l0.binware.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fp0l0.binware.org%2Findex.php%2F2006%2F02%2F27%2Froundcube-vhost-patch%2F&amp;title=Roundcube%20vhost%20patch&amp;bodytext=Bueno%20trasteando%20con%20el%20roundcube%20para%20binware%20he%20visto%20que%20le%20faltan%20algunas%20cosas%2C%20aunque%20esta%20muy%20bien%20dise%C3%AF%C2%BF%C2%BDado%20y%20funciona%20mas%20o%20menos%20estable.%0D%0A%0D%0AComo%20en%20squirrelmail%20uso%20la%20opcion%20de%20vhost%20para%20que%20los%20usuarios%20no%20tengan%20que%20poner%20el%20domini" title="Digg"><img src="http://p0l0.binware.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fp0l0.binware.org%2Findex.php%2F2006%2F02%2F27%2Froundcube-vhost-patch%2F&amp;title=Roundcube%20vhost%20patch&amp;notes=Bueno%20trasteando%20con%20el%20roundcube%20para%20binware%20he%20visto%20que%20le%20faltan%20algunas%20cosas%2C%20aunque%20esta%20muy%20bien%20dise%C3%AF%C2%BF%C2%BDado%20y%20funciona%20mas%20o%20menos%20estable.%0D%0A%0D%0AComo%20en%20squirrelmail%20uso%20la%20opcion%20de%20vhost%20para%20que%20los%20usuarios%20no%20tengan%20que%20poner%20el%20domini" title="del.icio.us"><img src="http://p0l0.binware.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fp0l0.binware.org%2Findex.php%2F2006%2F02%2F27%2Froundcube-vhost-patch%2F&amp;t=Roundcube%20vhost%20patch" title="Facebook"><img src="http://p0l0.binware.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fp0l0.binware.org%2Findex.php%2F2006%2F02%2F27%2Froundcube-vhost-patch%2F&amp;title=Roundcube%20vhost%20patch&amp;annotation=Bueno%20trasteando%20con%20el%20roundcube%20para%20binware%20he%20visto%20que%20le%20faltan%20algunas%20cosas%2C%20aunque%20esta%20muy%20bien%20dise%C3%AF%C2%BF%C2%BDado%20y%20funciona%20mas%20o%20menos%20estable.%0D%0A%0D%0AComo%20en%20squirrelmail%20uso%20la%20opcion%20de%20vhost%20para%20que%20los%20usuarios%20no%20tengan%20que%20poner%20el%20domini" title="Google Bookmarks"><img src="http://p0l0.binware.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Roundcube%20vhost%20patch&amp;body=http%3A%2F%2Fp0l0.binware.org%2Findex.php%2F2006%2F02%2F27%2Froundcube-vhost-patch%2F" title="email"><img src="http://p0l0.binware.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fp0l0.binware.org%2Findex.php%2F2006%2F02%2F27%2Froundcube-vhost-patch%2F&amp;title=Roundcube%20vhost%20patch&amp;source=P0L0%26%23039%3Bs+Blog+Opensource+Projects+and+IT+experiences&amp;summary=Bueno%20trasteando%20con%20el%20roundcube%20para%20binware%20he%20visto%20que%20le%20faltan%20algunas%20cosas%2C%20aunque%20esta%20muy%20bien%20dise%C3%AF%C2%BF%C2%BDado%20y%20funciona%20mas%20o%20menos%20estable.%0D%0A%0D%0AComo%20en%20squirrelmail%20uso%20la%20opcion%20de%20vhost%20para%20que%20los%20usuarios%20no%20tengan%20que%20poner%20el%20domini" title="LinkedIn"><img src="http://p0l0.binware.org/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fp0l0.binware.org%2Findex.php%2F2006%2F02%2F27%2Froundcube-vhost-patch%2F" title="Meneame"><img src="http://p0l0.binware.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Roundcube%20vhost%20patch%20-%20http%3A%2F%2Fp0l0.binware.org%2Findex.php%2F2006%2F02%2F27%2Froundcube-vhost-patch%2F" title="Twitter"><img src="http://p0l0.binware.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2006/02/27/roundcube-vhost-patch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
