View Single Post
  #5 (permalink)  
Old 07-09-2009, 03:24 PM
cPanelDavidG's Avatar
cPanelDavidG cPanelDavidG is offline
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
Quote:
Originally Posted by xman888 View Post
Hello,

Just a quick question.

Is it possible to have no header , and then have cpanel / webmail appear within a frame within an existing site, so that it keeps the same look and feel as the site?

If this is possible, were abouts in my form/code below do you tell the code to open up the page with the 'target frame'?

Thanks for any help.

Kind regards,
Anthony

<?php
$postlocation = "http://www.domain.com.au/docpanellogin.php";
print "<form action=\"" . $postlocation . "\" method=\"POST\">";

if (($_GET['failed'] == "1") or ($error == 1))
{
?>
<div align="center"><font color=#FF0000 face=verdana size=1>Your
login attempt failed!</font><br />
<?php
}
?>
<input name="domain" class="input2" type="text" value="" style="width:140;height:18;font-family:Verdana; font-size:8pt" size="20" />
<br />
<input name="username" class="input2" type="text" value="" style="width:140;height:18;font-family:Verdana; font-size:8pt" size="20" />
<br />
<input name="pass" class="input2" type="password" value="" style="width:140;height:18;font-family:Verdana; font-size:8pt" size="20" />
<?php
print "<input type=hidden name=failurl value=\"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?failed=1\">";
?>
<br />
<select name="login_option" style="font-family: Verdana; font-size: 8pt;width:100;height:18">
<option value="2082">cPanel </option>
<option value="2083">Secure cPanel </option>
</select>
<br />
<input name="submit" type="submit" class="input2" style="width:100;height:20;font-family:Verdana; font-size:8pt" onMouseOut="blur(this);" value=" Click to Login " />
</form>
What you could do is have your login page post to a script that generates a page with frames, and with the frame that should login to cPanel being automatically logged in using something like logmein.pm mentioned at:

http://forums.cpanel.net/437949-post5.html
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Reply With Quote