Pages

Subscribe:

Ads 468x60px

Labels

Rabu, 29 Juni 2011

Editing Hotspot login Page

alow all
Mungkin ini pernah di bahas sebelumnya cmn ngga lengkap ..jadi saya cmn mo lengkapin aja , jadi buad bang
momod kalu emang udah ada tinggal di pindah aja ....
(Tq to Priyo@datautama for this )
..sebenernya yang kita perlukan hanya 3 scipt yang bisa di paste di htmlnya
Dibawah body :
$(if chap-id)
<form name=”sendin” action=”$(link-login-only)” method=”post”>
<input type=”hidden” name=”username” />
<input type=”hidden” name=”password” />
<input type=”hidden” name=”dst” value=”$(link-orig)” />
<input type=”hidden” name=”popup” value=”true” />
</form>
<script type=”text/javascript” src=”/md5.js”></script>
<script type=”text/javascript”>
<!–
function doLogin() {
document.sendin.username.value = document.login.username.value;
document.sendin.password.value = hexMD5(’$(chap-id)’ + document.login.password.value + ‘$(chapchallenge)’);
document.sendin.submit();
return false;
} //–>
</script>
$(endif)
================================================== ======
Form Login & Password
$(if trial == ‘yes’)Free trial available, <a style=”color: #FF8080″href=”$(link-login-only)?dst=$(link-origesc)&
amp;username=T-$(mac-esc)”>click here</a>.$(endif)
<form name=”login” action=”$(link-login-only)” method=”post”
$(if chap-id) onSubmit=”return doLogin()” $(endif)>
<input type=”hidden” name=”dst” value=”$(link-orig)” />
<input type=”hidden” name=”popup” value=”true” />
<table width=”100″ align=”center” background=”images/login_05.gif” style=”background-color: #ffffff”>
<tr>
<td align=”right”>login</td>
<td><input style=”width: 80px” name=”username” type=”text” value=”$(username)”/></td>
</tr>
<tr>
<td align=”right”>password</td>
<td><input style=”width: 80px” name=”password” type=”password”/></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name=”submit” type=”submit” value=”OK” /></td>
</tr>
</table>
</form>
================================================== ======
Tempatkan di atas body close tag
<script type=”text/javascript”>
<!–
document.login.username.focus();
//–>
</script>
DONE

0 komentar:

Posting Komentar