1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

How to integrate Plesk Control Panel login into webpage?

Discussion in 'Plesk for Linux - 8.x and Older' started by mirakku, Feb 25, 2005.

  1. mirakku

    mirakku Guest

    0
     
    How would I go about integrating a login box on my main page so that when filled with username and password it will log the user into their Plesk Control panel?

    Any help appreciated :)

    miR
     
  2. poke

    poke Guest

    0
     
    Hello,
    I know that plesk expand has this feature and everything you would need is in the documentation. I currently use 4PSA's central login and you can acheive the same results.

    Hope this helps..


    poke
     
  3. smtalk

    smtalk Guest

    0
     
    <form action="https://domain.com:8443/login_up.php3" method="post" name="form1" target="_blank">
    <input name="login_name" type="text" value="">
    <input name="passwd" type="password" value="">
    <input type="submit" value="Login">
    </form>
     
  4. mirakku

    mirakku Guest

    0
     
    Thanks smtalk :)
     
  5. smtalk

    smtalk Guest

    0
     
    You're welcome ;) Good luck.
     
  6. md3vxx

    md3vxx Guest

    0
     
    Options

    Is there a way to have a drop down box for the user to select the server they want to login to, e.g. :

    server1.hostingcomp.com
    server2.hostingcomp.com

    Then have the username/password box available for the user to select from?

    m.
     
  7. zacpac

    zacpac Guest

    0
     
    i do this by having a a domain name box that they fill in as well and then a back end script does an ipaddress lookup so that it can log into the right server and not have the invalid cert message come up
     
  8. md3vxx

    md3vxx Guest

    0
     
    Care to share your scripts?

    Thanks :)
     
  9. zacpac

    zacpac Guest

    0
     
    thats the basic backend script its was a quick and dirty fix for a problem and its been altered from the orginal i found in a forum that was written by mirahost and it was called something like Server Assistant Login

    $db_name = "";
    $db_user = "";
    $db_pass = "";

    // No need to edit below
    @ $db = mysql_connect("localhost", "$db_user", "$db_pass");

    if (!$db)
    {
    echo "Error: Could not connect to database. Please try again later.";
    exit;
    }


    if ($_POST['service'] !=""){
    mysql_select_db("$db_name");
    $ip = gethostbyname($_POST['domain']);
    $query = "select server_name from servers where ips like '%".$ip."%'";
    $result = mysql_query($query);
    $row = mysql_fetch_array($result);
    if($result)
    {
    if($_POST['service'] =="plesk"){
    header("Location: https://$row[0]:8443/login_up.php3?login_name=".$_POST['login']."&passwd=".$_POST['passwd']."");
    exit;
    }
    elseif($_POST['service'] =="urchin"){
    header("Location: https://$row[0]:9999/session.cgi?app=admin&action=login&user=".$_POST['login']."&pass=".$_POST['passwd']."");
    exit;
    }
    elseif($_POST['service'] =="webmail"){
    header("Location: http://webmail.".$_POST['domain']."/horde/");
    exit;
    }
    elseif($_POST['service'] =="modernbill"){
    header("Location: https://domain.name/modernbill/?username=".$_POST['login']."&password=".$_POST['passwd']."&op=login&submit=submit");
    exit;
    }
    }
    }
    ?>
     
  10. zacpac

    zacpac Guest

    0
     
Loading...