I use NOCC for multiple domains.
I setted up apache vhosts, so every webmail subdomein
ends up in the same directory as NOCC.
I didn't want users must choic there own domain. so I
adapted the login code a little, which checks the
Domain againt the domains in the conf.
I'd like to see my code merged in the source tree, so I
don't have to care when updating NOCC.
code:
else if ( isset($conf->vhost_domain_login) ) {
$i = 0;
while
(!empty($conf->domains[$i]->in))
{
if
(strpos($_SERVER["HTTP_HOST"],$conf->domains[$i]->domain))
echo
"<input type=\"hidden\" name=\"domainnum\" value=\"" .
$i . "\" />\n";
$i++;
}
}
Logged In: YES
user_id=529507
Could you please attach the patch as a diff file ?
Logged In: YES
user_id=1103799
Can someone please make a diff file. Cause I can't get the
whole diff/cvs thing working on win32.
patched index.php
Logged In: YES
user_id=529507
You may attach the full modified file.
I'll do the diff myself, then commit changes to CVS repository.
Logged In: YES
user_id=529507
Oops, sorry.
I didn't see it was already done :)
Logged In: YES
user_id=529507
Fixed in CVS.
It'll be included in next release.
But you can download daily snapshots at :
http://nocc.sourceforge.net/download/
Thanks for the patch.