[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 4243.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4243],{4243:(e,l,t)=>{t.r(l),t.d(l,{default:()=>J});var a=t(9726),r={id:"mail",class:"db-card db-tab-div active"},o={class:"db-card-header"},i={class:"db-card-title"},n={class:"db-card-body"},m={class:"form-row"},s={class:"form-col-12 sm:form-col-6"},d={for:"mail_host",class:"db-field-title required"},c={key:0,class:"db-field-alert"},f={class:"form-col-12 sm:form-col-6"},u={for:"mail_port",class:"db-field-title required"},p={key:0,class:"db-field-alert"},_={class:"form-col-12 sm:form-col-6"},b={for:"mail_username",class:"db-field-title required"},v={key:0,class:"db-field-alert"},y={class:"form-col-12 sm:form-col-6"},V={for:"mail_password",class:"db-field-title"},E={key:0,class:"db-field-alert"},N={class:"form-col-12 sm:form-col-6"},h={for:"mail_from_name",class:"db-field-title required"},g={key:0,class:"db-field-alert"},S={class:"form-col-12 sm:form-col-6"},k={for:"mail_from_email",class:"db-field-title required"},w={key:0,class:"db-field-alert"},D={class:"form-col-12 sm:form-col-6"},C={class:"db-field-title required",for:"active"},B={class:"db-field-radio-group"},$={class:"db-field-radio"},A={class:"custom-radio"},x=["value"],M={for:"ssl",class:"db-field-label"},T={class:"db-field-radio"},L={class:"custom-radio"},U=["value"],z={for:"tls",class:"db-field-label"},q={key:0,class:"db-field-alert"},j={class:"form-col-12"},P={type:"submit",class:"db-btn text-white bg-primary"};var F=t(5475),O=t(9856);const R=Object.freeze({SSL:"ssl",TLS:"tls"});function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function H(e,l,t){return(l=function(e){var l=function(e,l){if("object"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,l||"default");if("object"!=G(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===l?String:Number)(e)}(e,"string");return"symbol"==G(l)?l:l+""}(l))in e?Object.defineProperty(e,l,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[l]=t,e}const I={name:"MailComponent",components:{LoadingComponent:F.A},data:function(){return{loading:{isActive:!1},enums:{encryptionEnum:R,encryptionEnumArray:H(H({},R.SSL,this.$t("label.ssl")),R.TLS,this.$t("label.tls"))},form:{mail_host:"",mail_port:"",mail_username:"",mail_password:"",mail_encryption:"",mail_from_name:"",mail_from_email:""},errors:{}}},mounted:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("mail/lists").then(function(l){e.form={mail_host:l.data.data.mail_host,mail_port:l.data.data.mail_port,mail_username:l.data.data.mail_username,mail_password:l.data.data.mail_password,mail_encryption:l.data.data.mail_encryption,mail_from_name:l.data.data.mail_from_name,mail_from_email:l.data.data.mail_from_email},e.loading.isActive=!1}).catch(function(l){e.loading.isActive=!1})}catch(e){this.loading.isActive=!1,O.A.error(e)}},methods:{save:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("mail/save",this.form).then(function(l){var t;e.loading.isActive=!1,O.A.successFlip(null!==(t="put"===l.config.method)&&void 0!==t?t:0,e.$t("menu.mail")),e.errors={}}).catch(function(l){e.loading.isActive=!1,e.errors=l.response.data.errors})}catch(e){this.loading.isActive=!1,O.A.error(e)}}}};const J=(0,t(6262).A)(I,[["render",function(e,l,t,F,O,R){var G=(0,a.resolveComponent)("LoadingComponent");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(G,{props:O.loading},null,8,["props"]),(0,a.createElementVNode)("div",r,[(0,a.createElementVNode)("div",o,[(0,a.createElementVNode)("h3",i,(0,a.toDisplayString)(e.$t("menu.mail")),1)]),(0,a.createElementVNode)("div",n,[(0,a.createElementVNode)("form",{onSubmit:l[8]||(l[8]=(0,a.withModifiers)(function(){return R.save&&R.save.apply(R,arguments)},["prevent"])),class:"w-full d-block"},[(0,a.createElementVNode)("div",m,[(0,a.createElementVNode)("div",s,[(0,a.createElementVNode)("label",d,(0,a.toDisplayString)(e.$t("label.mail_host")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":l[0]||(l[0]=function(e){return O.form.mail_host=e}),class:(0,a.normalizeClass)([O.errors.mail_host?"invalid":"","db-field-control"]),type:"text",id:"mail_host"},null,2),[[a.vModelText,O.form.mail_host]]),O.errors.mail_host?((0,a.openBlock)(),(0,a.createElementBlock)("small",c,(0,a.toDisplayString)(O.errors.mail_host[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",f,[(0,a.createElementVNode)("label",u,(0,a.toDisplayString)(e.$t("label.mail_port")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":l[1]||(l[1]=function(e){return O.form.mail_port=e}),class:(0,a.normalizeClass)([O.errors.mail_port?"invalid":"","db-field-control"]),type:"text",id:"mail_port"},null,2),[[a.vModelText,O.form.mail_port]]),O.errors.mail_port?((0,a.openBlock)(),(0,a.createElementBlock)("small",p,(0,a.toDisplayString)(O.errors.mail_port[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",_,[(0,a.createElementVNode)("label",b,(0,a.toDisplayString)(e.$t("label.mail_username")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":l[2]||(l[2]=function(e){return O.form.mail_username=e}),class:(0,a.normalizeClass)([O.errors.mail_username?"invalid":"","db-field-control"]),type:"text",id:"mail_username"},null,2),[[a.vModelText,O.form.mail_username]]),O.errors.mail_username?((0,a.openBlock)(),(0,a.createElementBlock)("small",v,(0,a.toDisplayString)(O.errors.mail_username[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",y,[(0,a.createElementVNode)("label",V,(0,a.toDisplayString)(e.$t("label.mail_password")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":l[3]||(l[3]=function(e){return O.form.mail_password=e}),class:(0,a.normalizeClass)([O.errors.mail_password?"invalid":"","db-field-control"]),type:"text",id:"mail_password"},null,2),[[a.vModelText,O.form.mail_password]]),O.errors.mail_password?((0,a.openBlock)(),(0,a.createElementBlock)("small",E,(0,a.toDisplayString)(O.errors.mail_password[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",N,[(0,a.createElementVNode)("label",h,(0,a.toDisplayString)(e.$t("label.mail_from_name")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":l[4]||(l[4]=function(e){return O.form.mail_from_name=e}),class:(0,a.normalizeClass)([O.errors.mail_from_name?"invalid":"","db-field-control"]),type:"text",id:"mail_from_name"},null,2),[[a.vModelText,O.form.mail_from_name]]),O.errors.mail_from_name?((0,a.openBlock)(),(0,a.createElementBlock)("small",g,(0,a.toDisplayString)(O.errors.mail_from_name[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",S,[(0,a.createElementVNode)("label",k,(0,a.toDisplayString)(e.$t("label.mail_from_email")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":l[5]||(l[5]=function(e){return O.form.mail_from_email=e}),class:(0,a.normalizeClass)([O.errors.mail_from_email?"invalid":"","db-field-control"]),type:"text",id:"mail_from_email"},null,2),[[a.vModelText,O.form.mail_from_email]]),O.errors.mail_from_email?((0,a.openBlock)(),(0,a.createElementBlock)("small",w,(0,a.toDisplayString)(O.errors.mail_from_email[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",D,[(0,a.createElementVNode)("label",C,(0,a.toDisplayString)(e.$t("label.mail_encryption")),1),(0,a.createElementVNode)("div",B,[(0,a.createElementVNode)("div",$,[(0,a.createElementVNode)("div",A,[(0,a.withDirectives)((0,a.createElementVNode)("input",{value:O.enums.encryptionEnum.SSL,"onUpdate:modelValue":l[6]||(l[6]=function(e){return O.form.mail_encryption=e}),id:"ssl",type:"radio",class:"custom-radio-field"},null,8,x),[[a.vModelRadio,O.form.mail_encryption]]),l[9]||(l[9]=(0,a.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,a.createElementVNode)("label",M,(0,a.toDisplayString)(e.$t("label.ssl")),1)]),(0,a.createElementVNode)("div",T,[(0,a.createElementVNode)("div",L,[(0,a.withDirectives)((0,a.createElementVNode)("input",{value:O.enums.encryptionEnum.TLS,"onUpdate:modelValue":l[7]||(l[7]=function(e){return O.form.mail_encryption=e}),type:"radio",id:"tls",class:"custom-radio-field"},null,8,U),[[a.vModelRadio,O.form.mail_encryption]]),l[10]||(l[10]=(0,a.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,a.createElementVNode)("label",z,(0,a.toDisplayString)(e.$t("label.tls")),1)])]),O.errors.mail_encryption?((0,a.openBlock)(),(0,a.createElementBlock)("small",q,(0,a.toDisplayString)(O.errors.mail_encryption[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",j,[(0,a.createElementVNode)("button",P,[l[11]||(l[11]=(0,a.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.save")),1)])])])],32)])])],64)}]])}}]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285