<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>DirectAdmin Login Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.tablestyle {
font-family: Verdana, Arial, Helvetica, sans-serif;
border: 1px solid #000000;
font-size: 12px;
}
</style>
<style type="text/css">
.buttonstyle {
}
</style>
<script language="javascript">
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var dalogin = "http://" + username + ":" + password + "@" + server + ":2222/";
window.location = dalogin;
}
else {
alert("Please enter a Username and password.");
}
}
</script>
</head>
<body>
<form name="login">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tablestyle"><div align="center"><font color="#003366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>DIRECTADMIN
LOGIN</strong></font></div></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font></td>
<td valign="middle"> <input name="username" type="text" class="tablestyle" maxlength="26"></td>
</tr>
<tr>
<td height="48" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password:</font></td>
<td><input name="password" type="password" class="tablestyle"></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Domain:</font></td>
<td width="50%" height="50"><input name="server" type="text" class="tablestyle">
</td>
</tr>
<tr>
<td colspan="2" class="tablestyle"><div align="center">
<p class="buttonstyle"><br>
<input type="button" name="button" value="Login!" onClick="Login(this.form)">
<br>
<br>
</p>
</div></td>
</tr>
</table>
<div align="center"></div>
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>DirectAdmin Login Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.tablestyle {
font-family: Verdana, Arial, Helvetica, sans-serif;
border: 1px solid #000000;
font-size: 12px;
}
</style>
<style type="text/css">
.buttonstyle {
}
</style>
<script language="javascript">
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var dalogin = "http://" + username + ":" + password + "@" + server + ":2222/";
window.location = dalogin;
}
else {
alert("Please enter a Username and password.");
}
}
</script>
</head>
<body>
<form name="login">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tablestyle"><div align="center"><font color="#003366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>DIRECTADMIN
LOGIN</strong></font></div></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font></td>
<td valign="middle"> <input name="username" type="text" class="tablestyle" maxlength="26"></td>
</tr>
<tr>
<td height="48" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password:</font></td>
<td><input name="password" type="password" class="tablestyle"></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Domain:</font></td>
<td width="50%" height="50"><input name="server" type="text" class="tablestyle">
</td>
</tr>
<tr>
<td colspan="2" class="tablestyle"><div align="center">
<p class="buttonstyle"><br>
<input type="image" name="button" value="http://link.to/image.ext" onClick="Login(this.form)">
<br>
<br>
</p>
</div></td>
</tr>
</table>
<div align="center"></div>
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>DirectAdmin Login Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.tablestyle {
font-family: Verdana, Arial, Helvetica, sans-serif;
border: 1px solid #000000;
font-size: 12px;
}
</style>
<style type="text/css">
.buttonstyle {
background-image: url([url]http://link.to/image.ext[/url]);
width: 468px;
height: 60px;
border: 1px solid #000000;
}
</style>
<script language="javascript">
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var dalogin = "http://" + username + ":" + password + "@" + server + ":2222/";
window.location = dalogin;
}
else {
alert("Please enter a Username and password.");
}
}
</script>
</head>
<body>
<form name="login">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tablestyle"><div align="center"><font color="#003366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>DIRECTADMIN
LOGIN</strong></font></div></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font></td>
<td valign="middle"> <input name="username" type="text" class="tablestyle" maxlength="26"></td>
</tr>
<tr>
<td height="48" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password:</font></td>
<td><input name="password" type="password" class="tablestyle"></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Domain:</font></td>
<td width="50%" height="50"><input name="server" type="text" class="tablestyle">
</td>
</tr>
<tr>
<td colspan="2" class="tablestyle"><div align="center">
<p><br>
<input name="button" type="button" class="buttonstyle" onClick="Login(this.form)">
<br>
<br>
</p>
</div></td>
</tr>
</table>
<div align="center"></div>
</form>
</body>
</html>
<?php
// change the below settings to anything you want :)
$pagetitle = "DirectAdmin Login Page"; // Title of this page
$imagelink = "http://link.to/yourimage.ext"; // link to your image
$imagewidth = "100"; // width of your image (in pixels)
$imageheight = "30"; // Height of your image (in pixels)
$border = "#000000" // Colour of the border placed around your button
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?php echo "$pagetitle"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.tablestyle {
font-family: Verdana, Arial, Helvetica, sans-serif;
border: 1px solid #000000;
font-size: 12px;
}
</style>
<style type="text/css">
.buttonstyle {
background-image: url(<?php echo "$imagelink"; ?>);
width: <?php echo "$imagewidth";?>px;
height: <?php echo "$imageheight"; ?>px;
border: 1px solid <?php echo "border"; ?>;
}
</style>
<script language="javascript">
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var dalogin = "http://" + username + ":" + password + "@" + server + ":2222/";
window.location = dalogin;
}
else {
alert("Please enter a Username and password.");
}
}
</script>
</head>
<body>
<form name="login">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tablestyle"><div align="center"><font color="#003366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>DIRECTADMIN
LOGIN</strong></font></div></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font></td>
<td valign="middle"> <input name="username" type="text" class="tablestyle" maxlength="26"></td>
</tr>
<tr>
<td height="48" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password:</font></td>
<td><input name="password" type="password" class="tablestyle"></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Domain:</font></td>
<td width="50%" height="50"><input name="server" type="text" class="tablestyle">
</td>
</tr>
<tr>
<td colspan="2" class="tablestyle"><div align="center">
<p><br>
<input name="button" type="button" class="buttonstyle" onClick="Login(this.form)">
<br>
<br>
</p>
</div></td>
</tr>
</table>
<div align="center"></div>
</form>
</body>
</html>
<?php
// change the below settings to anything you want :)
$pagetitle = "DirectAdmin Login Page"; // Title of this page
$address = "111.111.111.111"; // IP address used for login (can also be a domain)
$imagelink = "http://link.to/yourimage.ext"; // link to your image
$imagewidth = "100"; // width of your image (in pixels)
$imageheight = "30"; // Height of your image (in pixels)
$border = "#000000" // Colour of the border placed around your button
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?php echo "$pagetitle"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.tablestyle {
font-family: Verdana, Arial, Helvetica, sans-serif;
border: 1px solid #000000;
font-size: 12px;
}
</style>
<style type="text/css">
.buttonstyle {
background-image: url(<?php echo "$imagelink"; ?>);
width: <?php echo "$imagewidth";?>px;
height: <?php echo "$imageheight"; ?>px;
border: 1px solid <?php echo "border"; ?>;
}
</style>
<script language="javascript">
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var dalogin = "http://" + username + ":" + password + "@" <?php echo "address"; ?>:2222";
window.location = dalogin;
}
else {
alert("Please enter a Username and password.");
}
}
</script>
</head>
<body>
<form name="login">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tablestyle"><div align="center"><font color="#003366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>DIRECTADMIN
LOGIN</strong></font></div></td>
</tr>
<tr>
<td width="50%" height="50" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font></td>
<td width="50%" valign="middle"> <input name="username" type="text" class="tablestyle" maxlength="26"></td>
</tr>
<tr>
<td height="48" valign="middle"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password:</font></td>
<td><input name="password" type="password" class="tablestyle"></td>
</tr>
<tr>
<td colspan="2" class="tablestyle"><div align="center">
<p><br>
<input name="button" type="button" class="buttonstyle" onClick="Login(this.form)">
<br>
<br>
</p>
</div></td>
</tr>
</table>
<div align="center"></div>
</form>
</body>
</html>
ProWebUK said:would you rather have it not require the domain and just username / password?