PDA

View Full Version : Login to control panel from /var/www


jetonr
February 23rd, 2009, 08:02 PM
Hello people, I am new to ubuntu and Linux world first of all but so far I doing good ( thanks to posts and forums ) I would like to know if there is a possible way to put the login form in the main /var/www page where i would put my own theme with the form to login. How to send user and pass from there?
I hope I don't sound stupid!!!

The login form from EHCP loks like:
<h2>Ehcp login</h2>
<form id="loginForm" name="loginForm" method="post">
<table>
<tbody><tr><td>username </td><td> <input name="username" id="username" value="" type="text"></td></tr>
<tr><td>password </td><td> <input name="password" value="" type="password"></td></tr>
<tr><td><input name="op" value="dologin" type="hidden"></td></tr>
</tbody></table>
<input value="Submit" type="submit">
</form>
<script type="text/javascript">
document.loginForm.username.focus();
</script>
<br><a href="?op=applyforaccount">Apply For ftp/domain/panel accounts</a><br>
<a href="?op=sifrehatirlat">Lost pass</a><b><br><br>

</div>

bvidinli
February 25th, 2009, 12:08 PM
yes it is possible,
put same code/html file after you modify as you wish,
and replace form line with following:

<form id="loginForm" name="loginForm" method="post" action /vhosts/ehcp/index.php>

thats all