Autor | Zpráva | ||
---|---|---|---|
jedla1 Profil |
#1 · Zasláno: 31. 1. 2012, 07:16:10
Dobrý den!
Abych se přiznal, nechci se ani tak naučit psát webové stránky, ale potřebuji si jen upravit již existující přihlašovací stránky hotspotu k obrazu svému. Na tomto webu jsem našel spoustu užitečných informací, které jsem využil a html si myslím celkem chápu. Ale k věci, vše funguje tak, že při otevření přihlašovací stránky login.htm se vypní jméno heslo nebo se použije odkaz na free internet. Na této stránce si umím poladit pozadí a barvy a víc mi ani nejde. Řeším však to, co se uděje po přihlášení, protože automaticky se zobrazí domovská stránka, ale určitě lze vnutit i jiná a to nevím jak. Vytušil jsem z toho, že se asi někde nadefinuje nějaká proměnná, ale tím končím. Níže přikládám kódy stránek, které by v tom mohly být "namočené". Po přihlášení se na chvilku zobrazí informace, že jste uspěšně přihlášeni a je tam i odkaz, kde se dá stránka definovat, to bych uměl, ale není to to, co bych potřeboval. Předem díky za radu. login.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>internet 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 {background-image: URL('img/pokus.jpg'); 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)">Latviski</a> </div> <table width="100%" style="margin-top: 10%;"> <tr> <td align="center" valign="middle"> <div class="notice" style="color: #c1c1c1; font-size: 9px">Please log on to use the internet hotspot service<br />$(if trial == 'yes')Free trial available, <a style="color: #FF8080"href="$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)">click here</a>.$(endif)</div><br /> <table width="280" height="280" style="background-color: #ffffff; 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> </td> <td><input type="submit" value="OK" /></td> </tr> </table> </form> </td> </tr> <tr><td align="center"><a href="http://www.mikrotik.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">Powered by MikroTik RouterOS</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> alogin.html <html> <head> <title>mikrotik hotspot > redirect</title> <meta http-equiv="refresh" content="2; url=$(link-redirect)"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="-1"> <style type="text/css"> <!-- textarea,input,select { background-color: #FDFBFB; border: 1px #BBBBBB solid; padding: 2px; margin: 1px; font-size: 14px; color: #808080; } body{ color: #737373; font-size: 12px; font-family: verdana; } a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 12px; } a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; } img {border: none;} td { font-size: 12px; color: #7A7A7A; } --> </style> <script language="JavaScript"> <!-- function startClock() { $(if popup == 'true') open('$(link-status)', 'hotspot_status', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=290,height=200'); $(endif) location.href = '$(link-redirect)'; } //--> </script> </head> <body onLoad="startClock()"> <table width="100%" height="100%"> <tr> <td align="center" valign="middle"> You are logged in <br><br> If nothing happens, click <a href="$(link-redirect)">here</a></td> </tr> </table> </body> </html> redirect.html $(if http-status == 302)Hotspot redirect$(endif) $(if http-header == "Location")$(link-redirect)$(endif) <html> <head> <title>...</title> <meta http-equiv="refresh" content="0; url=$(link-redirect)"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="-1"> </head> <body> </body> </html> |
||
Joker Profil |
#2 · Zasláno: 31. 1. 2012, 09:26:12
jedla1:
K tomu bude ještě nějaký serverový kód, který to doplní. |
||
Časová prodleva: 12 let
|
0