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-legacy481.js
!function(){function n(n){return function(n){if(Array.isArray(n))return t(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return t(n,e);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(n,e):void 0}}(n)||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(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,t,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function u(e,o,i,a){var u=o&&o.prototype instanceof l?o:l,f=Object.create(u.prototype);return r(f,"_invoke",function(e,r,o){var i,a,u,l=0,f=o||[],s=!1,p={p:0,n:0,v:n,a:d,f:d.bind(n,4),d:function(t,e){return i=t,a=0,u=n,p.n=e,c}};function d(e,r){for(a=e,u=r,t=0;!s&&l&&!o&&t<f.length;t++){var o,i=f[t],d=p.p,y=i[2];e>3?(o=y===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=d&&((o=e<2&&d<i[1])?(a=0,p.v=r,p.n=i[1]):d<y&&(o=e<3||i[0]>r||r>y)&&(i[4]=e,i[5]=r,p.n=y,a=0))}if(o||e>1)return c;throw s=!0,r}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,y),a=f,u=y;(t=a<2?n:u)||!s;){i||(a?a<3?(a>1&&(p.n=-1),d(a,u)):p.n=u:p.v=u);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=n}else if((t=(s=p.n<0)?u:e.call(r,p))!==c)break}catch(t){i=n,a=1,u=t}finally{l=1}}return{value:t,done:s}}}(e,i,a),!0),f}var c={};function l(){}function f(){}function s(){}t=Object.getPrototypeOf;var p=[][i]?t(t([][i]())):(r(t={},i,function(){return this}),t),d=s.prototype=l.prototype=Object.create(p);function y(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,s):(n.__proto__=s,r(n,a,"GeneratorFunction")),n.prototype=Object.create(d),n}return f.prototype=s,r(d,"constructor",s),r(s,"constructor",f),f.displayName="GeneratorFunction",r(s,a,"GeneratorFunction"),r(d),r(d,a,"Generator"),r(d,i,function(){return this}),r(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:u,m:y}})()}function r(n,t,e,o){var i=Object.defineProperty;try{i({},"",{})}catch(n){i=0}r=function(n,t,e,o){function a(t,e){r(n,t,function(n){return this._invoke(t,e,n)})}t?i?i(n,t,{value:e,enumerable:!o,configurable:!o,writable:!o}):n[t]=e:(a("next",0),a("throw",1),a("return",2))},r(n,t,e,o)}function o(n,t,e,r,o,i,a){try{var u=n[i](a),c=u.value}catch(n){return void e(n)}u.done?t(c):Promise.resolve(c).then(r,o)}function i(n){return function(){var t=this,e=arguments;return new Promise(function(r,i){var a=n.apply(t,e);function u(n){o(a,r,i,u,c,"next",n)}function c(n){o(a,r,i,u,c,"throw",n)}u(void 0)})}}System.register(["./index-legacy118.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./useMethod-legacy12.js?v=1777008528","./index-legacy3.js?v=1777008528","./useController-legacy19.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528","./site-legacy.js?v=1777008528","./useStore-legacy2.js?v=1777008528","./useController-legacy13.js?v=1777008528","./index-legacy192.js?v=1777008528"],function(t,r){"use strict";var o,a,u,c,l,f,s,p,d,y,m,v,b,h,g,w,j,_,k,C,B,S,O,x,T;return{setters:[function(n){o=n._},function(n){a=n.o,u=n.G,c=n.R,l=n.w,f=n.k,s=n.dc,p=n.da,d=n.cT,y=n.cU},function(n){m=n.aI,v=n.c,b=n.j,h=n.k,g=n.e,w=n.v,j=n.p},function(n){_=n.d,k=n.e,C=n.r,B=n.f},function(n){S=n.e,O=n.g,x=n.b},function(n){T=n.u},null,null,null,null,null,null,null],execute:function(){var r=m(T()),R=r.localRow,A=r.isRefreshBackupList,G=function(){var n=i(e().m(function n(t){var r,o,i,u,c;return e().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,_({s_id:R.value.id,p:t.p,limit:t.limit});case 1:return r=n.v,o=r.data,i=o.data,u=o.page,n.a(2,{data:i,total:a(u)});case 2:return n.p=2,c=n.v,console.log(c),n.a(2,{data:[],total:0})}},n,null,[[0,2]])}));return function(t){return n.apply(this,arguments)}}(),P=function(){return[{type:"button",label:"备份",active:!0,onClick:function(){f({loading:"正在备份,请稍后...",request:B({s_id:R.value.id,bak_type:3}),success:function(n){n.status&&(A.value=!0)},message:!0})}}]},E=function(){return[S(),{label:"文件名",prop:"filename",isCustom:!0,minWidth:180},{label:"文件大小",prop:"size",render:function(n){return u(Number(n.size),!0)}},{label:"备份时间",prop:"addtime",minWidth:120,render:function(n){return c(n.bak_time)}},{label:"信息",prop:"bak_type",minWidth:80,render:function(n){return 1==n.bak_type?"仅文件":2==n.bak_type?"仅DB":"完整的备份"}},O([{title:"恢复",onClick:(n=i(e().m(function n(t){return e().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,l({title:"恢复备份文件",content:"将恢复站点文件和数据库,继续吗?",onConfirm:function(){var n=i(e().m(function n(){return e().w(function(n){for(;;)switch(n.n){case 0:f({loading:"正在恢复备份文件,请稍后...",request:C({bak_id:t.id}),success:function(n){},message:!0});case 1:return n.a(2)}},n)}));return function(){return n.apply(this,arguments)}}()});case 1:return n.a(2)}},n)})),function(t){return n.apply(this,arguments)})},{title:"下载",onClick:function(n){var t="".concat(window.location.origin);window.open("".concat(t,"/download?filename=").concat(encodeURIComponent(n.bak_file)).concat(n.filename?"&amp;name=".concat(n.filename):""),"_blank","noopener,noreferrer")}},{title:"删除",onClick:function(n){var t;l({title:"删除备份文件",content:"网站备份即将被删除 【".concat(n.filename,"】,是否继续操作?"),onConfirm:(t=i(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:f({loading:"正在删除备份文件,请稍后...",request:k({bak_id:n.id}),success:function(n){n.status&&(A.value=!0)},message:!0});case 1:return t.a(2)}},t)})),function(){return t.apply(this,arguments)})})}}])];var n},I=function(){var n=i(e().m(function n(t,r,o,a){var u,c,l,f;return e().w(function(n){for(;;)switch(n.n){case 0:return u=a.label,c=a.value,l=new Map([["delete","批量删除已选的备份文件,是否继续操作?"]]),f=function(){var n=i(e().m(function n(t,r){var o,i;return e().w(function(n){for(;;)switch(n.n){case 0:o=t.id,i=c,n.n="delete"===i?1:3;break;case 1:return n.n=2,k({bak_id:o});case 2:return n.a(2,n.v);case 3:return n.a(2)}},n)}));return function(t,e){return n.apply(this,arguments)}}(),n.n=1,t({title:"批量".concat(u,"备份文件"),content:"".concat(l.get(c),",是否继续操作!"),column:[{label:"备份文件",prop:"filename"},x()],onConfirm:function(){var n=i(e().m(function n(){return e().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,r(f);case 1:return A.value=!0,n.a(2,!1)}},n)}));return function(){return n.apply(this,arguments)}}()});case 1:return n.a(2)}},n)}));return function(t,e,r,o){return n.apply(this,arguments)}}(),q={class:"p-[2rem]"};t("default",v({__name:"index",setup:function(t){var e=m(T()).isRefreshBackupList,r=s({options:P()}).BtOperation,i=y([{label:"删除",value:"delete",event:I}]),a=p({request:function(n){return G(n)},columns:E(),extension:[i,d(e)]}),u=a.BtTable,c=a.BtPage,l=(a.BtRecommendSearch,a.BtRefresh,a.BtColumn,a.BtBatch);a.BtTableCategory,a.BtErrorMask,a.tableRef,a.classList,a.refresh;return function(t,e){var i=o;return b(),h("div",q,[g(i,null,{"header-left":w(function(){return[g(j(r))]}),"header-right":w(function(){return n(e[0]||(e[0]=[]))}),content:w(function(){return[g(j(u),{"min-height":500})]}),"footer-left":w(function(){return[g(j(l))]}),"footer-right":w(function(){return[g(j(c))]}),_:1})])}}}))}}})}();