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-legacy214.js
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||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 t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[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 e,t,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.toStringTag||"@@toStringTag";function u(n,o,a,l){var u=o&&o.prototype instanceof s?o:s,c=Object.create(u.prototype);return r(c,"_invoke",function(n,r,o){var a,l,u,s=0,c=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return a=t,l=0,u=e,p.n=n,i}};function d(n,r){for(l=n,u=r,t=0;!f&&s&&!o&&t<c.length;t++){var o,a=c[t],d=p.p,m=a[2];n>3?(o=m===r)&&(u=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=d&&((o=n<2&&d<a[1])?(l=0,p.v=r,p.n=a[1]):d<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,p.n=m,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,c,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&d(c,m),l=c,u=m;(t=l<2?e:u)||!f;){a||(l?l<3?(l>1&&(p.n=-1),d(l,u)):p.n=u:p.v=u);try{if(s=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=p.n<0)?u:n.call(r,p))!==i)break}catch(t){a=e,l=1,u=t}finally{s=1}}return{value:t,done:f}}}(n,a,l),!0),c}var i={};function s(){}function c(){}function f(){}t=Object.getPrototypeOf;var p=[][a]?t(t([][a]())):(r(t={},a,function(){return this}),t),d=f.prototype=s.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,r(e,l,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=f,r(d,"constructor",f),r(f,"constructor",c),c.displayName="GeneratorFunction",r(f,l,"GeneratorFunction"),r(d),r(d,l,"Generator"),r(d,a,function(){return this}),r(d,"toString",function(){return"[object Generator]"}),(n=function(){return{w:u,m:m}})()}function r(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}r=function(e,t,n,o){function l(t,n){r(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(l("next",0),l("throw",1),l("return",2))},r(e,t,n,o)}function o(e,t,n,r,o,a,l){try{var u=e[a](l),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(r,o)}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./index-legacy116.js?v=1777008528","./useStore-legacy4.js?v=1777008528","./database-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528"],function(t,r){"use strict";var a,l,u,i,s,c,f,p,d,m,v,y,b,g,w,h,_,x,j,S,k,C,O,I,F,T,A,q,P,E,V,G,L,R;return{setters:[function(e){a=e.aI,l=e.aJ,u=e.r,i=e.H,s=e.V,c=e.e,f=e.c,p=e.I,d=e.j,m=e.k,v=e.v,y=e.q,b=e.L,g=e.p,w=e.J,h=e.K,_=e.aV,x=e.ad,j=e.z,S=e.ab},function(e){k=e.dm,C=e.Q,O=e.w,I=e.k,F=e.M,T=e.db,A=e.d3,q=e.b,P=e.cZ},function(e){E=e._},function(e){V=e.g},function(e){G=e.batchEditMysqlPassword},function(e){L=e.c,R=e.v},null,null],execute:function(){var r=l("FTP-BATCH-EDIT-PAW",function(){return{updateFtpInfoRef:u(),ftpForm:i({type:"0",password:k(12)}),typeOptions:u([{label:"使用统一密码",value:"0"},{label:"单独设置密码",value:"1"}])}}),B=function(){return a(r())},D=V().refs,H=D.mysqlSelectData,J=D.isRefreshTable,M=B(),U=M.ftpForm,W=M.updateFtpInfoRef,N=i({password:[{validator:function(e,t,n){t.length>=1||"0"!==U.value.type?n():n(new Error("数据库密码长度不能少于1位!"))},trigger:["blur"]}]}),z=function(){U.value.password=k(12)},K=function(){C({value:U.value.password})},Q=function(){var e;H.value.selectedList.length>0&&C({value:null===(e=H.value.selectedList.map(function(e){return"".concat(e.name,"--").concat(e.password)}))||void 0===e?void 0:e.join("\n")})},Z=function(){H.value.selectedList.forEach(function(e){e.password=k(12)});var e=document.querySelector(".refreshAllBtn");null==e||e.blur()},$=function(){var e=H.value.selectedList.map(function(e){return{id:e.id,name:e.name,data_name:e.name,password:"0"==U.value.type?U.value.password:e.password}});return{database_list:JSON.stringify(e)}},X=function(){var e,t=(e=n().m(function e(t){var r,o,a;return n().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,W.value.validate();case 1:return e.n=2,O({title:"提示",width:"35rem",content:"修改数据库密码后,旧密码将无法登录数据库,是否继续操作?"});case 2:return e.n=3,I({loading:"正在修改数据库密码,请稍候...",request:G($())});case 3:r=e.v,o=L(r),R(o.data,{title:"修改数据库密码"}),H.value.clearSelection(),J.value=!0,t&&t(),e.n=5;break;case 4:e.p=4,a=e.v,console.log(a);case 5:return e.a(2)}},e,null,[[0,4]])}),function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function u(e){o(l,r,a,u,i,"next",e)}function i(e){o(l,r,a,u,i,"throw",e)}u(void 0)})});return function(e){return t.apply(this,arguments)}}(),Y=s([{label:"数据库名",prop:"name",fixed:!0,minWidth:100,width:120},{label:"数据库用户",prop:"username",fixed:!0,minWidth:100,width:120},{label:"密码",fixed:!0,width:190,isCustom:!0,render:function(e){var t={lt:"<",gt:">",nbsp:" ",amp:"&",quot:'"'};return e.password=e.password.replace(/&(lt|gt|nbsp|amp|quot);/gi,function(e,n){return t[n]}),c("input",{type:"text",value:e.password,class:"bt-table-input !w-[18rem]",placeholder:"点击编辑密码",title:"点击编辑密码",onBlur:function(t){if(t.target.value.length<1&&(F.error("数据库密码长度不能少于1位!"),t.target.value=e.password),e.password===t.target.value)return!1;e.password=t.target.value}},null)}}]),ee={class:"mt-[1.6rem] flex"},te={class:"flex items-center"},ne=f({__name:"index",setup:function(t,n){var r=n.expose,o=V().refs.mysqlSelectData,a=B(),l=a.ftpForm,u=a.typeOptions,i=a.updateFtpInfoRef;return r({onConfirm:X}),function(t,n){var r=_,a=T,s=x,f=A,k=j,C=E,O=q,I=S,F=p("bt-loading");return d(),m("div",{class:b("1"==g(l).type?"pt-2rem pr-2rem":"p-2rem")},[c(r,{class:b(["!w-full","1"==g(l).type?"warn":""]),icon:"svgtofont-el-warning",type:"warning",closable:!1},{title:v(function(){return e(n[2]||(n[2]=[y("span",null,"批量改密已选mysql数据库,默认自动化改密,支持自定义",-1)]))}),_:1},8,["class"]),c(I,{ref_key:"updateFtpInfoRef",ref:i,rules:g(N),model:g(l),class:"bt-custom-form"},{default:v(function(){return[c(s,{label:"类型",class:"typeClass"},{default:v(function(){return[c(a,{type:"button",class:"!flex",modelValue:g(l).type,"onUpdate:modelValue":n[0]||(n[0]=function(e){return g(l).type=e}),options:g(u)},null,8,["modelValue","options"])]}),_:1}),w(c(s,{label:" ",class:"typeClass"},{default:v(function(){return[w(c(f,{"max-height":200,ref:"showFtpTableRef",column:g(Y),data:g(o).selectedList,description:"列表为空"},null,8,["column","data"]),[[F,"正在加载列表,请稍后...","title"]]),y("div",ee,[c(k,{type:"default",onClick:g(Q),class:"inline-block flex items-center"},{default:v(function(){return e(n[3]||(n[3]=[y("i",{class:"svgtofont-icon-copy"},null,-1),y("span",{class:"mb-[2px] ml-[4px]"},"复制所有",-1)]))}),_:1},8,["onClick"]),c(k,{type:"default",onClick:g(Z),class:"refreshAllBtn"},{default:v(function(){return e(n[4]||(n[4]=[y("i",{class:"svgtofont-el-refresh"},null,-1),y("span",{class:"mb-[2px] ml-[4px]"},"刷新所有",-1)]))}),_:1},8,["onClick"])])]}),_:1},512),[[h,"1"===g(l).type]]),w(c(s,{label:"密码",class:"relative mt-[16px] typeClass",prop:"password"},{default:v(function(){return[y("div",te,[c(C,{modelValue:g(l).password,"onUpdate:modelValue":n[1]||(n[1]=function(e){return g(l).password=e}),style:{width:"26rem"},name:"password",icon:"el-refresh",onIconClick:g(z)},null,8,["modelValue","onIconClick"]),c(O,{icon:"icon-copy",class:"w-1.8rem h-1.8rem cursor-pointer ml-[1rem]",onClick:g(K)},null,8,["onClick"])])]}),_:1},512),[[h,"0"==g(l).type]])]}),_:1},8,["rules","model"])],2)}}});t("default",P(ne,[["__scopeId","data-v-9bed89e3"]]))}}})}();