Community discussions

MikroTik App
 
cylent
Member
Member
Topic Author
Posts: 383
Joined: Sun May 28, 2006 10:30 am

hotspot login page

Sat Jun 03, 2006 12:41 am

anybody got a hotspot page they designed i can look at?

i am pretty lame when it comes to designing anything

:oops:
 
Lukasz
newbie
Posts: 32
Joined: Tue May 16, 2006 4:41 pm
Location: Silesia, Poland

Sat Jun 03, 2006 11:34 am

take a ftp in MT, there is a directory "hotspot"
and open it, there is many files in HTML ...
next edit this files in notepad (windows) and change some things...
for example, I change english words to PL...,
next u can (but i don't now it's legal ->license) change a logo of MT to your company logo ...
and so on and so on ...
u must only read a things in this files ....
if u rely have a problem with this then write to my maniek27@poczta.onet.eu
 
cylent
Member
Member
Topic Author
Posts: 383
Joined: Sun May 28, 2006 10:30 am

Sat Jun 03, 2006 12:39 pm

thanks.

i wanted to SEE some examples though. something pretty i guess.

i already know to ftp and download the files. i already did that!
 
durim
newbie
Posts: 32
Joined: Thu Oct 27, 2005 6:25 pm

Sat Jun 03, 2006 12:44 pm

I have managed to edit the hotspot page , and I think its not a big deal after you have downloaded the hotspot from mikrotik ftp then yo can edit the page , for example login page you can edit how you want the design and other things but make sure that you don't remove any part of script (md5.js) because it doesn't work, and of course you put back them on mirktoik ftp .

Regards Durim.
 
Lukasz
newbie
Posts: 32
Joined: Tue May 16, 2006 4:41 pm
Location: Silesia, Poland

Mon Jun 05, 2006 12:01 pm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>mikrotik hotspot > login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<style type="text/css">
body {color: #737373; font-size: 10px; font-family: verdana;}

textarea,input,select {
background-color: #FDFBFB;
border: 1px solid #BBBBBB;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}

a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 10px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 14px; color: #7A7A7A; }
</style>

</head>

<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 + '$(chap-challenge)');
document.sendin.submit();
return false;
}
//-->
</script>
$(endif)

<div align="center">
<a href="$(link-login-only)?target=lv&dst=$(link-orig-esc)">-------YOUR COMPANY NAME ---------------</a>
</div>

<table width="100%" style="margin-top: 10%;">
<tr>
<td align="center" valign="middle">
<div class="notice" style="color: #c1c1c1; font-size: 9px">Proszę o zalogowanie do sieci COMPANY NAME<br />$(if trial == 'yes') <a style="color: #FF8080"href="$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)"></a>.$(endif)</div><br />
<table width="240" height="240" style="border: 1px solid #cccccc; padding: 0px;" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="bottom" height="175" colspan="2">
<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" 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 type="submit" value="OK" /></td>
</tr>
</table>
</form>
</td>
</tr>
<tr><td align="center"><a href="http://www.COMPANY NAME.com" target="_blank" style="border: none;"><img src="/img/logobottom.png" alt="mikrotik" /></a></td></tr>
</table>

<br /><div style="color: #c1c1c1; font-size: 9px">Wsparcie COMPANY NAME&copy; 2005 </div>
$(if error)<br /><div style="color: #FF8080; font-size: 9px">$(error)</div>$(endif)
</td>
</tr>
</table>

<script type="text/javascript">
<!--
document.login.username.focus();
//-->
</script>
</body>
</html>
 
cylent
Member
Member
Topic Author
Posts: 383
Joined: Sun May 28, 2006 10:30 am

Mon Jun 05, 2006 12:13 pm

thanks

now if i view that file on my local computer with Internet Explorer i see things like: $(if chap-id)

$(endif)

and other stuff.

shall I leave those alone? will they go away once i upload to the RouterOS box?
 
Lukasz
newbie
Posts: 32
Joined: Tue May 16, 2006 4:41 pm
Location: Silesia, Poland

Mon Jun 05, 2006 3:00 pm

live it, when u upload the files in to MT, thet can not see it !
 
knedlyk
just joined
Posts: 10
Joined: Sat Jul 18, 2020 4:18 pm

Re: hotspot login page

Fri Jan 21, 2022 4:31 am

Hi! I have installed hotspot on my router. When a user is logging in successfully he/she catches interesting error: immediately after the login page the page with "Error 404. Not Found" appears and disappears and I am joining internet. If I fail to login successfully (wrong credentials) the Error 404. Not Found appears. What should I correct?

Who is online

Users browsing this forum: f008600, mickeymouse690 and 84 guests