Menu

#60 vhost domain login

closed-fixed
None
5
2005-11-13
2005-08-24
No

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++;
}

}

Discussion

  • Anonymous

    Anonymous - 2005-08-25

    Logged In: YES
    user_id=529507

    Could you please attach the patch as a diff file ?

     
  • Edwin Meester

    Edwin Meester - 2005-08-31

    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.

     
  • Edwin Meester

    Edwin Meester - 2005-08-31

    patched index.php

     
  • Anonymous

    Anonymous - 2005-09-08
    • assigned_to: nobody --> goddess_skuld
     
  • Anonymous

    Anonymous - 2005-09-08

    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.

     
  • Anonymous

    Anonymous - 2005-09-08

    Logged In: YES
    user_id=529507

    Oops, sorry.
    I didn't see it was already done :)

     
  • Anonymous

    Anonymous - 2005-11-13

    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.

     
  • Anonymous

    Anonymous - 2005-11-13
    • status: open --> closed
     
  • Anonymous

    Anonymous - 2005-11-13
    • status: closed --> closed-fixed
     

Log in to post a comment.