-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathAdvanced_Extensions_clashasp
558 lines (524 loc) · 28.3 KB
/
Advanced_Extensions_clashasp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
<!DOCTYPE html>
<!--app18_ver=2022-09-17=-->
<html>
<head>
<title><#Web_Title#> - clash</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="icon" href="images/favicon.png">
<link rel="stylesheet" type="text/css" href="/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/bootstrap/css/main.css">
<link rel="stylesheet" type="text/css" href="/bootstrap/css/engage.itoggle.css">
<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript" src="/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/bootstrap/js/engage.itoggle.min.js"></script>
<script type="text/javascript" src="/state.js"></script>
<script type="text/javascript" src="/general.js"></script>
<script type="text/javascript" src="/itoggle.js"></script>
<script type="text/javascript" src="/popup.js"></script>
<script type="text/javascript" src="/help.js"></script>
<script>
var $j = jQuery.noConflict();
$j(document).ready(function() {
init_itoggle('app_88',change_clash_enable);
init_itoggle('app_89');
init_itoggle('app_90');
init_itoggle('app_92',change_clash_follow_bridge);
init_itoggle('app_93',change_app_93_bridge);
init_itoggle('app_101');
init_itoggle('app_115',change_app_default_config_bridge);
init_itoggle('ss_udp_enable');
});
</script>
<script>
<% login_state_hook(); %>
function initial(){
show_banner(1);
show_menu(8,<% nvram_get_x("", "clash_L2"); %>,<% nvram_get_x("", "clash_L3"); %>);
show_footer();
change_clash_enable(1);
change_clash_follow_bridge(1);
change_app_default_config_bridge(1);
change_app_93_bridge(1);
inputCtrl(document.form['scripts.app_20.sh'], 0);
if (!login_safe())
textarea_scripts_enabled(0);
}
function textarea_scripts_enabled(v){
inputCtrl(document.form['scripts.app_20.sh'], v);
inputCtrl(document.form['scripts.app_21.sh'], v);
inputCtrl(document.form['scripts.app_33.sh'], v);
}
function applyRule(){
// if(validForm()){
showLoading();
document.form.action_mode.value = " Apply ";
document.form.current_page.value = "/Advanced_Extensions_app18.asp";
document.form.next_page.value = "";
document.form.submit();
// }
}
function done_validating(action){
refreshpage();
}
function change_clash_follow_bridge(mflag){
var m = document.form.app_92[0].checked;
showhide_div("ss_udp_enable_tr", m);
showhide_div("app_114_tr", m);
}
function change_app_default_config_bridge(mflag){
var m = document.form.app_115[0].checked;
var v = (m == "0") ? "1" : "0";
showhide_div("clash_http_enable_tr", v);
showhide_div("clash_socks_enable_tr", v);
showhide_div("app_93_tr", v);
showhide_div("app_101_tr", v);
showhide_div("app_21_script_tr", v);
showhide_div("app_33_script_tr", v);
}
function change_app_93_bridge(mflag){
var m = document.form.app_93[0].checked;
var v = (m == "0") ? "0" : "1";
showhide_div("app_33_script_tr", v);
}
function change_clash_enable(mflag){
var m = document.form.app_88.value;
var is_clash_enable = (m == "1") ? "重启" : "更新";
document.form.updateclash.value = is_clash_enable;
}
function button_updateclash(){
change_clash_enable(1);
var $j = jQuery.noConflict();
$j.post('/apply.cgi',
{
'action_mode': ' updateapp18 ',
});
}
function button_clash_wan_port(){
var port = document.querySelector("#app_94").value.split(":")[1];
var porturl ='http://' + window.location.hostname + ":" + port + "/ui";
//alert(porturl);
window.open(porturl,'clash_wan_port');
}
function button_clash_wget_yml(){
document.form.app_86.value = 'wget_yml';
applyRule();
}
function button_clash_save_yml(){
document.form.app_86.value = 'clash_save_yml';
applyRule();
}
function button_clash_wget_geoip(){
document.form.app_86.value = 'clash_wget_geoip';
applyRule();
}
function heredoc(fn) {
return fn.toString().split('\n').slice(1,-1).join('\n') + '\n'
}
function button_append_app_20_script_code(){
if (document.querySelector("#app_20_script_code").style.display == 'none') {
document.form.button_append_script_code.value = "点击按钮隐藏 clash 主配置文件(右边[保存]按钮能迅速保存设置)";
showhide_div("app_20_script_save", 1);
showhide_div("app_20_script_code", 1);
inputCtrl(document.form['scripts.app_20.sh'], 1);
}else{
document.form.button_append_script_code.value = "点击按钮显示 clash 主配置文件(当前隐藏时忽略 clash 主配置文件,能迅速保存设置)";
showhide_div("app_20_script_save", 0);
showhide_div("app_20_script_code", 0);
inputCtrl(document.form['scripts.app_20.sh'], 0);
}
if (!login_safe())
textarea_scripts_enabled(0);
}
function set_frm_action_apply(){
document.form.file_st.value = "";
document.form.action = "/start_apply.htm";
document.form.enctype = "application/x-www-form-urlencoded";
document.form.action_mode.value = " Apply ";
}
function set_frm_action_upload(at){
document.form.action = at;
document.form.enctype = "multipart/form-data";
document.form.action_mode.value = "";
}
function uploadapp_20(){
document.form.file_st.value = "";
set_frm_action_upload("upapp_20.cgi");
document.form.submit();
set_frm_action_apply();
}
function uploadapp_20_sh(){
set_frm_action_upload("upapp_20_sh.cgi");
document.form.submit();
set_frm_action_apply();
}
function saveapp_20_sh(){
set_frm_action_apply();
location.href='config.yaml';
}
</script>
</head>
<body onload="initial();" onunLoad="return unload_body();">
<div class="wrapper">
<div class="container-fluid" style="padding-right: 0px">
<div class="row-fluid">
<div class="span3"><center><div id="logo"></div></center></div>
<div class="span9" >
<div id="TopBanner"></div>
</div>
</div>
</div>
<div id="Loading" class="popup_bg"></div>
<iframe name="hidden_frame" id="hidden_frame" src="" width="0" height="0" frameborder="0"></iframe>
<form method="post" name="form" id="ruleForm" action="/start_apply.htm" target="hidden_frame" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="current_page" value="Advanced_Extensions_app18.asp">
<input type="hidden" name="next_page" value="">
<input type="hidden" name="next_host" value="">
<input type="hidden" name="sid_list" value="APP;LANHostConfig;General;">
<input type="hidden" name="group_id" value="">
<input type="hidden" name="action_mode" value="">
<input type="hidden" name="action_script" value="">
<input type="hidden" name="wan_ipaddr" value="<% nvram_get_x("", "wan0_ipaddr"); %>" readonly="1">
<input type="hidden" name="wan_netmask" value="<% nvram_get_x("", "wan0_netmask"); %>" readonly="1">
<input type="hidden" name="dhcp_start" value="<% nvram_get_x("", "dhcp_start"); %>">
<input type="hidden" name="dhcp_end" value="<% nvram_get_x("", "dhcp_end"); %>">
<input type="hidden" name="app_86" value="<% nvram_get_x("", "app_86"); %>">
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<!--Sidebar content-->
<!--=====Beginning of Main Menu=====-->
<div class="well sidebar-nav side_nav" style="padding: 0px;">
<ul id="mainMenu" class="clearfix"></ul>
<ul class="clearfix">
<li>
<div id="subMenu" class="accordion"></div>
</li>
</ul>
</div>
</div>
<div class="span9">
<!--Body content-->
<div class="row-fluid">
<div class="span12">
<div class="box well grad_colour_dark_blue">
<h2 class="box_head round_top">clash</h2>
<div class="round_bottom">
<div class="row-fluid">
<div id="tabMenu" class="submenuBlock"></div>
<div class="alert alert-info" style="margin: 10px;">欢迎使用 clash ,这是一款用Go开发的代理工具,支持ss/v2ray/ssr等协议,支持规则分流(类似于 Surge 的配置)。clash 主页:<a href="https://github.com/Dreamacro/clash" target="blank">https://github.com/Dreamacro/clash</a>
<div>项目地址:【<a href="https://github.com/Dreamacro/clash/releases/tag/premium" target="blank"> premium </a>教程:<a href="https://github.com/Dreamacro/clash/wiki/configuration" target="blank"> config.yaml </a>】【<a href="https://github.com/MetaCubeX/mihomo" target="blank"> mihomo.Meta </a>教程:<a href="https://github.com/MetaCubeX/mihomo/blob/Alpha/docs/config.yaml" target="blank"> config.yaml </a>】【<a href="https://github.com/ClashDotNetFramework/experimental-clash" target="blank_ex"> experimental </a>】</div>
<div>第三方 web 管理页面:<a href="http://clash.razord.top/" target="blank">http://clash.razord.top/</a> 、<a href="http://yacd.haishan.me/" target="blank">http://yacd.haishan.me/</a></div>
<div>在线规则订阅转换:<a href="https://acl4ssr.netlify.com/" target="blank">https://acl4ssr.netlify.com/</a> 备注:建议修改配置的 secret: 来加密 web 管理页面</div>
<div>当前 app 文件:【<% nvram_get_x("", "app18_ver"); %>】,最新 app 文件:【<% nvram_get_x("", "app18_ver_n"); %>】 </div>
<span style="color:#FF0000;" class=""></span></div>
<table width="100%" align="center" cellpadding="4" cellspacing="0" class="table">
<tr>
<th colspan="4" style="background-color: #E3E3E3;">开关</th>
</tr>
<tr id="clash_enable_tr" >
<th width="32%">clash 开关</th>
<td>
<div class="main_itoggle">
<div id="app_88_on_of">
<input type="checkbox" id="app_88_fake" <% nvram_match_x("", "app_88", "1", "value=1 checked"); %><% nvram_match_x("", "app_88", "0", "value=0"); %> />
</div>
</div>
<div style="position: absolute; margin-left: -10000px;">
<input type="radio" value="1" name="app_88" id="app_88_1" class="input" value="1" onClick="change_clash_enable(1);" <% nvram_match_x("", "app_88", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="app_88" id="app_88_0" class="input" value="0" onClick="change_clash_enable(1);" <% nvram_match_x("", "app_88", "0", "checked"); %> /><#checkbox_No#>
</div>
</td>
<td>
<input class="btn btn-success" type="button" name="updateclash" value="更新" onclick="button_updateclash()" />
</td>
<td>
<span style="color:#888;">版本:<% nvram_get_x("","clash_v"); %></span>
</td>
</tr>
<tr id="clash_http_enable_tr" style="display:none;">
<th style="border-top: 0 none;">开启 HTTP 代理?<div><span style="color:#888;">(端口:7890)</span></div></th>
<td style="border-top: 0 none;">
<div class="main_itoggle">
<div id="app_89_on_of">
<input type="checkbox" id="app_89_fake" <% nvram_match_x("", "app_89", "1", "value=1 checked"); %><% nvram_match_x("", "app_89", "0", "value=0"); %> />
</div>
</div>
<div style="position: absolute; margin-left: -10000px;">
<input type="radio" value="1" name="app_89" id="app_89_1" class="input" value="1" <% nvram_match_x("", "app_89", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="app_89" id="app_89_0" class="input" value="0" <% nvram_match_x("", "app_89", "0", "checked"); %> /><#checkbox_No#>
</div>
</td>
</tr>
<tr id="clash_socks_enable_tr" style="display:none;">
<th style="border-top: 0 none;">开启 SOCKS5 代理?<div><span style="color:#888;">(端口:7891)</span></div></th>
<td style="border-top: 0 none;">
<div class="main_itoggle">
<div id="app_90_on_of">
<input type="checkbox" id="app_90_fake" <% nvram_match_x("", "app_90", "1", "value=1 checked"); %><% nvram_match_x("", "app_90", "0", "value=0"); %> />
</div>
</div>
<div style="position: absolute; margin-left: -10000px;">
<input type="radio" value="1" name="app_90" id="app_90_1" class="input" value="1" <% nvram_match_x("", "app_90", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="app_90" id="app_90_0" class="input" value="0" <% nvram_match_x("", "app_90", "0", "checked"); %> /><#checkbox_No#>
</div>
</td>
</tr>
<tr id="app_101_tr" style="display:none;">
<th style="border-top: 0 none;">开启 mixed 代理?<div><span style="color:#888;">(端口:7893)</span></div></th>
<td style="border-top: 0 none;">
<div class="main_itoggle">
<div id="app_101_on_of">
<input type="checkbox" id="app_101_fake" <% nvram_match_x("", "app_101", "1", "value=1 checked"); %><% nvram_match_x("", "app_101", "0", "value=0"); %> />
</div>
</div>
<div style="position: absolute; margin-left: -10000px;">
<input type="radio" value="1" name="app_101" id="app_101_1" class="input" value="1" <% nvram_match_x("", "app_101", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="app_101" id="app_101_0" class="input" value="0" <% nvram_match_x("", "app_101", "0", "checked"); %> /><#checkbox_No#>
</div>
</td>
</tr>
<tr id="clash_follow_tr" >
<th style="border-top: 0 none;">开启透明代理(TCP)?</th>
<td style="border-top: 0 none;">
<div class="main_itoggle">
<div id="app_92_on_of">
<input type="checkbox" id="app_92_fake" <% nvram_match_x("", "app_92", "1", "value=1 checked"); %><% nvram_match_x("", "app_92", "0", "value=0"); %> />
</div>
</div>
<div style="position: absolute; margin-left: -10000px;">
<input type="radio" value="1" name="app_92" id="app_92_1" class="input" value="1" onClick="change_clash_follow_bridge(1);" <% nvram_match_x("", "app_92", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="app_92" id="app_92_0" class="input" value="0" onClick="change_clash_follow_bridge(1);" <% nvram_match_x("", "app_92", "0", "checked"); %> /><#checkbox_No#>
</div>
</td>
</tr>
<tr id="ss_udp_enable_tr" style="display:none;">
<th style="border-top: 0 none;"><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 25,9);">游戏模式(UDP转发)</a></th>
<td style="border-top: 0 none;">
<div class="main_itoggle">
<div id="ss_udp_enable_on_of">
<input type="checkbox" id="ss_udp_enable_fake" <% nvram_match_x("", "ss_udp_enable", "1", "value=1 checked"); %><% nvram_match_x("", "ss_udp_enable", "0", "value=0"); %> />
</div>
</div>
<div style="position: absolute; margin-left: -10000px;">
<input type="radio" value="1" name="ss_udp_enable" id="ss_udp_enable_1" class="input" value="1" <% nvram_match_x("", "ss_udp_enable", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="ss_udp_enable" id="ss_udp_enable_0" class="input" value="0" <% nvram_match_x("", "ss_udp_enable", "0", "checked"); %> /><#checkbox_No#>
</div>
</td>
</tr>
</table>
<table width="100%" align="center" cellpadding="4" cellspacing="0" class="table">
<tr id="app_114_tr" style="display:none;">
<th style="border-top: 0 none;">路由自身流量透明代理选择</th>
<td style="border-top: 0 none;">
<select name="app_114" class="input" style="width: 185px;">
<option value="0" <% nvram_match_x("","app_114", "0","selected"); %>>代理路由自身流量</option>
<option value="1" <% nvram_match_x("","app_114", "1","selected"); %>>跳过代理路由自身流量</option>
</select>
</td>
</tr>
<tr id="app_122_tr">
<th style="border-top: 0 none;">ss_tproxy 分流工作模式</th>
<td style="border-top: 0 none;">
<select name="app_122" class="input" style="width: 185px;">
<option value="0" <% nvram_match_x("","app_122", "0","selected"); %>>clash 内部分流路由规则</option>
<option value="1" <% nvram_match_x("","app_122", "1","selected"); %>>gfwlist + clash 内部分流</option>
<option value="2" <% nvram_match_x("","app_122", "2","selected"); %>>大陆白名单 + clash 内部分流</option>
<option value="3" <% nvram_match_x("","app_122", "3","selected"); %>>回国模式 + clash 内部分流</option>
</select>
</td>
<td style="border-top: 0 none;">
<input class="btn btn-success" style="" type="button" value="更新geoip" onclick="button_clash_wget_geoip()" tabindex="24">
</td>
<td style="border-top: 0 none;">
<select name="ss_ip46">
<option value="0" <% nvram_match_x("","ss_ip46", "0","selected"); %>>启用 ipv4 透明代理</option>
<option value="1" <% nvram_match_x("","ss_ip46", "1","selected"); %>>启用 ipv6 透明代理</option>
<option value="2" <% nvram_match_x("","ss_ip46", "2","selected"); %>>启用 ipv4 + ipv6 透明代理</option>
</select>
</td>
</tr>
<tr>
<th style="border-top: 0 none;">Web管理地址 :</th>
<td style="border-top: 0 none;">
<div class="input-append">
<input maxlength="512" class="input" size="15" name="app_94" id="app_94" style="width: 175px;" placeholder="192.168.123.1:19090" value="<% nvram_get_x("","app_94"); %>" onKeyPress="return is_string(this,event);"/>
</div>
</td>
<td style="border-top: 0 none;">
<input class="btn btn-primary" style="" type="button" value="Web管理界面" onclick="button_clash_wan_port()" tabindex="24">
</td>
<td id="app_79" style="border-top: 0 none;">
<select name="app_79">
<option value="clash" <% nvram_match_x("","app_79", "clash","selected"); %>>更换 clash 面板</option>
<option value="yacd" <% nvram_match_x("","app_79", "yacd","selected"); %>>更换 yacd 面板</option>
<option value="meta" <% nvram_match_x("","app_79", "meta","selected"); %>>更换 Meta 面板</option>
<option value="xd" <% nvram_match_x("","app_79", "xd","selected"); %>>更换 XD 面板</option>
<option value="clash_1" <% nvram_match_x("","app_79", "clash_1","selected"); %>>使用 clash 面板(首次下载时)(默认)</option>
<option value="yacd_1" <% nvram_match_x("","app_79", "yacd_1","selected"); %>>使用 yacd 面板(首次下载时)</option>
<option value="meta_1" <% nvram_match_x("","app_79", "meta_1","selected"); %>>使用 Meta 面板(首次下载时)</option>
<option value="xd_1" <% nvram_match_x("","app_79", "xd_1","selected"); %>>使用 XD 面板(首次下载时)</option>
</select>
</td>
</tr>
<tr>
<th style="border-top: 0 none;">Web管理密码 :</th>
<td style="border-top: 0 none;">
<div class="input-append">
<input maxlength="512" class="input" size="15" name="app_119" id="app_119" style="width: 175px;" placeholder="不能留空" value="<% nvram_get_x("","app_119"); %>" onKeyPress="return is_string(this,event);"/>
</div>
</td>
<td style="border-top: 0 none;">
<input class="btn btn-warning" style="" type="button" value="热重载配置" onclick="button_clash_save_yml()" tabindex="24">
</td>
<td id="app_78" style="border-top: 0 none;">
<select name="app_78">
<option value="meta" <% nvram_match_x("","app_78", "meta","selected"); %>>更换 mihomo.Meta</option>
<option value="premium" <% nvram_match_x("","app_78", "premium","selected"); %>>更换 premium (停更)</option>
<option value="meta_1" <% nvram_match_x("","app_78", "meta_1","selected"); %>>使用 mihomo.Meta(首次下载时)(默认)</option>
<option value="premium_1" <% nvram_match_x("","app_78", "premium_1","selected"); %>>使用 premium (停更)(首次下载时)</option>
</select>
</td>
</tr>
<tr>
<th style="border-top: 0 none;">clash 订阅链接:<div></div></th>
<td style="border-top: 0 none;">
<div class="input-append">
<input maxlength="5120" class="input" size="15" name="app_91" id="app_91" style="width: 175px;" placeholder=" https://www.123.com/clash.txt" value="<% nvram_get_x("","app_91"); %>" onKeyPress="return is_string(this,event);"/>
</div>
</td>
<td style="border-top: 0 none;">
<input class="btn btn-success" style="" type="button" value="更新订阅" onclick="button_clash_wget_yml()" tabindex="24">
</td>
<td style="border-top: 0 none;">
<select name="app_120" class="input">
<option value="0" <% nvram_match_x("","app_120", "0","selected"); %>>停止每6小时定时更新</option>
<option value="1" <% nvram_match_x("","app_120", "1","selected"); %>>开启每6小时定时更新</option>
<option value="2" <% nvram_match_x("","app_120", "2","selected"); %>>停止热重载、停止更新</option>
</select>
</td>
</tr>
<tr>
<th style="border-top: 0 none;">日志输出:<div></div></th>
<td style="border-top: 0 none;">
<div class="input-append">
<input maxlength="512" class="input" size="15" name="app_121" id="app_121" style="width: 175px;" placeholder="error" value="<% nvram_get_x("","app_121"); %>" onKeyPress="return is_string(this,event);"/>
</div>
</td>
<td colspan="2" style="border-top: 0 none;">
<span style="color:#888;"> 默认[error],可选[silent] [info] [warning] [debug]</a></span>
</td>
</tr>
</table>
<table width="100%" align="center" cellpadding="4" cellspacing="0" class="table">
<tr id="app_default_config_tr" >
<th width="32%" style="border-top: 0 none;">不改写配置直接启动?</th>
<td style="border-top: 0 none;">
<div class="main_itoggle">
<div id="app_115_on_of">
<input type="checkbox" id="app_115_fake" <% nvram_match_x("", "app_115", "1", "value=1 checked"); %><% nvram_match_x("", "app_115", "0", "value=0"); %> />
</div>
</div>
<div style="position: absolute; margin-left: -10000px;">
<input type="radio" value="1" name="app_115" id="app_115_1" class="input" value="1" onClick="change_app_default_config_bridge(1);" <% nvram_match_x("", "app_115", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="app_115" id="app_115_0" class="input" value="0" onClick="change_app_default_config_bridge(1);" <% nvram_match_x("", "app_115", "0", "checked"); %> /><#checkbox_No#>
</div>
</td>
<td colspan="2" style="border-top: 0 none;">
<span style="color:#888;">有可能端口不匹配导致功能失效,需配置 redir-port: 7892</span>
</td>
</tr>
</table>
<table width="100%" align="center" cellpadding="4" cellspacing="0" class="table">
<tr>
<td colspan="4" style="border-top: 0 none;">
<br />
<center><input class="btn btn-primary" style="width: 219px" type="button" value="<#CTL_apply#>" onclick="applyRule()" /></center>
</td>
</tr>
<tr>
<th colspan="4" style="background-color: #E3E3E3;" >配置(由于系统保存时限制单行1024字,若单行超长请格式化 yml 配置后再粘贴,或直接用订阅更新配置)</th>
</tr>
<tr>
<td style="border-top: 0 none;" colspan="3">
<i class="icon-hand-right"></i><input class="btn btn-primary" style="" type="button" name="button_append_script_code" value="点击按钮显示 clash 主配置文件(当前隐藏时忽略 clash 主配置文件,能迅速保存设置)" onclick="button_append_app_20_script_code()" tabindex="24">
</td>
<td style="border-top: 0 none;display:none;" id="app_20_script_save" name="app_20_script_save">
<input name="upload_st" class="btn btn-info" onclick="uploadapp_20();" type="button" value="💾<#CTL_onlysave#>"/>
</td>
</tr>
<tr>
<td colspan="4" style="border-top: 0 none;display:none;" id="app_20_script_code" name="app_20_script_code">
<a><span>/etc/storage/app_20.sh</span></a>
<div>
<textarea rows="18" wrap="off" spellcheck="false" maxlength="2097152" class="span12" id="scripts.app_20.sh" name="scripts.app_20.sh" style="font-family:'Courier New'; font-size:12px;" disabled><% nvram_dump("scripts.app_20.sh",""); %></textarea>
</div>
</td>
</tr>
<tr>
<th style="border-top: 0 none;"><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this,19,4)"><#Storage_upload_itemname#> : config.yaml</a></th>
<td style="border-top: 0 none;">
<input name="file_st" type="file" size="36" />
</td>
<td style="border-top: 0 none; padding-top: 0px;">
<input class="btn btn-info" onclick="uploadapp_20_sh();" type="button" value="📜<#CTL_upload#>"/>
</td>
<td style="border-top: 0 none; padding-top: 0px;">
<input class="btn btn-info" onclick="saveapp_20_sh();" type="button" value="📋<#Setting_save_itemname#>"/>
</td>
</tr>
<tr id="app_21_script_tr" style="display:none;">
<td colspan="4" style="border-top: 0 none;">
<i class="icon-hand-right"></i> <a href="javascript:spoiler_toggle('app_21_script')"><span>点这里自定义 clash dns 或其他配置</span></a>
<div id="app_21_script">
<textarea rows="9" wrap="off" spellcheck="false" maxlength="2097152" class="span12" name="scripts.app_21.sh" style="font-family:'Courier New'; font-size:12px;"><% nvram_dump("scripts.app_21.sh",""); %></textarea>
</div>
</td>
</tr>
<tr id="app_93_tr" style="display:none;">
<th style="border-top: 0 none;">clash 添加本地代理节点?</th>
<td style="border-top: 0 none;">
<div class="main_itoggle">
<div id="app_93_on_of">
<input type="checkbox" id="app_93_fake" <% nvram_match_x("", "app_93", "1", "value=1 checked"); %><% nvram_match_x("", "app_93", "0", "value=0"); %> />
</div>
</div>
<div style="position: absolute; margin-left: -10000px;">
<input type="radio" value="1" name="app_93" id="app_93_1" class="input" value="1" onClick="change_app_93_bridge(1);" <% nvram_match_x("", "app_93", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="app_93" id="app_93_0" class="input" value="0" onClick="change_app_93_bridge(1);" <% nvram_match_x("", "app_93", "0", "checked"); %> /><#checkbox_No#>
</div>
</td>
<td colspan="2" style="border-top: 0 none;">
<span style="color:#888;">本地代理节点套娃</span>
</td>
</tr>
<tr id="app_33_script_tr" style="display:none;">
<td colspan="4" style="border-top: 0 none;">
<i class="icon-hand-right"></i> <a href="javascript:spoiler_toggle('app_33_script')"><span>点这里自定义 clash 节点 配置</span></a>
<div id="app_33_script">
<textarea rows="9" wrap="off" spellcheck="false" maxlength="2097152" class="span12" name="scripts.app_33.sh" style="font-family:'Courier New'; font-size:12px;"><% nvram_dump("scripts.app_33.sh",""); %></textarea>
</div>
</td>
</tr>
<tr>
<td colspan="4" style="border-top: 0 none;">
<br />
<center><input class="btn btn-primary" style="width: 219px" type="button" value="<#CTL_apply#>" onclick="applyRule()" /></center>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
<div id="footer"></div>
</div>
</body>
</html>