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-legacy218.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",o=a.toStringTag||"@@toStringTag";function i(t,a,u,o){var i=a&&a.prototype instanceof c?a:c,l=Object.create(i.prototype);return n(l,"_invoke",function(t,n,a){var u,o,i,c=0,l=a||[],f=!1,p={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return u=t,o=0,i=e,p.n=n,s}};function v(t,n){for(o=t,i=n,r=0;!f&&c&&!a&&r<l.length;r++){var a,u=l[r],v=p.p,m=u[2];t>3?(a=m===n)&&(i=u[(o=u[4])?5:(o=3,3)],u[4]=u[5]=e):u[0]<=v&&((a=t<2&&v<u[1])?(o=0,p.v=n,p.n=u[1]):v<m&&(a=t<3||u[0]>n||n>m)&&(u[4]=t,u[5]=n,p.n=m,o=0))}if(a||t>1)return s;throw f=!0,n}return function(a,l,m){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&v(l,m),o=l,i=m;(r=o<2?e:i)||!f;){u||(o?o<3?(o>1&&(p.n=-1),v(o,i)):p.n=i:p.v=i);try{if(c=2,u){if(o||(a="next"),r=u[a]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,o<2&&(o=0)}else 1===o&&(r=u.return)&&r.call(u),o<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),o=1);u=e}else if((r=(f=p.n<0)?i:t.call(n,p))!==s)break}catch(r){u=e,o=1,i=r}finally{c=1}}return{value:r,done:f}}}(t,u,o),!0),l}var s={};function c(){}function l(){}function f(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(n(r={},u,function(){return this}),r),v=f.prototype=c.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,o,"GeneratorFunction")),e.prototype=Object.create(v),e}return l.prototype=f,n(v,"constructor",f),n(f,"constructor",l),l.displayName="GeneratorFunction",n(f,o,"GeneratorFunction"),n(v),n(v,o,"Generator"),n(v,u,function(){return this}),n(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:m}})()}function n(e,t,r,a){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}n=function(e,t,r,a){function o(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?u?u(e,t,{value:r,enumerable:!a,configurable:!a,writable:!a}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},n(e,t,r,a)}function r(e,t,n,r,a,u,o){try{var i=e[u](o),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,u){var o=e.apply(t,n);function i(e){r(o,a,u,i,s,"next",e)}function s(e){r(o,a,u,i,s,"throw",e)}i(void 0)})}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,n||"default");if("object"!=e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy3.js?v=1777008528"],function(e,n){"use strict";var r,i,s,c,l,f,p,v,m,d,y,b,g,h,w,j,_,O,k,x,P,S,I,T,N,C,E,G,q,D,z,B,F,R,M;return{setters:[function(e){r=e.c,i=e.X,s=e.r,c=e.Y,l=e.g,f=e.w,p=e.o,v=e.I,m=e.j,d=e.C,y=e.v,b=e.J,g=e.p,h=e.k,w=e.q,j=e.e,_=e.s,O=e.L,k=e.y,x=e.bn,P=e.bo,S=e.z,I=e.aB},function(e){T=e.I,N=e.w,C=e.bZ,E=e.k,G=e.d8,q=e.b,D=e.cm,z=e.M,B=e.ex,F=e.cZ},function(e){R=e._},function(e){M=e.o}],execute:function(){var n={class:"flex items-center justify-center"},Z={class:"h-[2.2rem] w-[2.2rem] flex overflow-hidden justify-center items-center status-icon <2xl:hidden"},J={class:"<2xl:hidden"},L=function(e){return e.stop="停止",e.start="启动",e.restart="重启",e.reload="重载",e}(L||{}),W=r({__name:"index",props:i({pluginInfo:{default:function(){return{title:"",name:"defalut",status:!1,version:"",admin:!1,setup:!1,s_version:"",s_status:!1}}},pluginName:{default:"defalut"},isRequest:{type:Boolean,default:!0}},{pluginInfo:{default:{title:"",name:"",status:!0,version:"",admin:!1,s_version:""}},pluginInfoModifiers:{}}),emits:["update:pluginInfo"],setup:function(e){var r=e,i=s(!1),F=s(!1),W=s(0),X=s(!1),Y=c(e,"pluginInfo"),$=l(function(){return L[Y.value.s_status?"stop":"start"]});f(function(){return r.pluginInfo},function(e){if(i.value=!1,!r.isRequest){if(B(e,"s_status"))Y.value=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);else{var t=e.title_en,n=e.name,a=e.version,s=e.admin,c=e.s_version,l=e.status;Y.value={title:t,name:n,status:l,version:a,admin:s,s_version:c,s_status:l}}i.value=!0}},{immediate:!0,deep:!0});var A=function(){var e=a(t().m(function e(){var n,a;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,F.value=!0,e.n=1,T({sName:r.pluginInfo.name||r.pluginName});case 1:n=e.v,a=n.data,Y.value=a,X.value=!0,e.n=3;break;case 2:e.p=2,e.v,Y.value.s_status=!1,X.value=!0;case 3:return e.p=3,F.value=!1,i.value=!1,e.f(3);case 4:return e.a(2)}},e,null,[[0,2,3,4]])}));return function(){return e.apply(this,arguments)}}(),H=function(){var e=a(t().m(function e(){var n,r,a;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=["nginx","apache","openlitespeed"].includes(Y.value.name)?"web":"pureftpd"===Y.value.name?"pure-ftpd":Y.value.name,e.n=1,D({name:n});case 1:r=e.v,a=r.data,setTimeout(function(){Y.value=a,X.value=!0},100),e.n=3;break;case 2:e.p=2,e.v,Y.value.status=!1;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),K=function(){M({name:Y.value.name})},Q=function(){var e=a(t().m(function e(){var n,r;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,D({name:"web"});case 1:if(n=e.v,!(r=n.data)){e.n=2;break}return Y.value=r,X.value=!0,F.value=!1,z.success("重启成功"),e.a(2);case 2:e.n=4;break;case 3:e.p=3,e.v,setTimeout(function(){Q()},2e3);case 4:return e.a(2)}},e,null,[[0,3]])}));return function(){return e.apply(this,arguments)}}(),U=function(){var e=a(t().m(function e(n){var u,o,i,s,c;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,u=L[n],o=r.pluginInfo.s_version,e.n=1,N({title:u+o,icon:"warning-filled",content:"你确定要".concat(u).concat(o,"服务,是否继续?")});case 1:if(i=!window.location.port,s=["nginx","apache"].includes(o),c="restart"===n,!(i&&c&&s)){e.n=2;break}return F.value=!0,C({name:o,type:n}),setTimeout(function(){Q()},2e3),e.a(2);case 2:return e.n=3,E({loading:F,request:C({name:o,type:n}),message:!0,success:function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,H();case 1:X.value=!0;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}()});case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return e.a(2)}},e,null,[[0,4]])}));return function(t){return e.apply(this,arguments)}}(),V=function(){W.value=document.body.clientWidth};return p(function(){(r.pluginInfo.title||r.pluginName)&&r.isRequest&&A(),V(),window.onresize=V}),function(t,r){var a=R,u=G,o=q,s=S,c=I,l=v("bt-loading");return m(),d(c,{placement:"top-start",width:"redis"===Y.value.name?140:200,class:"","popper-class":"white-tips-popover",trigger:"hover"},{reference:y(function(){return[b((m(),h("div",x(P(t.$attrs)),[g(i)?(m(),d(s,{key:0,type:Y.value.s_status?"default":"danger",class:"plugin-status-btn",plain:"",onClick:K},{default:y(function(){return[w("div",{class:O(["h-full inline-block flex items-center",Y.value.s_status?"hover:text-primary":"hover:text-danger"])},[w("span",Z,[j(u,{src:"/static/icons/soft/ico-".concat(Y.value.name||e.pluginName||"defalut",".svg"),class:"inline-block",all:!0},null,8,["src"])]),w("span",null,_(Y.value.title),1),w("span",J," "+_(Y.value.version),1),j(o,{icon:"icon-"+(Y.value.s_status?"start":"stop"),class:O(["ml-[4px]",Y.value.s_status?"!text-primary":"!text-danger"])},null,8,["icon","class"])],2)]}),_:1},8,["type"])):k("",!0)],16)),[[l,g(F)],[l,"small","size"]])]}),default:y(function(){return[w("div",n,[w("span",{class:"bt-link",onClick:r[0]||(r[0]=function(e){return U(Y.value.s_status?"stop":"start")})},_(g($)),1),j(a),w("span",{class:"bt-link",onClick:r[1]||(r[1]=function(e){return U("restart")})},"重启"),j(a),w("span",{class:"bt-link",onClick:r[2]||(r[2]=function(e){return U("reload")})},"重载"),"redis"!==Y.value.name?(m(),d(a,{key:0})):k("",!0),"redis"!==Y.value.name?(m(),h("span",{key:1,class:"bt-link",onClick:r[3]||(r[3]=function(e){return g(M)({name:Y.value.name})})},"告警设置")):k("",!0)])]}),_:1},8,["width"])}}});e("B",F(W,[["__scopeId","data-v-ed742891"]]))}}})}();