HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index-legacy244.js
!function(){function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function i(e,o,a,u){var i=o&&o.prototype instanceof l?o:l,s=Object.create(i.prototype);return r(s,"_invoke",function(e,r,o){var a,u,i,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(n,e){return a=n,u=0,i=t,p.n=e,c}};function d(e,r){for(u=e,i=r,n=0;!f&&l&&!o&&n<s.length;n++){var o,a=s[n],d=p.p,m=a[2];e>3?(o=m===r)&&(i=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=e<2&&d<a[1])?(u=0,p.v=r,p.n=a[1]):d<m&&(o=e<3||a[0]>r||r>m)&&(a[4]=e,a[5]=r,p.n=m,u=0))}if(o||e>1)return c;throw f=!0,r}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,m),u=s,i=m;(n=u<2?t:i)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,i)):p.n=i:p.v=i);try{if(l=2,a){if(u||(o="next"),n=a[o]){if(!(n=n.call(a,i)))throw TypeError("iterator result is not an object");if(!n.done)return n;i=n.value,u<2&&(u=0)}else 1===u&&(n=a.return)&&n.call(a),u<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((n=(f=p.n<0)?i:e.call(r,p))!==c)break}catch(n){a=t,u=1,i=n}finally{l=1}}return{value:n,done:f}}}(e,a,u),!0),s}var c={};function l(){}function s(){}function f(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),d=f.prototype=l.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,r(t,u,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,r(d,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,u,"GeneratorFunction"),r(d),r(d,u,"Generator"),r(d,a,function(){return this}),r(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:m}})()}function r(t,n,e,o){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}r=function(t,n,e,o){function u(n,e){r(t,n,function(t){return this._invoke(n,e,t)})}n?a?a(t,n,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[n]=e:(u("next",0),u("throw",1),u("return",2))},r(t,n,e,o)}function o(t,n,e,r,o,a,u){try{var i=t[a](u),c=i.value}catch(t){return void e(t)}i.done?n(c):Promise.resolve(c).then(r,o)}function a(t){return function(){var n=this,e=arguments;return new Promise(function(r,a){var u=t.apply(n,e);function i(t){o(u,r,a,i,c,"next",t)}function c(t){o(u,r,a,i,c,"throw",t)}i(void 0)})}}System.register(["./index-legacy118.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./firewall-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(n,r){"use strict";var o,u,i,c,l,s,f,p,d,m,y,b,v,h,g,P,w,I,_,j,x,k,V,O,S,A,U,T,G,q,C,E,H,F,L,R;return{setters:[function(t){o=t._},function(t){u=t.c,i=t.$,c=t.M,l=t.k,s=t.w,f=t.cO,p=t.d3,d=t.cP,m=t.cZ},function(t){y=t.c,b=t.V,v=t.r,h=t.bc,g=t.aF,P=t.o,w=t.I,I=t.j,_=t.k,j=t.e,x=t.v,k=t.p,V=t.q,O=t.J,S=t.K,A=t.x,U=t.aE,T=t.aG,G=t.z},function(t){q=t.ap,C=t.ao,E=t.b7,H=t.b8,F=t.b9,L=t.ba},function(t){R=t.g},null,null,null],execute:function(){var r={class:"flex w-full p-[2rem]"},M={class:"w-[86%] flex-1"},N={class:"flex items-center"},$={class:"flex items-center"},z=y({__name:"index",setup:function(n){u();var m=b(!1),y=v([]),z=v([]),J=h({type:"url",url:"",startIP:"",endIP:"",urlHelp:[{content:"例子1: bt.cn/admin/admin.php?system=abc 添加地址: ^/admin/admin.php"},{content:"例子2: bt.cn/admin/1 1 为可变 1-99 添加地址为: ^/admin/[1-99]"}],ipHelp:[{content:"添加某个IP:起始IP为192.168.10.6 结束IP为192.168.10.6"},{content:"添加IP段:起始IP为192.168.1.1 结束IP为192.168.1.254"}]}),K=function(t){J.type=t.paneName,D()},Z=function(){var t=a(e().m(function t(){var n;return e().w(function(t){for(;;)switch(t.n){case 0:n=J.type,t.n="url"===n?1:"ip"===n?4:7;break;case 1:if(J.url){t.n=2;break}return t.a(2,c.error("请输入URL地址"));case 2:return t.n=3,l({loading:"正在添加,请稍后...",request:C({url_rule:J.url}),message:!0});case 3:return J.url="",t.a(3,7);case 4:if(i(J.startIP)&&i(J.endIP)){t.n=5;break}return t.a(2,c.error("IP地址格式不正确"));case 5:return t.n=6,l({loading:"正在添加,请稍后...",request:q({start_ip:J.startIP,end_ip:J.endIP}),message:!0});case 6:return J.startIP="",J.endIP="",t.a(3,7);case 7:D();case 8:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),B=function(){var t=a(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s({title:"清空白名单",content:"是否清空白名单?",icon:"warning-filled"});case 1:return t.n=2,l({loading:"正在清空,请稍后...",request:E({type:J.type+"_white"}),message:!0,success:function(t){t.status&&D()}});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),D=function(){var t=a(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,l({loading:m,request:H(),data:{ip_white:[Array,y],url_white:[Array,z]}});case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),Q=function(){var t=a(e().m(function t(n,r){var o;return e().w(function(t){for(;;)switch(t.n){case 0:return(o="url"===J.type)?r-=1:r=y.value.findIndex(function(t){return t.at(0)===n.at(0)&&t.at(1)===n.at(1)}),t.n=1,l({loading:"正在删除,请稍后...",request:o?F({index:r}):L({index:r}),message:!0,success:function(t){t.status&&D()}});case 1:return t.a(2)}},t)}));return function(n,e){return t.apply(this,arguments)}}(),W=[{label:"起始IP",render:function(t){return g("span",t[0])}},{label:"结束IP",render:function(t){return g("span",t[1])}},R([{onClick:Q,title:"删除"}])],X=[{label:"URL",render:function(t){return g("span",t)}},R([{onClick:Q,title:"删除"}])];return P(function(){return D()}),function(n,e){var a=U,u=T,i=f,c=G,l=p,s=d,b=o,v=w("bt-loading");return I(),_("div",r,[j(u,{"tab-position":"left",modelValue:k(J).type,"onUpdate:modelValue":e[0]||(e[0]=function(t){return k(J).type=t}),onTabClick:K,class:"w-[8%] mr-[2.4rem]"},{default:x(function(){return[j(a,{label:"URL白名单",name:"url"}),j(a,{label:"IP白名单",name:"ip"})]}),_:1},8,["modelValue"]),V("div",M,[j(b,{class:"flex-1"},{"header-left":x(function(){return[O(V("div",N,[j(i,{modelValue:k(J).url,"onUpdate:modelValue":e[1]||(e[1]=function(t){return k(J).url=t}),width:"30rem",placeholder:"URL地址,例如:/admin/update"},null,8,["modelValue"])],512),[[S,"url"===k(J).type]]),O(V("div",$,[j(i,{modelValue:k(J).startIP,"onUpdate:modelValue":e[2]||(e[2]=function(t){return k(J).startIP=t}),width:"25rem",placeholder:"起始IP地址"},null,8,["modelValue"]),j(i,{modelValue:k(J).endIP,"onUpdate:modelValue":e[3]||(e[3]=function(t){return k(J).endIP=t}),class:"ml-[0.8rem]",width:"25rem",placeholder:"结束IP地址"},null,8,["modelValue"])],512),[[S,"ip"===k(J).type]]),j(c,{type:"primary",title:"添加",onClick:Z,class:"ml-[0.8rem]"},{default:x(function(){return t(e[4]||(e[4]=[A(" 添加 ",-1)]))}),_:1}),j(c,{onClick:B},{default:x(function(){return t(e[5]||(e[5]=[A("清空",-1)]))}),_:1})]}),content:x(function(){return[O(j(l,{column:"url"===k(J).type?X:W,data:"url"===k(J).type?k(z):k(y)},null,8,["column","data"]),[[v,k(m)],[v,"正在加载列表,请稍后...","title"]])]}),"footer-left":x(function(){return[j(s,{"list-style":"disc",options:"ip"===k(J).type?k(J).ipHelp:k(J).urlHelp,class:"mt-[2rem] ml-[2rem]"},null,8,["options"])]}),_:1})])])}}});n("default",m(z,[["__scopeId","data-v-dba09103"]]))}}})}();