redcomani.org/portalcautivo/status.html

186 lines
4.0 KiB
HTML
Raw Permalink Normal View History

2019-04-17 15:12:08 +00:00
<html>
2019-04-26 03:19:06 +00:00
2019-04-17 15:12:08 +00:00
<head>
2019-04-26 03:19:06 +00:00
<title>RedCoMani> estado</title>
$(if refresh-timeout)
<meta http-equiv="refresh" content="$(refresh-timeout-secs)"> $(endif)
<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 #ffffff solid;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
margin-bottom: 6px;
}
table {
width: 80%;
display: table-cell;
}
img {
width: 50%;
}
td {
font-size: 2em !important;
padding: 4px;
}
input[type="submit"] {
background: -webkit-linear-gradient(left, #7F9E3C, #E4A42F) !important;
;
border: none;
padding: 5px 20px 5px 20px;
color: white;
font-weight: 600;
border-radius: 30px;
margin-top: 1em;
2019-04-26 02:30:45 +00:00
font-size: 1em;
width: 24%;
2019-04-26 03:19:06 +00:00
}
@media only screen and (max-width: 600px) {}
.tabula {
border-width: 1px;
border-collapse: collapse;
border-color: #c1c1c1;
background-color: transparent;
font-family: verdana;
font-size: 11px;
}
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;
padding: 4px;
}
-->
</style>
<script language="JavaScript">
<!--
$(
if advert - pending == 'yes')
var popup = '';
function focusAdvert() {
if (window.focus) popup.focus();
}
function openAdvert() {
popup = open('$(link-advert)', 'hotspot_advert', '');
setTimeout("focusAdvert()", 1000);
}
$(endif)
function openLogout() {
if (window.name != 'hotspot_status') return true;
open('$(link-logout)', 'hotspot_logout', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=280,height=250');
window.close();
return false;
}
//-->
</script>
2019-04-17 15:12:08 +00:00
</head>
2019-04-26 03:19:06 +00:00
<body bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0" $(if advert-pending=='yes' ) onLoad="openAdvert()" $(endif)>
<table width="100%" height="100%">
<tr>
<td align="center" valign="middle">
<img src="captiveportal-logoRedCoMani.png" alt="" width="15%" />
</td>
</tr>
<tr>
<td align="center" valign="middle">
<form action="$(link-logout)" name="logout" onSubmit="return openLogout()">
<table border="1" class="tabula">
$(if login-by == 'trial')
<br>
<div style="text-align: center;">BienvenidX!</div><br> $(elif login-by != 'mac')
<br>
<div style="text-align: center;">BienvenidX! $(username)!</div><br> $(endif)
<tr>
<td align="right">IP address:</td>
<td>$(ip)</td>
</tr>
<tr>
<td align="right">bytes subida/descarga:</td>
<td>$(bytes-in-nice) / $(bytes-out-nice)</td>
</tr>
$(if session-time-left)
<tr>
<td align="right">conectado / left:</td>
<td>$(uptime) / $(session-time-left)</td>
</tr>
$(else)
<tr>
<td align="right">conectado:</td>
<td>$(uptime)</td>
</tr>
$(endif) $(if blocked == 'yes')
<tr>
<td align="right">status:</td>
<td>
<div style="color: green">
<a href="$(link-advert)" target="hotspot_advert">advertisement</a> required</div>
</td>
$(elif refresh-timeout)
<tr>
<td align="right">status refresh:</td>
<td>$(refresh-timeout)</td>
$(endif)
</table>
$(if login-by-mac != 'yes')
<br>
<!-- user manager link. if user manager resides on other router, replace $(hostname) by its address
2019-04-17 15:12:08 +00:00
<button onclick="document.location='http://$(hostname)/user?subs='; return false;">status</button>
<!-- end of user manager link -->
2019-04-26 03:19:06 +00:00
<input type="submit" value="Salir"> $(endif)
</form>
2019-04-17 15:12:08 +00:00
2019-04-26 03:19:06 +00:00
</td>
</table>
2019-04-17 15:12:08 +00:00
</body>
2019-04-26 03:19:06 +00:00
2019-04-17 15:12:08 +00:00
</html>