Difference: SampleBrandedLogin (1 vs. 2)

Revision 224 Jun 2009 - BboySe

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<?php
Line: 58 to 58
 

META FILEATTACHMENT attachment="cpanel-login.phps.txt" attr="h" comment="" date="1239056145" name="cpanel-login.phps.txt" path="cpanel-login.phps" size="1091" stream="cpanel-login.phps" tmpFilename="/var/tmp/CGItemp44387" user="JustinSchaefer" version="1"
Added:
>
>
META FILEATTACHMENT attachment="TO-DO.txt" attr="" comment="" date="1245862323" name="TO-DO.txt" path="TO-DO.txt" size="819" stream="TO-DO.txt" tmpFilename="/var/tmp/CGItemp3947" user="BboySe" version="1"

Revision 106 Apr 2009 - Main.JustinSchaefer

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"
<?php
#Login Configuration

#cPanel
$protocol = 'http';
$port = 2082;

#Secure cPanel
#$protocol = 'https';
#$port = 2083;

#WHM
#$protocol = 'http';
#$port = 2086;

#Secure WHM
#$protocol = 'https';
#$port = 2087;

#Webmail
#$protocol = 'http';
#$port = 2095;

#Secure Webmail
#$protocol = 'https';
#$port = 2096;
?>

<html>
<h1>[Web Hosting Company Name Here]</h1>

<b>cPanel Login</b><br>

<?php
if ($_GET['failed'] == "1") {
?>
<font color=#FF0000>Your login attempt failed!</font>
<?php
}
print "<form action=\"" . $protocol . "://" . $_SERVER['HTTP_HOST'] . ":" . $port . "/login/\" 
method=POST>";
?>
User: <input type="text" name="user"><br>
Pass: <input type="password" name="pass"><br>
<?php
print "<input type=hidden name=failurl value=\"http://" .  $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?failed=1\">";
?>
<input type="hidden" name="login_theme" value="default">
<input type="submit" value="Login">
</form><br>
<a href="cpanel-login.phps">Source</a><br>
Note: This examples requires cPanel 9.4.1 or later!
The login theme option requests cPanel 11.1.0 or later!
</html>

META FILEATTACHMENT attachment="cpanel-login.phps.txt" attr="h" comment="" date="1239056145" name="cpanel-login.phps.txt" path="cpanel-login.phps" size="1091" stream="cpanel-login.phps" tmpFilename="/var/tmp/CGItemp44387" user="JustinSchaefer" version="1"