Форум русскоязычного сообщества Ubuntu


Получить помощь и пообщаться с другими пользователями Ubuntu можно
на irc канале #ubuntu-ru в сети Freenode
и в Jabber конференции ubuntu@conference.jabber.ru

Автор Тема: login в wi-fi скриптом  (Прочитано 1848 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн ArcFi

  • Старожил
  • *
  • Сообщений: 15189
    • Просмотр профиля
    • aetera.net
Re: login в wi-fi скриптом
« Ответ #15 : 10 Октября 2013, 16:54:04 »
jcrush, скиньте код страницы авторизации.

Оффлайн jcrush

  • Автор темы
  • Активист
  • *
  • Сообщений: 678
  • Khabara.Ru
    • Просмотр профиля
    • Компьютерные интернет обзоры
Re: login в wi-fi скриптом
« Ответ #16 : 10 Октября 2013, 17:02:18 »
логин и пароль уже прописан, впринципе не очень ясно как это использовать, если я по клику вхожу, ноут когда просыпается, может автоматом кликать, короче хз, один клик ничего не решает.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
iBSG-Lite GUI
Copyright (C) 2004-2007 N.V.K.INTER CO., LTD
http://www.nvk.co.th
For use with iBSG-Lite project only.
No part of this file may be used without permission.
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<meta http-equiv="Cache-Control" content="no-cache"/>
<title>Hi-Speed internet :: Please Login</title>
<style type="text/css">
<!--
body, p, h1, h2, h3, form {
margin: 0;
padding: 0;
border: 0;
}
body {
font-family: Arial, Helvetica;
font-size: 14px;
text-align: center;
}
img {
border: 0;
}
input {
border: 1px solid #ACACAC;
}
.txtField {
background-color: #FBFBFB;
width: 128px;
}
#wrapper {
margin-top: auto;
width: 720px;
background: #FFF;
   margin-left: auto ;
  margin-right: auto ;
}
#topLogo {
height: 72px;
background-color: #FFFFFF;
}
#content {
text-align: left;
padding-bottom: 6px;
}
#content #leftLogo {
float: left;
margin: 0 6px 6px 0;
}
#content h1,#content h2,#content h3{
margin-top: 12px;
margin-left: 6px;
font-size: 14px;
}
#content hr {
height: 1px;
margin-left: 3px;
}
#content p {
margin-left: 16px;
}
#footer {
color: #FFF;
border-top: 1px solid #666;
background: #019FC2;
clear: both;
font-size: 10px;
}
-->
</style>
<script type="text/javascript">
<!--
function initialize() {
var txtObj = document.getElementById('txtLogin');
if (txtObj.value.length != 0) {
var chkObj = document.getElementById('chkRemember');
var pwdObj = document.getElementById('txtPasswd');
chkObj.checked = true;
pwdObj.focus();
} else {
txtObj.focus();
}
}
function goUser() {
window.open('/user');
}
//-->
</script>
</head>
<body onload="javascript:initialize();">
<div id="wrapper">
<div id="topLogo"><img src="images/toplogo.jpg" alt="toplogo" width="171" height="104"/></div>
<div id="content">
<div id="leftLogo"><img src="images/banner-wifi.jpg" alt="leftlogo"/></div>
<h1>Please login</h1>
<hr />
      <form  method="post" enctype="application/x-www-form-urlencoded" action="user-authen.php">
      <table class="fieldTable" width="0" border="0" cellspacing="0" cellpadding="3">
            <tr>
              <td class="spacer">Loginname</td>
              <td><input name="txtLogin" type="text" id="txtLogin" maxlength="24" value="acm432" /></td>
            </tr>
            <tr>
              <td>Password</td>
              <td><input name="txtPasswd" type="password" id="txtPasswd" maxlength="24" value="HICZG" /></td>
            </tr>
<tr>
              <td>&nbsp;</td>
              <td><input style="border:none;" name="chkRemember" id="chkRemember"  type="checkbox" value="1" />Remember Me</td>
</tr>
            <tr>
              <td>&nbsp;</td>
              <td>
              <input name="btnLogin" type="submit" id="btnLogin" value="Login" onsubmit="this.disabled=true"/>
              <input name="btnReset" type="reset" id="btnReset" value="Clear" />
  <input name="btnUsage" type="button" id="btnUsage" value="Usage" onclick="goUser();"/>
              <input name="reqUrl" type="hidden" id="reqUrl" value="https://ubuntu.ru" />
              </td>
            </tr>
          </table>
     </form>
<h2>Announcement</h2>
<hr />
<p>System is under testing,</p>
<p>We're sorry for any inconvenience.</p>
<br>
<p>Please download anti-netcut script <a href="anti-netcut.php">here</a></p>
<h3>Contact</h3>
<hr />
<p></p>
  </div>
<div id="footer">NVK iBSG-Lite&#8482; &copy; 2004-2007</div>
<div><img src="images/shadow.png" width="720" height="6" alt="shadow"/></div>
</div>
</body>
</html>
Ubuntu Mate Stfw.Ru — SEO блог ...

 

Страница сгенерирована за 0.032 секунд. Запросов: 26.