Jump to content

remote login help needed


Maniac199

Recommended Posts

I have looked around the forums and tried figureing this out myself but it does not seem to be working. I have one login form for 3 different control panels. The one for modernbill and hsphere is working fine but tcadmin keeps dumping me to the login screen instead of logging them in.

 

What I am doing is having the form post to a php script that takes the data and converts it into a command line link, it then forwards the person to that link.

 

here is the code:

<?php
$username = $_REQUEST['username'];
$password = $_REQUEST['password'];
$panel = $_REQUEST['cp'];
if($panel == "cp")
$address = "http://tca.progamerhosting.com/Templates/Default/login.aspx?USERID=$username&PASSWORD=$password";
else if($panel == "billing")
$address = "https://modernbill.progamerhosting.com/index.php?op=login&submit=submit&username=$username&password=$password";
else if($panel == "web")
$address = "https://cp.progamerhosting.com:8443/psoft/servlet/psoft.hsphere.CP?action=login&ftemplate=design/login.html&login=$username&password=$password";
else
$address = "http://www.progamerhosting.com";
?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="0;url=<?php echo $address; ?>">
<title>Welcome to Pro Gamer Hosting Inc.</title>
</head>

<body>
<div align="center">
 <p>Processing login please wait.</p>
 <p>If you do not get automatically logged in please click <a href="<?php echo $address; ?>">here</a> </p>
</div>
</body>
</html>

 

Thanks for the help.

Link to comment
Share on other sites

Correct. I have a dropdown menu that determines what panel they want to log into. You can pass information to a page via the command line using the ?variable=value&variable=value

 

The other 2 panels work fine.

To see more of what I am talking about check out our testing site:

http://test.progamerhosting.com

The member area at the top.

 

Basically here is what the code does:

1. Collects data from the form that the user entered and stores it in variables.

2. Determines what panel the user was trying to log into and formulates a URL that will pass the necessary data to the login page.

3. loads a basic HTML page with a redirect to the formulated address stated above.

 

The only thing that I can think of is that asp does not support the method used to transfer information via the URL but am pretty sure thats not it.

 

Thanks for the help again.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 9 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use