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/index572.js
import{_ as D}from"./index109.js?v=1777008528";import{_ as P}from"./index119.js?v=1777008528";import{M as I,bK as S,ar as b,Z as k,t as h,J as w,w as C,S as y,q as A}from"./utils-lib.js?v=1777008528";import{r as d,o as B,W as L,e as c,c as O,v as T,I as x,x as R,y as $,C as p,J as E,z as i}from"./base-lib.js?v=1777008528";import{u as U}from"./column.js?v=1777008528";import{u as N}from"./useStore3.js?v=1777008528";import{getPhpSiteSafeLog as J,addPhpSiteIpWhite as W,addPhpSiteSafeWhite as H}from"./site.js?v=1777008528";const{siteInfo:M}=N();d();const _=d(),u=d(),a=B({list:[],p:1,limit:10,total:100,load:!1}),V=()=>L([{label:"时间",prop:"addtime",render:e=>c("div",{class:"flex !items-center inline-block truncate"},[k(e.addtime)])},{label:"用户IP",prop:"address",render:e=>c("div",{class:"bt-link truncate",onClick:()=>{z(e)}},[e.address])},{label:"恶意类型",prop:"intercept"},{label:"url地址",prop:"url",width:270},U([{onClick:e=>{F(e)},title:"URL加白",width:80},{onClick:q,title:"详情"},{onClick:G,title:"HTTP"}])]),q=async e=>{u.value={data:e},h({title:"【".concat(e.address,"】详情"),area:60,isAsync:!0,component:()=>w(()=>import("./log-detail4.js?v=1777008528"),__vite__mapDeps([]),import.meta.url),showFooter:!1})},z=async e=>{await C({title:"加入IP白名单",width:"35rem",icon:"warning-filled",content:"是否将【".concat(e.address,"】添加到IP白名单?")}),y({loading:"正在加入IP白名单,请稍后...",request:W({start_ip:e.address,end_ip:e.address}),message:!0})},F=async e=>{await C({title:"加入URL白名单",width:"35rem",icon:"warning-filled",content:"加入URL白名单后此URL将不再进行防御,是否继续操作?"}),y({loading:"正在加入URL白名单,请稍后...",request:H({url_rule:e.url}),message:!0})},G=async e=>{u.value={data:e},h({title:"【".concat(e.address,"】HTTP详情"),area:80,isAsync:!0,component:()=>w(()=>import("./http-detail2.js?v=1777008528"),__vite__mapDeps([]),import.meta.url),showFooter:!1})},K=async()=>{a.load=!1;try{a.load=!0;const e=await J({siteName:M.value.name,p:a.p,rows:a.limit});e.status||I.error(e.msg),a.list=S(e.data.data,"array",[]),a.total=b(e.data.page)}catch(e){}finally{a.load=!1}},Z=V(),Q=e=>{var r;_.value=e,a.list=((r=_.value)==null?void 0:r.data)||[],a.total=b(_.value.page)},X=d(""),Y=(e,r)=>{let t=null,l="",s=0,f="  ";return r=r||{},r.newlineAfterColonIfBeforeBraceOrBracket=r.newlineAfterColonIfBeforeBraceOrBracket===!0,r.spaceAfterColon=r.spaceAfterColon!==!1,typeof e!="string"||(e=JSON.parse(e)),e=JSON.stringify(e),t=/([\{\}])/g,e=e.replace(t,"\r\n$1\r\n"),t=/([\[\]])/g,e=e.replace(t,"\r\n$1\r\n"),t=/(\,)/g,e=e.replace(t,"$1\r\n"),t=/(\r\n\r\n)/g,e=e.replace(t,"\r\n"),t=/\r\n\,/g,e=e.replace(t,","),r.newlineAfterColonIfBeforeBraceOrBracket||(t=/\:\r\n\{/g,e=e.replace(t,":{"),t=/\:\r\n\[/g,e=e.replace(t,":[")),r.spaceAfterColon&&(t=/\:/g,e=e.replace(t,": ")),e.split("\r\n").forEach(function(o,m){var n=0,g=0,v="";for(o.match(/\{$/)||o.match(/\[$/)?g=1:o.match(/\}/)||o.match(/\]/)?s!==0&&(s-=1):g=0,n=0;n<s;n++)v+=f;l+=v+o+"\r\n",s+=g}),l},ce=()=>{X.value=Y(u.value.data)},j=d({}),de=()=>{j.value=u.value.data},ee={class:"relative p-[16px]"},te=O({__name:"index",props:{compData:{default:()=>({})}},setup(e){const r=e;return T(()=>{Q(r.compData)}),(t,l)=>{const s=A,f=P,o=D,m=x("bt-loading");return R(),$("div",ee,[c(o,null,{"header-left":p(()=>[...l[3]||(l[3]=[])]),"header-right":p(()=>[...l[4]||(l[4]=[])]),content:p(()=>[E(c(s,{ref:"ftpTable",column:i(Z),"max-height":360,data:i(a).list,description:"暂无数据"},null,8,["column","data"]),[[m,i(a).load],[m,"正在加载中,请稍后...","title"]])]),"footer-right":p(()=>[c(f,{page:i(a).p,"onUpdate:page":l[0]||(l[0]=n=>i(a).p=n),row:i(a).limit,"onUpdate:row":l[1]||(l[1]=n=>i(a).limit=n),total:i(a).total,onChange:l[2]||(l[2]=n=>i(K)())},null,8,["page","row","total"])]),_:1})])}}}),pe=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}));export{z as a,u as b,F as c,ce as d,X as e,pe as f,de as i,j as l};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}