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-legacy319.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t){return function(t){if(Array.isArray(t))return r(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 r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(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 r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},u=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function c(r,n,u,i){var c=n&&n.prototype instanceof l?n:l,f=Object.create(c.prototype);return o(f,"_invoke",function(r,n,o){var u,i,c,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return u=e,i=0,c=t,p.n=r,a}};function y(r,n){for(i=r,c=n,e=0;!s&&l&&!o&&e<f.length;e++){var o,u=f[e],y=p.p,d=u[2];r>3?(o=d===n)&&(c=u[(i=u[4])?5:(i=3,3)],u[4]=u[5]=t):u[0]<=y&&((o=r<2&&y<u[1])?(i=0,p.v=n,p.n=u[1]):y<d&&(o=r<3||u[0]>n||n>d)&&(u[4]=r,u[5]=n,p.n=d,i=0))}if(o||r>1)return a;throw s=!0,n}return function(o,f,d){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,d),i=f,c=d;(e=i<2?t:c)||!s;){u||(i?i<3?(i>1&&(p.n=-1),y(i,c)):p.n=c:p.v=c);try{if(l=2,u){if(i||(o="next"),e=u[o]){if(!(e=e.call(u,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,i<2&&(i=0)}else 1===i&&(e=u.return)&&e.call(u),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);u=t}else if((e=(s=p.n<0)?c:r.call(n,p))!==a)break}catch(e){u=t,i=1,c=e}finally{l=1}}return{value:e,done:s}}}(r,u,i),!0),f}var a={};function l(){}function f(){}function s(){}e=Object.getPrototypeOf;var p=[][u]?e(e([][u]())):(o(e={},u,function(){return this}),e),y=s.prototype=l.prototype=Object.create(p);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=s,o(y,"constructor",s),o(s,"constructor",f),f.displayName="GeneratorFunction",o(s,i,"GeneratorFunction"),o(y),o(y,i,"Generator"),o(y,u,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),(n=function(){return{w:c,m:d}})()}function o(t,e,r,n){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}o=function(t,e,r,n){function i(e,r){o(t,e,function(t){return this._invoke(e,r,t)})}e?u?u(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},o(t,e,r,n)}function u(t,e,r,n,o,u,i){try{var c=t[u](i),a=c.value}catch(t){return void r(t)}c.done?e(a):Promise.resolve(a).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function c(t){u(i,n,o,c,a,"next",t)}function a(t){u(i,n,o,c,a,"throw",t)}c(void 0)})}}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function l(e,r,n){return(r=function(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}System.register(["./utils-lib-legacy.js?v=1777008528","./index-legacy118.js?v=1777008528","./index-legacy217.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy175.js?v=1777008528","./firewall-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./useMethod-legacy7.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy25.js?v=1777008528","./useStore-legacy8.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang-legacy.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(t,r){"use strict";var o,u,c,l,f,s,p,y,d,b,v,m,_,g,h,j,w,O,P,S,T,x,A,k,E,I,F,G,C,D,U,q,H,V,M,N;return{setters:[function(t){o=t.e,u=t._,c=t.k,l=t.c4,f=t.c_,s=t.d3,p=t.d4,y=t.w},function(t){d=t._},function(t){b=t._},function(t){v=t.c,m=t.r,_=t.H,g=t.o,h=t.I,j=t.j,w=t.k,O=t.p,P=t.C,S=t.v,T=t.e,x=t.y,A=t.x,k=t.Q,E=t.J,I=t.z},function(t){F=t._},function(t){G=t.h,C=t.j},function(t){D=t.e},function(t){U=t.r,q=t.u,H=t.a},function(t){V=t._},function(t){M=t.g},function(t){N=t._},null,null,null,null],execute:function(){var z={class:"min-h-[30rem]"};t("default",v({__name:"index",setup:function(t){var v,J=M().refs,L=J.systemTabActive,Q=J.firewallInfo,R=m(),$=m([]),B=m(""),K=m(0),W=m(!1),X=_({p:1,row:20}),Y=function(t,e){o({title:t?"修改端口转发规则":"添加端口转发规则",area:44,component:function(){return u(function(){return r.import("./add-port-transmit-legacy.js?v=1777008528")},void 0,r.meta.url)},showFooter:!0,compData:a(a({},e),{},{isEdit:t,refreshFn:Z})})},Z=function(){var t=i(n().m(function t(){return n().w(function(t){for(;;)switch(t.n){case 0:if("forward"===L.value){t.n=1;break}return t.a(2);case 1:return t.n=2,c({loading:W,request:G({query:B.value}),data:{data:[Array,$],page:l(K)}});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),tt=function(t,e){return{operation:e,protocol:t.Protocol.toLowerCase(),S_Address:t.S_Address,S_Port:t.S_Port,T_Address:t.T_Address,T_Port:t.T_Port}},et=function(){var t=i(n().m(function t(e){return n().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,y({icon:"warning-filled",title:"删除端口转发规则【源端口:"+e.S_Port+" -> 目标端口:"+e.T_Port+"】",content:"删除选中规则后,该源端口将停止转发至目标端口,是否继续操作?"});case 1:return t.n=2,c({loading:"正在删除IP规则,请稍后...",request:C(tt(e,"remove")),message:!0,success:Z});case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),rt=[D(),{label:"协议",prop:"Protocol"},{label:"源端口",prop:"S_Port"},{label:"目标IP",render:function(t){return t.T_Address?t.T_Address:"127.0.0.1"}},{label:"目标端口",prop:"T_Port"},{label:"时间",prop:"addtime",renderHeader:function(){return U("时间","-- : 表示面板数据库中未记录创建时间,规则从系统中直接读取,忽略即可")}},{label:"备注",prop:"brief"},q({editEvent:function(t){Y(!0,t)},deleteEvent:et})],nt=[{label:"删除",value:"delete",event:(v=i(n().m(function t(e,r){var o;return n().w(function(t){for(;;)switch(t.n){case 0:return o=function(){var t=i(n().m(function t(e,r){return n().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,C(tt(e,"remove"));case 1:return t.a(2,t.v)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),t.n=1,H(e,r,o,{label:"端口",prop:"T_Address"},Z);case 1:return t.a(2)}},t)})),function(t,e){return v.apply(this,arguments)})}];return g(function(){return Z()}),function(t,r){var n=F,o=I,u=f,i=s,c=p,a=b,l=d,y=h("bt-loading");return j(),w("div",z,[O(Q).init_status?x("",!0):(j(),P(n,{key:0,width:"38rem"},{content:S(function(){return[T(N)]}),_:1})),T(l,null,{"header-left":S(function(){return[T(o,{type:"primary",onClick:r[0]||(r[0]=function(t){return Y()})},{default:S(function(){return e(r[6]||(r[6]=[A(" 添加端口转发 ",-1)]))}),_:1}),T(V,{type:"forward",refreshFn:Z})]}),"header-right":S(function(){return[T(u,{class:"!w-[32rem]",modelValue:O(B),"onUpdate:modelValue":r[1]||(r[1]=function(t){return k(B)?B.value=t:null}),onSearch:r[2]||(r[2]=function(t){return Z()}),placeholder:"请输入端口/来源"},null,8,["modelValue"])]}),content:S(function(){return[E(T(i,{ref_key:"portTransmitRef",ref:R,column:rt,data:O($),description:"端口转发列表为空"},null,8,["data"]),[[y,O(W)],[y,"正在加载端口转发列表,请稍后...","title"]])]}),"footer-left":S(function(){return[T(c,{"table-ref":O(R),options:nt},null,8,["table-ref"])]}),"footer-right":S(function(){return[T(a,{total:O(K),page:O(X).p,"onUpdate:page":r[3]||(r[3]=function(t){return O(X).p=t}),row:O(X).row,"onUpdate:row":r[4]||(r[4]=function(t){return O(X).row=t}),onChange:r[5]||(r[5]=function(t){return Z()}),name:"forward"},null,8,["total","page","row"])]}),_:1})])}}}))}}})}();