Community discussions

MUM Europe 2020
 
keysers0ze
just joined
Topic Author
Posts: 10
Joined: Mon Sep 01, 2014 5:19 pm

$something variable in script uploads empty on router...

Tue Nov 11, 2014 8:03 pm

Trying to update login page with script via WebManager.. but value=\"$(mac)\" --> end up in router value=" " (every row which contain value="$foo" --> uploads " " )
- How to do (fix) script which contain "$(something)" which is not variable in script.. Its only variable on working later router itself after uploading ?

##################%<###################
/file set "hotspot/login.html" contents="<html>
<head><title>Mikrotik HotSpot System</title></head>
<body>
$(if chap-id)
<noscript>
<center><b>JavaScript required. Enable JavaScript to continue.</b></center>
</noscript>
$(endif)
<center>If you are not redirected in a few seconds, click 'continue' below<br>
<form name=\"redirect\" action=\"http://auth.hotspot.domain.com/login.php\" method=\"post\"/>
<input type=\"hidden\" name=\"mac\" value=\"$(mac)\">
<input type=\"hidden\" name=\"ip\" value=\"$(ip)\">
<input type=\"hidden\" name=\"username\" value=\"$(username)\">
<input type=\"hidden\" name=\"link-login\" value=\"$(link-login)\">
<input type=\"hidden\" name=\"link-orig\" value=\"$(link-orig)\">
<input type=\"hidden\" name=\"error\" value=\"$(error)\">
<input type=\"hidden\" name=\"chap-id\" value=\"$(chap-id)\">
<input type=\"hidden\" name=\"chap-challenge\" value=\"$(chap-challenge)\">
<input type=\"hidden\" name=\"link-login-only\" value=\"$(link-login-only)\">
<input type=\"hidden\" name=\"link-orig-esc\" value=\"$(link-orig-esc)\">
<input type=\"hidden\" name=\"mac-esc\" value=\"$(mac-esc)\">
<input type=\"submit\" value=\"continue\">
</form>
<script language=\"JavaScript\">
<!--
document.redirect.submit();
//-->
</script></center>
</body>
</html>"
##################>%###################

- thanks !

br.
.K

Who is online

Users browsing this forum: No registered users and 17 guests