default login page?

/config is just a redirect, which you can change if you want.
I'm not sure of the specific path and filename, but skins are stored in /usr/local/directadmin/data/skins/
 
yeah, that's what I figured.

Is it possible that it's somewhere else?

I grep'd for it in the /usr/local/directadmin tree, and it found a reference to it in the directadmin binary file. Could it be something that is embedded in the binary?
 
It could be hard coded. I got to a place where I could take a look and the nearest I found was loggedout.html

You might try asking DirectAdmin to use a customizable file. In the meantime you can setup a redirect to your own login page so that, for example, /config redirects to your custom login page.
 
Hey,

If you are trying to create a custom login page for Direct Admin then you should create a "login.html" page in this directory:

/usr/local/directadmin/data/templates

DA will then pick it up as the default.

The standard login page is hard coded but DA looks in that directory first for a login page.

At least that's how we do it!

Thanks, David
 
Hi skruf,

I'am fully translating the enhanced skin but until I read your post I think the login can't translate, many thanks for the info.

What happen when DA update the skin?

Can you post here (or PM) the 'login.html' you use as alternative to the hard coded DA use.

TIA
Ramon
 
Last edited:
Hey,

Sure... Here's the login.html...

|?FAILEDLOGIN=Invalid login. Please verify your Username and Password.|
<html>
<head>
<title>Control Panel Login</title>
<style>
*{ FONT-SIZE: 8pt; FONT-FAMILY: verdana; }
.title { BACKGROUND: #425984; COLOR: #EEEEEE; white-space: nowrap; }
.list { BACKGROUND: #EEEEEE; white-space: nowrap; }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body onLoad="document.form.username.focus();" bgcolor="#6696bc" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<br><br><br><br>
<table width="440" height="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" width="440" height="61"><a href="http://admin.davlin.net"><img src="https://|HOSTNAME|/images-DA-login/mslogin_1.gif" width="440" height="61" alt="Site Login" border="0"></a></td>
</tr>
<tr>
<td background="https://|HOSTNAME|/images-DA-login/mslogin_2.gif"><img src="https://|HOSTNAME|/images-DA-login/spacer.gif" width="7" height="1"></td>
<td width="425" height="195" align="center" bgcolor="#F6FDBD">
<table width="100%" height="195" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<font color=#ff0000" face="verdana, Arial, sans-serif" size="-1"><b>
|FAILEDLOGIN|
</b></font>
<br><br>
<table width="300" cellspacing="1" cellpadding="5" border="0" >
<tr>
<td class=title align=center bgcolor="#425984" colspan=2>
Please enter your Username and Password
</td></tr>
<form action="https://|HOSTNAME|:2222/CMD_LOGIN" method="POST" name="form">
<input type=hidden name=referer value="/">
<tr>
<td class=list bgcolor="#eeeeee" align=right>
Username:
</td>
<td bgcolor="#eeeeee"><input type=text name=username size=26>
</td>
</tr>
<tr>
<td class=list bgcolor="#eeeeee" align=right>
Password:
</td>
<td bgcolor="#eeeeee"><input type=password name=password size=26></td>
</tr>
<tr>
<td bgcolor="#425984" align="right" colspan="2">
<input type=image height=16 width=64 src="https://|HOSTNAME|/images-DA-login/login.gif" value=Submit>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
<td background="https://|HOSTNAME|/images-DA-login/mslogin_3.gif"><img src="https://|HOSTNAME|/images-DA-login/spacer.gif" width="8" height="1"></td>
</tr>
<tr>
<td colspan="3" width="440" height="44">
<img src="https://|HOSTNAME|/images-DA-login/mslogin_4.gif" width="440" height="44" alt="">
</td>
</tr>
</table>
<br>
<a href="http://www.comodogroup.com" target="_blank"><img src="https://|HOSTNAME|/images-DA-login/instantssl.gif" alt="SSL" width="100" height="60" style="border: 0px;"></a>
<br>
</center>
</body>
</html>

The page is located here:

https://w28host236.davlin.net:2222

The "|HOSTNAME|" is in there because we use it on more than one server and it simply makes it easier...

David
 
Many thanks David, :)

Your login page is very nice and the comodo link bellow looks very profesional :cool:. Now I only need some minor things to have fully translated the enhanced skin.

Thanks again,
Ramon
 
Back
Top