| Code: |
<html>
<?php
#your domain or ip
$domain = "127.0.0.1";
if(!$_POST['login']) {
exit;
}
$user = $_POST['user'];
$pass = $_POST['pass'];
$port = $_POST['port'];
$port == "2083" || $port == "2096" ? $pre = "https://" : $pre = "http://";
$port == "2095" || $port == "2096" && !eregi("@", $user) ? $user = "".$user."@".$domain."" : $user = $user;
?>
<body onLoad="setTimeout('document.forms[0].submit();',10)">
<form action="<?php echo "".$pre."".$domain.":".$port."/login/"; ?>" method="post">
<input type="hidden" name="user" value="<?php echo $user; ?>">
<input type="hidden" name="pass" value="<?php echo $pass; ?>">
</form>
</body>
</html> |
| Code: |
<?php
/************************************************************************/
/* Viking NetWerkz Unix Web Hosting-NetWerkz Your Site */
/* A Viking NetWerkz PHP-NUKE Contribution */
/* Cpanel Login Block */
/* Enhanced Cpanel original by unknown */
/*-please email me to receive such credit */
/* infoatvikingnetwerkz.com */
/* Copyright (c) 2002 by Philip Emilson */
/* http://www.vikingnetwerkz.com */
/* =========================== */
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-cpanel.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content .= "<form action=\"cplogin.php\" method=\"post\" target=\"_blank\" >\n";
$content .= "<table >";
$content .= "Username:<input type=\"text\" name=\"user\" size=\"16\" maxlength=\"25\" >\n";
$content .= "Password:<input type=\"password\" name=\"pass\" size=\"16\" maxlength=\"25\" >\n";
$content .= "<tr><td>Login To:</td><TR><BR></TR>\n";
$content .= "<td align=\"right\">\n";
$content .= "<select name=\"port\">\n";
$content .= "<option value=\"2082\">cPanel</option>\n";
$content .= "<option value=\"2083\">Secure cPanel</option>\n";//uncomment for secure access
$content .= "<option value=\"2095\">Webmail</option>\n";
$content .= "<option value=\"2096\">Secure Webmail</option>\n";//uncomment for secure webmail
$content .= "</select>\n";
$content .= "</td></tr>\n";
$content .= "<tr><td align=\"right\" >\n";
$content .= "<input type=\"submit\" name=\"login\" value=\"login\" style=\"cursor:pointer\"> \n";
$content .= " </td>\n";
$content .= "</tr>\n";
$content .= "<img src=\"images/cpanel.gif\">\n";
$content .= "</table>\n";
$content .= "</form>\n"; |