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-legacy311.js
!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);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)?e(t,n):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 e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}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,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",u=a.toStringTag||"@@toStringTag";function l(n,a,o,u){var l=a&&a.prototype instanceof i?a:i,s=Object.create(l.prototype);return r(s,"_invoke",function(n,r,a){var o,u,l,i=0,s=a||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,u=0,l=t,d.n=n,c}};function p(n,r){for(u=n,l=r,e=0;!f&&i&&!a&&e<s.length;e++){var a,o=s[e],p=d.p,m=o[2];n>3?(a=m===r)&&(l=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=p&&((a=n<2&&p<o[1])?(u=0,d.v=r,d.n=o[1]):p<m&&(a=n<3||o[0]>r||r>m)&&(o[4]=n,o[5]=r,d.n=m,u=0))}if(a||n>1)return c;throw f=!0,r}return function(a,s,m){if(i>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,m),u=s,l=m;(e=u<2?t:l)||!f;){o||(u?u<3?(u>1&&(d.n=-1),p(u,l)):d.n=l:d.v=l);try{if(i=2,o){if(u||(a="next"),e=o[a]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,u<2&&(u=0)}else 1===u&&(e=o.return)&&e.call(o),u<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),u=1);o=t}else if((e=(f=d.n<0)?l:n.call(r,d))!==c)break}catch(e){o=t,u=1,l=e}finally{i=1}}return{value:e,done:f}}}(n,o,u),!0),s}var c={};function i(){}function s(){}function f(){}e=Object.getPrototypeOf;var d=[][o]?e(e([][o]())):(r(e={},o,function(){return this}),e),p=f.prototype=i.prototype=Object.create(d);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,r(t,u,"GeneratorFunction")),t.prototype=Object.create(p),t}return s.prototype=f,r(p,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,u,"GeneratorFunction"),r(p),r(p,u,"Generator"),r(p,o,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(n=function(){return{w:l,m:m}})()}function r(t,e,n,a){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}r=function(t,e,n,a){function u(e,n){r(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!a,configurable:!a,writable:!a}):t[e]=n:(u("next",0),u("throw",1),u("return",2))},r(t,e,n,a)}function a(t,e,n,r,a,o,u){try{var l=t[o](u),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,a)}function o(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var u=t.apply(e,n);function l(t){a(u,r,o,l,c,"next",t)}function c(t){a(u,r,o,l,c,"throw",t)}l(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./index-legacy118.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./database-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(e,r){"use strict";var a,u,l,c,i,s,f,d,p,m,v,h,y,g,b,w,_,j,x,S,k,D,P,V,C,A,O,E,U,M,F,G,I,q,T,L,B,H,Q,z,J;return{setters:[function(t){a=t.Q,u=t.e,l=t._,c=t.M,i=t.w,s=t.k,f=t.c_,d=t.d3,p=t.K,m=t.cP},function(t){v=t._},function(t){h=t.c,y=t.r,g=t.H,b=t.aF,w=t.o,_=t.I,j=t.j,x=t.k,S=t.e,k=t.v,D=t.x,P=t.p,V=t.Q,C=t.F,A=t.B,O=t.C,E=t.J,U=t.q,M=t.s,F=t.z,G=t.am,I=t.an,q=t.ay,T=t.aA,L=t.bh},function(t){B=t.g},function(t){H=t.exportUserData,Q=t.delMysqlUser,z=t.getUserData,J=t.getMysqlCloudServer},null,null,null],execute:function(){var K={class:"break-words flex items-center justify-center w-full text-secondary"},N=["title"],R={class:"p-20px"},$={class:"p-20px"};e("default",h({__name:"index",setup:function(e,h){var W=h.expose,X=y(0),Y=y(!1),Z=y(""),tt=y([]),et=y(!0),nt=y([]),rt=g({associatedPopup:!1,associatedData:[],associatedDataColumn:[{label:"数据库",prop:"database"},{label:"表",prop:"table"},{label:"权限",render:function(t){return t.access.map(function(t){return"".concat(t.title,":").concat(t.access)}).join("\n")}}]}),at=y({resultMsg:"",resultData:"",resultStatus:!1}),ot=g({authPopup:!1,authData:[],authDataColumn:[{label:"权限",render:function(t){return t.map(function(t){return b("div","".concat(t.title,":").concat(t.access))})}}]}),ut=[{content:"说明:此处用户数据为连接mysql直接获取,未与面板数据库连接,建议仅对此处新建的用户进行操作,以防出现意外"},{content:"访问权限:localhost/127.0.0.1:仅限本机访问 %:允许任何人访问 IP地址:仅限此IP地址访问(不含本机)"},{content:"全局权限:全局权限是指对所有数据库拥有的权限 ALL PRIVILEGES即root最高权限,USAGE为普通用户,拥有指定数据库指定权限(关联数据库权限)"}],lt=function(t){u({title:"添加用户",area:60,component:function(){return l(function(){return r.import("./add-user-legacy2.js?v=1777008528")},void 0,r.meta.url)},compData:{refreshFn:function(){return pt()},serverList:nt},showFooter:!0})},ct=function(){var t=o(n().m(function t(e){var r,a,o,u;return n().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=e.host,a=e.user,t.p=1,t.n=2,H({username:a,host:r,sid:X.value});case 2:o=t.v,at.value.resultMsg=o.data,at.value.resultStatus=!0,Y.value=!0,t.n=4;break;case 3:t.p=3,u=t.v,console.log(u);case 4:return t.a(2)}},t,null,[[1,3]])}));return function(e){return t.apply(this,arguments)}}(),it=function(){var t=o(n().m(function t(e){var r,a,o;return n().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=e.host,a=e.user,t.p=1,t.n=2,i({title:"删除用户",content:"删除用户后,该用户将无法访问数据库,是否继续操作?",icon:"warning-filled"});case 2:return t.n=3,s({loading:"正在删除用户,请稍后...",request:Q({username:a,host:r,sid:X.value}),message:!0,success:st});case 3:t.n=5;break;case 4:t.p=4,o=t.v,console.log(o);case 5:return t.a(2)}},t,null,[[1,4]])}));return function(e){return t.apply(this,arguments)}}(),st=function(){var t=o(n().m(function t(){var e,r,a;return n().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,e={sid:X.value},Z.value&&(e.search=Z.value),t.n=1,s({loading:et,request:z(e),data:{data:[Array,tt],status:Boolean}});case 1:if((r=t.v).status){t.n=2;break}return tt.value=[],t.a(2,c.error(r.msg||"获取用户数据失败"));case 2:tt.value.forEach(function(t){t.list.forEach(function(e){e.user=t.user})});case 3:return t.a(2,r);case 4:t.p=4,a=t.v,console.log(a);case 5:return t.a(2)}},t,null,[[0,4]])}));return function(){return t.apply(this,arguments)}}(),ft=function(){var t=o(n().m(function t(){var e,r;return n().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s({loading:"正在获取服务器数据,请稍后...",request:J(),data:[Array,nt]});case 1:nt.value=null===(e=nt.value)||void 0===e?void 0:e.filter(function(t){return""!==t.id}),X.value=null===(r=nt.value[0])||void 0===r?void 0:r.id;case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),dt=y([{label:"访问权限",render:function(t){return b("span","".concat(t.host).concat("%"==t.host?" - 所有人":"localhost"==t.host||"127.0.0.1"==t.host?" - 本地":""))}},{prop:"password",label:"密码",width:50},{prop:"password_last_changed",label:"密码修改时间",width:160},B([{onClick:function(t){u({title:"数据库权限",area:80,component:function(){return l(function(){return r.import("./user-auth-legacy.js?v=1777008528")},void 0,r.meta.url)},compData:{row:t,sid:X.value,refreshEvent:st}})},title:"权限"},{onClick:function(t){var e=t.user,n=t.host;if("root"===e&&"localhost"===n)return c.error("该用户不允许改密");u({title:"修改密码",area:42,compData:{username:e,host:n,sid:X.value},component:function(){return l(function(){return r.import("./user-pwd-legacy.js?v=1777008528")},void 0,r.meta.url)},showFooter:!0})},title:"改密"},{onClick:ct,title:"导出"},{onClick:it,title:"删除"}])]),pt=function(){var t=o(n().m(function t(){return n().w(function(t){for(;;)switch(t.n){case 0:st(),ft();case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return w(pt),W({init:pt}),function(e,n){var r=F,o=G,u=I,l=f,c=d,i=q,s=T,h=L,y=p,g=v,b=m,w=_("bt-loading");return j(),x("div",null,[S(g,null,{"header-left":k(function(){return[S(r,{type:"primary",onClick:lt},{default:k(function(){return t(n[6]||(n[6]=[D("添加用户",-1)]))}),_:1})]}),"header-right":k(function(){return[S(u,{modelValue:P(X),"onUpdate:modelValue":n[0]||(n[0]=function(t){return V(X)?X.value=t:null}),class:"mr-[1.5rem] !w-[16rem]",placeholder:"请选择",onChange:st},{default:k(function(){return[(j(!0),x(C,null,A(P(nt),function(t){return j(),O(o,{key:t.value,label:t.ps,value:t.id},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"]),S(l,{modelValue:P(Z),"onUpdate:modelValue":n[1]||(n[1]=function(t){return V(Z)?Z.value=t:null}),placeholder:"请输入用户名",class:"!w-[20rem]",onSearch:st},null,8,["modelValue"])]}),content:k(function(){return[S(s,{data:P(tt),"max-height":"400"},{default:k(function(){return[S(i,{type:"expand"},{default:k(function(t){return[E(S(c,{column:P(dt),data:t.row.list},null,8,["column","data"]),[[w,P(et)]])]}),_:1}),S(i,{label:"用户",prop:"user"})]}),_:1},8,["data"])]}),popup:k(function(){return[S(y,{title:"导出结果",modelValue:P(Y),"onUpdate:modelValue":n[3]||(n[3]=function(t){return V(Y)?Y.value=t:null}),area:38},{default:k(function(){return[S(h,{icon:P(at).resultStatus?"success":"error",title:P(at).resultStatus?"导出成功":"导出失败"},{extra:k(function(){return[U("div",K,[U("span",{class:"max-w-[28rem] truncate",title:P(at).resultMsg},M(P(at).resultMsg),9,N),S(r,{type:"text",onClick:n[2]||(n[2]=function(t){return e=P(at).resultMsg,a({value:e});var e})},{default:k(function(){return t(n[7]||(n[7]=[D("复制",-1)]))}),_:1})])]}),_:1},8,["icon","title"])]}),_:1},8,["modelValue"]),S(y,{title:"关联数据库",modelValue:P(rt).associatedPopup,"onUpdate:modelValue":n[4]||(n[4]=function(t){return P(rt).associatedPopup=t}),area:80},{default:k(function(){return[U("div",R,[S(c,{"max-height":"300",data:P(rt).associatedData,column:P(rt).associatedDataColumn,"default-sort":{prop:"user",order:"descending"}},null,8,["data","column"]),S(c,{"max-height":"300",data:P(rt).associatedData,column:P(rt).associatedDataColumn},null,8,["data","column"])])]}),_:1},8,["modelValue"]),S(y,{title:"全局权限",modelValue:P(ot).authPopup,"onUpdate:modelValue":n[5]||(n[5]=function(t){return P(ot).authPopup=t}),area:40},{default:k(function(){return[U("div",$,[S(c,{"max-height":"300",data:P(ot).authData,column:P(ot).authDataColumn},null,8,["data","column"])])]}),_:1},8,["modelValue"])]}),_:1}),S(b,{options:ut,"list-style":"disc",class:"ml-20px mt-12px"})])}}}))}}})}();