view.zip
大小:58.6KB
价格:17积分
下载量:0
评分:
5.0
上传者:weixin_38359811
更新日期:2025-09-22

自己保存当网盘试用一下

资源文件列表(大概)

文件名
大小
controller/myapp/
-
controller/myapp/router.lua
791B
controller/myapp/testlogin.lua
1.1KB
controller/wifischedule/
-
controller/wifischedule/wifi_schedule.lua
2.02KB
model/cbi/
-
model/cbi/myapp/
-
model/cbi/myapp/changePAssword.lua
4.64KB
model/cbi/myapp/changePAssworda.lua
1.43KB
model/cbi/myapp/gateway_sn.lua
751B
model/cbi/wifischedule/
-
model/cbi/wifischedule/wifi_schedule.lua
7.77KB
model/firewall.lua
10.45KB
model/network.lua
41.36KB
model/network/
-
model/network/proto_3g.lua
989B
model/network/proto_4x6.lua
1.82KB
model/network/proto_6x4.lua
1.04KB
model/network/proto_dhcpv6.lua
401B
model/network/proto_hnet.lua
410B
model/network/proto_ipip.lua
844B
model/network/proto_modemmanager.lua
1.45KB
model/network/proto_ncm.lua
2.07KB
model/network/proto_openconnect.lua
921B
model/network/proto_ppp.lua
1.9KB
model/network/proto_pppossh.lua
782B
model/network/proto_qmi.lua
1.41KB
model/network/proto_relay.lua
2.99KB
model/network/proto_vpnc.lua
936B
model/network/proto_wireguard.lua
870B
model/uci.lua
10.15KB
view/admin_status/
-
view/admin_status/luaindex.htm
427B
view/cbi/
-
view/cbi/browser.htm
244B
view/cbi/button.htm
302B
view/cbi/cell_valuefooter.htm
13B
view/cbi/cell_valueheader.htm
718B
view/cbi/compound.htm
30B
view/cbi/delegator.htm
1.09KB
view/cbi/dropdown.htm
676B
view/cbi/dvalue.htm
385B
view/cbi/dynlist.htm
352B
view/cbi/error.htm
865B
view/cbi/firewall_zonelist.htm
3.52KB
view/cbi/footer.htm
1.37KB
view/cbi/full_valuefooter.htm
408B
view/cbi/full_valueheader.htm
732B
view/cbi/fvalue.htm
383B
view/cbi/header.htm
703B
view/cbi/ipaddr.htm
1.04KB
view/cbi/lvalue.htm
368B
view/cbi/map.htm
1.46KB
view/cbi/mvalue.htm
573B
view/cbi/network_ifacelist.htm
2.64KB
view/cbi/network_netinfo.htm
775B
view/cbi/network_netlist.htm
2.42KB
view/cbi/nsection.htm
1.18KB
view/cbi/nullsection.htm
1KB
view/cbi/simpleform.htm
2.31KB
view/cbi/tabcontainer.htm
478B
view/cbi/tblsection.htm
6.2KB
view/cbi/tsection.htm
2.06KB
view/cbi/tvalue.htm
400B
view/cbi/ucisection.htm
1.9KB
view/cbi/upload.htm
404B
view/cbi/value.htm
932B
view/cbi/valuefooter.htm
55B
view/cbi/valueheader.htm
55B
view/cbi/wireless_modefreq.htm
4.33KB
view/empty_node_placeholder.htm
229B
view/indexer.htm
210B
view/myapp/
-
view/myapp/changeUserPassword.htm
8.31KB
view/myapp/changeUserPassword1.htm
511B
view/myapp/file_viewer.htm
1021B
view/myapp/helloworld.htm
25B
view/myapp/web.htm
585B
view/wifischedule/
-
view/wifischedule/file_viewer.htm
1021B

资源内容介绍

自己保存当网盘试用一下
<%+header%> <%- local sys=require "luci.sys" local fs=require "nixio.fs" local uci=require "luci.model.uci" .cursor() username=sys.exec("uci get rpcd.@login[0].username") -%> <form id="myForm" onsubmit="return validateForm()"> <div class="cbi-map"> <h2 name="content">路由器密码</h2> <div class="cbi-section"> <h3>更改访问设备的管理员密码</h3> <div class="cbi-section-node"> <div class="cbi-value cbi-value-last"> <label class="cbi-value-title" for="username">用户名</label> <div class="cbi-value-field"> <div> <input name="username" type="text" readonly class="cbi-input-text" value="<%=username%>"> </div> </div> </div> <div class="cbi-section-node"> <div class="cbi-value cbi-value-last"> <label class="cbi-value-title" for="username">新密码</label> <div class="cbi-value-field"> <div id="pw1"> <div class="control-group"> <input id="password" type="password" class="cbi-input-password" autocomplete="new-password"> <button id="btn1" class="cbi-button cbi-button-neutral">∗</button> </div> </div> </div> </div> </div> <div class="cbi-section-node"> <div class="cbi-value cbi-value-last"> <label class="cbi-value-title" for="username">再次输入</label> <div class="cbi-value-field"> <div id="pw2"> <div class="control-group"> <input id="passwordtwo" type="password" class="cbi-input-password" autocomplete="new-password"> <button id="btn2" class="cbi-button cbi-button-neutral">∗</button> </div> </div> <div id="des" style="display: none;" class="cbi-value-description">密码强度: <span id="mes" style="color:red">弱</span></div> </div> </div> </div> </div> </div> <div class="cbi-page-actions"> <button class="cbi-button cbi-button-save" id="save">保存</button> <!-- <input class="cbi-button cbi-button-apply" id="save" type="submit" name="cbi.apply" value="<%:Save & Apply%>" /> --> </div> <div class="alert-message fade-in danger" id="close" style="display:none"> <div style="flex:10"> <p id="errmes">由于密码验证不匹配,密码没有更改!</p> </div> <div style="flex:1 1 auto; display:flex"> <button class="btn" id="close_btn" style="margin-left:auto; margin-top:auto">关闭</button> </div> </div> <div class="alert-message fade-in info" id="close1" style="display:none"> <div style="flex:10"> <p>系统密码已更改成功。</p> </div> <div style="flex:1 1 auto; display:flex"> <button class="btn" id="close1_btn" style="margin-left:auto; margin-top:auto">关闭</button> </div> </div> </form> <script type="text/javascript">//<![CDATA[ var btn1 = document.getElementById('btn1') var btn2 = document.getElementById('btn2') var input1 = document.getElementById('password') var input2 = document.getElementById('passwordtwo') var des = document.getElementById('des') var mes = document.getElementById('mes') var close = document.getElementById('close') var close1 = document.getElementById('close1') var close_btn = document.getElementById('close_btn') var close1_btn = document.getElementById('close1_btn') var save = document.getElementById('save') var errmes = document.getElementById('errmes') save.onclick=function () { console.log(99090909090) if (input1.value !== input2.value) { errmes.html = '由于密码验证不匹配,密码没有更改!' close.style = "display:flex" return false; } <%- sys.exec("uci set mypassword.@login[0].password="..input2.value) -%> // var a = <%= status %> // console.log('status', a) } btn1.onclick = function () { if (input1.type === 'password') { input1.type = 'text' } else { input1.type = 'password' } } btn2.onclick = function () { if (input2.type === 'password') { input2.type = 'text' } else { input2.type = 'password' } } input1.oninput = function () { var value = input1.value if (value) { des.style = "display:block" } else { des.style = "display:none" return } var type = checkStringTypes(value); if (value.length < 6) { mes.innerHTML = '过短' mes.style = "color:red" } else if (type < 2) { mes.innerHTML = '弱' mes.style = "color:red" } else if (type < 4) { mes.innerHTML = '中等' mes.style = "color:orange" } else { mes.innerHTML = ' 强' mes.style = "color:green" } } close_btn.onclick = function () { close.style = "display:none" } close1_btn.onclick = function () { close1.style = "display:none" } function checkStringTypes(str) { // 定义要检查的字符类型及其正则表达式 const types = { lowercase: /[a-z]/g, uppercase: /[A-Z]/g, symbol: /[!@#$%^&*()\-_=+{};:,<.>]/g, // 这是一个示例符号集,你可以根据需要添加更多 digit: /\d/g }; // 初始化结果对象 const result = { lowercase: false, uppercase: false, symbol: false, digit: false }; // 检查字符串并更新结果对象 Object.keys(types).forEach(type => { if (types[type].t

用户评论 (0)

发表评论

captcha