• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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