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-legacy17.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 a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(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){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,o,u,i=[],s=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(i.push(n.value),i.length!==e);s=!0);}catch(t){l=!0,a=t}finally{try{if(!s&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw a}}return i}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){if(t){if("string"==typeof t)return a(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)?a(t,e):void 0}}function a(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 o(){/*! 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:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function i(r,n,a,o){var i=n&&n.prototype instanceof l?n:l,c=Object.create(i.prototype);return u(c,"_invoke",function(r,n,a){var o,u,i,l=0,c=a||[],f=!1,p={p:0,n:0,v:t,a:v,f:v.bind(t,4),d:function(e,r){return o=e,u=0,i=t,p.n=r,s}};function v(r,n){for(u=r,i=n,e=0;!f&&l&&!a&&e<c.length;e++){var a,o=c[e],v=p.p,m=o[2];r>3?(a=m===n)&&(i=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=v&&((a=r<2&&v<o[1])?(u=0,p.v=n,p.n=o[1]):v<m&&(a=r<3||o[0]>n||n>m)&&(o[4]=r,o[5]=n,p.n=m,u=0))}if(a||r>1)return s;throw f=!0,n}return function(a,c,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&v(c,m),u=c,i=m;(e=u<2?t:i)||!f;){o||(u?u<3?(u>1&&(p.n=-1),v(u,i)):p.n=i:p.v=i);try{if(l=2,o){if(u||(a="next"),e=o[a]){if(!(e=e.call(o,i)))throw TypeError("iterator result is not an object");if(!e.done)return e;i=e.value,u<2&&(u=0)}else 1===u&&(e=o.return)&&e.call(o),u<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),u=1);o=t}else if((e=(f=p.n<0)?i:r.call(n,p))!==s)break}catch(e){o=t,u=1,i=e}finally{l=1}}return{value:e,done:f}}}(r,a,o),!0),c}var s={};function l(){}function c(){}function f(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(u(e={},n,function(){return this}),e),v=f.prototype=l.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t}return c.prototype=f,u(v,"constructor",f),u(f,"constructor",c),c.displayName="GeneratorFunction",u(f,a,"GeneratorFunction"),u(v),u(v,a,"Generator"),u(v,n,function(){return this}),u(v,"toString",function(){return"[object Generator]"}),(o=function(){return{w:i,m:m}})()}function u(t,e,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}u=function(t,e,r,n){function o(e,r){u(t,e,function(t){return this._invoke(e,r,t)})}e?a?a(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(o("next",0),o("throw",1),o("return",2))},u(t,e,r,n)}function i(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 s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(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 a=n.call(e,r||"default");if("object"!=t(a))return a;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}function c(t,e,r,n,a,o,u){try{var i=t[o](u),s=i.value}catch(t){return void r(t)}i.done?e(s):Promise.resolve(s).then(n,a)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function u(t){c(o,n,a,u,i,"next",t)}function i(t){c(o,n,a,u,i,"throw",t)}u(void 0)})}}System.register(["./index-legacy206.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./form-item-legacy.js?v=1777008528","./config-legacy.js?v=1777008528","./useMethod-legacy.js?v=1777008528","./useController-legacy3.js?v=1777008528"],function(t,n){"use strict";var a,u,i,l,c,p,v,m,d,g,y,b,h,w,_,j,S,O,x,k,P,T,L,F,C,I,A,E,N,K,q,D,G,z,H,M,R,J,V;return{setters:[function(t){a=t._},function(t){u=t.r,i=t.g,l=t.e,c=t.c,p=t.x,v=t.o,m=t.j,d=t.k,g=t.p,y=t.q,b=t.s,h=t.y,w=t.C,_=t.aV,j=t.aX},function(t){S=t.w,O=t.M,x=t.e,k=t._,P=t.G,T=t.k,L=t.X,F=t.fa,C=t.Y,I=t.cZ},function(t){A=t.F,E=t.a,N=t.b,K=t.c,q=t.d,D=t.f},function(t){G=t.P,z=t.Q,H=t.R,M=t.S,R=t.L},function(t){J=t.d},function(t){V=t.a}],execute:function(){var B=t("s",u({last_update:"",total_time:"",start_time:"",panel_addr:"",panel_user:"",panel_password:"",panel_port:""}));u("计算中..."),u("计算中..."),u({total:0,use:0});var X=u({}),Q=t("e",u([])),U=t("p",u({status:0,progress:0,msg:"准备开始迁移",progressLog:"",remain_time:100})),Y=u(!1),Z=(t("a",[{type:"index"},{label:"失败项",prop:"name"},{label:"失败原因",prop:"msg",width:320,render:function(t){return l("span",{class:"text-dangerDark"},[t.msg])}}]),u({})),$=function(){var t=f(o().m(function t(e){var r,n,a,u,i;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:return Z.value=e,t.p=1,t.n=2,S({title:"整机迁移提醒",content:"迁移至目标服务器【"+e.server_ip+"】,迁移过程中网站访问受影响,是否继续操作?",type:"calc"});case 2:return Y.value=!0,ot(),r=O.load("正在检查目标服务器连接,请稍后..."),t.n=3,G(e);case 3:if(n=t.v,r.close(),!n.status){t.n=5;break}return a=O.load("正在开始迁移,请稍后..."),t.n=4,z(s(s({},e),X.value));case 4:u=t.v,a.close(),u.status?(U.value.status=0,U.value.msg="准备迁移中...",U.value.progress=0,U.value.progressLog="",ut()):O.error(u.msg),t.n=6;break;case 5:O.error(n.msg);case 6:t.n=8;break;case 7:t.p=7,i=t.v,console.log(i);case 8:return t.a(2)}},t,null,[[1,7]])}));return function(e){return t.apply(this,arguments)}}(),W=(t("r",f(o().m(function t(){var e;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,ot(),U.value.status=1,Y.value=!0,t.n=1,z(Z.value);case 1:t.v,U.value.msg="准备迁移中...",U.value.progress=0,U.value.progressLog="",ut(),t.n=3;break;case 2:t.p=2,e=t.v,console.log(e);case 3:return t.a(2)}},t,null,[[0,2]])}))),function(){return X.value={},J.value.operateType="add",x({area:84,title:"设置迁移数据",component:function(){return k(function(){return n.import("./index-legacy450.js?v=1777008528")},void 0,n.meta.url)},compData:{saveConfig:function(t,e,n,a){var o={site:"site",database:"database",wptools:"wp_tools",plugin:"plugin",runtime:"soft",Ftp:"ftp",Crontab:"crontab",Vmail:"vmail",Terminal:"ssh",Firewall:"firewall",node:"node"},u=[];Object.entries(e).map(function(t){var e=r(t,2),i=e[0],s=e[1];("database"===i&&a.length>0||"site"===i&&n.length>0||s)&&u.push(o[i])}),X.value={site_id:JSON.stringify(n.map(function(t){return t.id})),database_id:JSON.stringify(a.map(function(t){return t.id})),backup_data:JSON.stringify(u)}}},btn:["确定","取消"],showFooter:!0})}),tt=u([]);i(function(){return P(tt.value.reduce(function(t,e){return t+Number(e.size)},0))});var et=u([]);i(function(){return P(et.value.reduce(function(t,e){return t+Number(e.size)},0))});var rt=u([]);i(function(){return P(rt.value.reduce(function(t,e){return t+Number(e.size)},0))}),u([]);var nt=u([]);i(function(){return P(nt.value.reduce(function(t,e){return t+Number(e.size)},0))}),u({ftpList:[],crontabList:[],termList:[],firewallList:[]}),u({site:!0,database:!0,ftp:!0,crontab:!0,terminal:!0,firewall:!0,wptools:!0,plugin:!0,runtime:!0}),i(function(){return{Ftp:{title:"FTP",icon:"ftp",dataKey:"ftpList",loadingKey:"Ftp",tooltip:"仅备份FTP账号和密码,不备份FTP目录"},Crontab:{title:"计划任务",icon:"crontab",dataKey:"crontabList",loadingKey:"Crontab"},Terminal:{title:"终端",icon:"xterm",dataKey:"termList",loadingKey:"Terminal"},Firewall:{title:"系统防火墙",icon:"firewall",dataKey:"firewallList",loadingKey:"Firewall"}}});var at=function(){var t=f(o().m(function t(){var e,r,n;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,H();case 1:e=t.v,r=e.data,ot(),r.data.task_status&&(Y.value=!0,ut()),t.n=3;break;case 2:t.p=2,n=t.v,console.log(n);case 3:return t.a(2)}},t,null,[[0,2]])}));return function(){return t.apply(this,arguments)}}(),ot=function(){U.value={status:0,progress:0,msg:"准备开始迁移",progressLog:"",remain_time:100}},ut=function(){var t=f(o().m(function t(){var e,r,n,a,u,i,s;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,M();case 1:e=t.v,r=e.data,U.value.progress=r.data.migrate_progress,U.value.progressLog=r.data.migrate_log,U.value.msg=r.data.migrate_msg,U.value.status=r.data.run_status,2!==r.data.run_status&&3!==r.data.run_status?setTimeout(function(){ut()},1e3):(2===r.data.run_status||(Q.value=r.data.err_info),B.value=r.data,r.data.task_info.panel_info&&(n=r.data.task_info.panel_info,a=n.panel_url,u=n.password,i=n.username,B.value.panel_addr=a,B.value.panel_user=i,B.value.panel_password=u),Y.value=!1,lt()),t.n=3;break;case 2:t.p=2,s=t.v,console.log(s);case 3:return t.a(2)}},t,null,[[0,2]])}));return function(){return t.apply(this,arguments)}}(),it=function(){var t=f(o().m(function t(){var e=arguments;return o().w(function(t){for(;;)switch(t.n){case 0:if(!(!(e.length>0&&void 0!==e[0])||e[0])){t.n=1;break}return t.n=1,S({title:"取消迁移",content:"取消迁移后,迁移任务将被删除,是否继续操作?"});case 1:T({loading:"正在取消迁移,请稍后...",request:R(),message:!0,success:function(t){O.success("迁移任务已取消"),Y.value=!1,U.value.status=0,U.value.msg="准备开始迁移",U.value.progress=0,U.value.progressLog=""}});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),st=function(){x({area:60,title:"迁移历史",component:function(){return k(function(){return n.import("./migrate-history-legacy.js?v=1777008528")},void 0,n.meta.url)}})},lt=function(){x({area:60,title:!1,component:function(){return k(function(){return n.import("./migrate-progress-legacy.js?v=1777008528")},void 0,n.meta.url)}})},ct={class:""},ft={class:"p-2rem"},pt={class:"w-[56rem]"},vt={key:0,class:"flex-col flex"},mt={class:"text-base"},dt={class:"mb-1.2rem mt-[0.4rem] flex items-center"},gt=c({__name:"index",setup:function(t){var r,n=[{label:"密码认证",value:"password"},{label:"私钥验证",value:"key"}],u=function(t,e,r,n){r?n():n(new Error("password"===t.value.auth_type?"请输入SSH密码":"请输入SSH私钥"))},s=L({data:function(){return{auth_type:"password",server_ip:"",ssh_port:"22",ssh_user:"",password:""}},options:function(t){return i(function(){var r=[A("密码","password",{attrs:{placeholder:"请输入SSH密码",class:"mr-4 !w-[275px]"},rules:[{required:!0,validator:function(e,r,n){return u(t,0,r,n)},trigger:["change","blur"]}]})],a=[E("私钥","password",{attrs:{placeholder:"请输入SSH私钥",class:"mr-4 !w-[275px]",autosize:{minRows:4,maxRows:4}},rules:[{required:!0,validator:function(e,r,n){return u(t,0,r,n)},trigger:["change","blur"]}]})];return[N([A("服务器IP","server_ip",{attrs:{class:"mr-[8px] !w-[180px]",placeholder:"请输入服务器IP",onInput:function(){t.value.ps=t.value.server_ip},onBlur:function(){return V(t)}},rules:[{required:!0,message:"请输入服务器IP",trigger:["change","blur"]},F()]}),A("端口","ssh_port",{attrs:{placeholder:"请输入端口",class:"!w-[84px]"},rules:[{required:!0,message:"请输入端口",trigger:["change","blur"]},C()]})]),A("账号","ssh_user",{attrs:{placeholder:"请输入SSH账号",class:"mr-4 !w-[275px]"},rules:[{required:!0,message:"请输入SSH账号",trigger:["change","blur"]}]}),K("验证方式","auth_type",n,{attrs:{class:"mr-4 !w-[275px]",onChange:function(){var e;t.value.password="",null===(e=O.value)||void 0===e||e.clearValidate()}}})].concat(e("password"===(null==t?void 0:t.value.auth_type)?r:a),[q("",[{content:"请在上方输入目标服务器的root账号信息进行迁移"},{content:"迁移后本机旧数据仍然存在"},{content:l("span",{class:"bt-link",onClick:W},[p("点击选择迁移数据(默认为全部)")])}],{attrs:{class:"ml-[6rem]"}}),N([D("迁移记录",{attrs:{class:"ml-[4rem]",onClick:st}}),D("开始迁移",{attrs:{class:"ml-[40rem]",type:"primary",onClick:S}})])])})},submit:(r=f(o().m(function t(e,r){return o().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r();case 1:$(e.value);case 2:return t.a(2)}},t)})),function(t,e){return r.apply(this,arguments)})}),c=s.BtForm,S=s.submit,O=s.ref;return v(function(){at()}),function(t,e){var r=_,n=j,o=a;return m(),d("div",ct,[l(r,{class:"!mb-[1.2rem] !text-small","show-icon":"",title:"整机迁移会自动安装宝塔面板,建议使用【全新机器】进行迁移,如有数据将会覆盖,支持不同系统之间进行迁移!",closable:!1,type:"warning"}),l(g(c)),y("div",ft,[y("div",pt,[1===g(U).status?(m(),d("div",vt,[e[1]||(e[1]=y("span",{class:"text-secondary font-bold text-base mb-[2rem]"},"迁移进度",-1)),y("span",mt,b(g(U).msg),1),y("div",dt,[l(n,{class:"w-full","text-inside":!0,"stroke-width":20,percentage:g(U).progress,status:"success"},null,8,["percentage"]),y("i",{class:"svgtofont-el-circle-close text-dangerDark !text-large pl-4px cursor-pointer",onClick:e[0]||(e[0]=function(){return g(it)&&g(it).apply(void 0,arguments)})})])])):h("",!0),1===g(U).status?(m(),w(o,{key:1,class:"h-22rem !rounded-none w-[56rem] mt-[2rem]",content:g(U).progressLog,fullScreen:{title:"全屏查看日志",onRefresh:function(){}}},null,8,["content"])):h("",!0)])])])}}}),yt=I(gt,[["__scopeId","data-v-11ad9586"]]),bt=Object.freeze(Object.defineProperty({__proto__:null,default:yt},Symbol.toStringTag,{value:"Module"}));t("i",bt)}}})}();