• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

How to integrate Plesk Control Panel login into webpage?

M

mirakku

Guest
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
 
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
 
<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>
 
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.
 
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
 
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;
}
}
}
?>
 
Back
Top