1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

plesk login webpage integration

Discussion in 'Plesk for Linux - 8.x and Older' started by jhewer, Jun 17, 2005.

  1. jhewer

    jhewer Guest

    0
     
    hi

    wish to integrate into my website a login for my plesk control panel, and another for my horde webmail, so that clients and myself can easily log into both from my website. so basically i want some text boxes on my site which 'link' to those corresponding to those of my plesk and horde webmail, acting as a shortcut....

    i have checked with the company who i have my virtual server registered with, and they assure me that this is possible, however cannot give me any more info on how to go about achieving this.

    if anyone could give me any advice then that woudl be great :)

    cheers
    jon
     
  2. sieb@

    sieb@ Guest

    0
     
    4PSA.com
     
  3. jhewer

    jhewer Guest

    0
     
    i assume its 4PSA Central Login i'm looking at? are there not any free alternatives? - is it not possible, using php or something, to take the data that would be entered in the login form on my site, and forward it onto my plesk login page and log on?
     
  4. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    No problem, here you go:

    For webmail login from your web page, insert this into the html:

    <form action="http://webmail.domain.com/horde/imp/redirect.php" method="post" name="implogin" target="_blank" style="margin-bottom: 0; margin-top: 0">
    <input type="hidden" name="actionID" value="105" />
    <input type="hidden" name="url" value="" />
    <input type="hidden" name="mailbox" value="INBOX" />
    <table align="center" border="0" width="100%">
    <tr>
    <td align="right" width="38%"><font size="2">Username:</font></td>
    <td align="left" width="62%"><input type="text" class="MyClass" tabindex="1" name="imapuser" value="" /></td>
    </tr>
    <tr>
    <td align="right" width="38%"><font size="2">Password:</font></td>
    <td align="left" width="62%"><input type="password" class="MyClass" tabindex="2" name="pass" /></td>
    </tr>
    <tr>
    <td><input type="hidden" name="folders" value="INBOX" />
    <input type="hidden" name="new_lang" value="en_US">
    <input type="hidden" tabindex="3" name="server" value="mail.domain.com"></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td align="left" class="light"><input type="submit" class="button" height="15px" name="button" tabindex="4" value="Login" onclick="return submit_login();" /></td>
    </tr>
    </table>
    </form>
    <script language="JavaScript" type="text/javascript">
    <!--

    function selectLang()
    {

    if (document.implogin.imapuser.value == '' &&
    document.implogin.pass.value == '') {
    var lang_page = 'login.php?new_lang=' + document.implogin.new_lang[document.implogin.new_lang.selectedIndex].value;
    self.location = lang_page;
    }
    }
    //-->
    </script>
    <script language="JavaScript1.2" type="text/javascript">
    <!--

    if (window.document.captureEvents != null) {
    window.document.captureEvents(Event.KEYPRESS);
    window.document.onkeypress = enter_key_trap;
    }
    //-->
    </script>
    <!-- This file contains any "Message Of The Day" Type information -->
    <!-- It will be included below the log-in form on the login page. -->
    <script language="JavaScript" type="text/javascript">
    <!--
    if (parent.frames.horde_main) parent.document.title = 'Webmail :: Welcome';
    //-->
    </script>

    Be sure to change 'domain.com' to your domain name
     
  5. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    And here's for the Plesk login:

    <form action="https://xxx.xxx.xxx.xxx:8443/login_up.php3" method="post" name="form1" target="_blank" id="form1" style="margin-bottom: 0"><h4>Plesk Control Panel</h4><center>Manage your webspace and email.</center>
    <table width="98%">
    <tr>
    <td width="38%" align="right"><font size="2">Login:</font></td>
    <td width="62%" align="left"><input class="input; MyClass" name="login_name" type="text" id="login_name" value="" maxlength="50"><br></td>
    </tr>
    <tr>
    <td width="38%" align="right"><font size="2">Password:</font></td>
    <td width="62%" align="left"><input name="passwd" type="password" id="passwd" value="" maxlength="50" class="MyClass"><br></td>
    </tr>
    <tr>
    <td width="38%"></td>
    <td width="62%"><input type="submit" height="18px" value="Login"></td>
    </tr>
    </table>
    </form>

    Once again, insert your parameters in the first line. In both instances I have a new window open after login. To avoid this simply remove 'target="_blank"' from the form statement
     
  6. jhewer

    jhewer Guest

    0
     
    brilliant! thanks very much :D
     
  7. sieb@

    sieb@ Guest

    0
     
    Only problem is.. What if you run multiple plesk servers? How hard would it be to change it to parse the domain name out and put that in as the correct address instead of using a static IP?
     
  8. jhewer

    jhewer Guest

    0
     
    True, but in my case i only have one plesk server - so it works perfectly for me
     
  9. hardweb

    hardweb Guest

    0
     
    The login on a single server is simple, as described above (just pass arguments to the action script). 4PSA Central Login addresses the problem of login to multiple serves. There are providers that use it with more than 50 servers.
     
  10. VikashD

    VikashD New Pleskian

    6
    20%
    Joined:
    Nov 17, 2013
    Messages:
    2
    Likes Received:
    0
    hi

    I wish to integrate into my website a login for my Mail Enable webmail, not in Horde.
    please give me the html code for Mail Enable webmail so that i can put it on my website.
     
Loading...