[imp] Customized Login

Sparkie sparkie at realns.com
Mon Jan 5 11:51:24 PST 2004


 I use PHP-Nuke for the front end to my website, and I have created a 
'block' to allow login from the main page into horde/imp

 However, when I login, it goes directly to Horde rather than IMP.

 My horde installation is set to to login directly to IMP, and it works 
from the main login page.

 My question is, did I miss something from the custom_login script that 
I need to add?

 Here is the 'block' code (others have asked many times I searched the 
archive for quite a while looking for a solution)

$url = explode('|', $row['url']);
      if(!$url[0]) {
      $address = "http://webmail.realns.com";
      } else {
      $address = "$url[0]";
      }
        if(!$url[1]) {
      $server = "localhost";
      } else {
      $server = "$url[1]";
      }
        if(!$url[2]) {
      $port     = "143";
      } else {
      $port     = "$url[2]";
      }
      if(!$url[3]) {
      $maildomain = "realns.com";
      } else {
      $maildomain = "$url[3]";
      }
      if(!$url[4]) {
      $realm = "realns.com";
      } else {
      $realm = "$url[4]";
        }
$content = "<form action=\"$address/horde/imp/redirect.php\" 
method=\"post\" name=\"implogin\" />"
        ."<input type=\"hidden\" name=\"actionID\" value=\"105\" />"
        ."<input type=\"hidden\" name=\"url\" 
value=\"$address/horde/login.php\" />"
        ."<input type=\"hidden\" name=\"mailbox\" value=\"INBOX\" />"
        ."<input type=\"hidden\" name=\"server\" value=\"$server\" />"
        ."<input type=\"hidden\" name=\"port\" value=\"$port\" />"
        ."<input type=\"hidden\" name=\"namespace\" value=\"INBOX.\" />"
        ."<input type=\"hidden\" name=\"maildomain\" 
value=\"$maildomain\" />"
        ."<input type=\"hidden\" name=\"protocol\" value=\"imap/notls\" />"
        ."<input type=\"hidden\" name=\"realm\" value=\"$realm\" />"
        ."<input type=\"hidden\" name=\"folders\" value=\"\" />"
        ."<b>"._USERNAME."</b><br>"
        ."<input type=\"text\" tabindex=\"1\" name=\"imapuser\" 
value=\"\" class=\"pn-normal\" /><br>"
        ."<b>"._PASSWORD."</b><br>"
        ."<input type=\"password\" tabindex=\"2\" name=\"pass\" 
class=\"pn-normal\" /><br>"
        ."<input type=\"submit\" class=\"button\" name=\"button\" 
tabindex=\"3\" value=\"Log in\" />"
        ."</form>";

?>




More information about the imp mailing list