Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <33454419+MHSanaei@users.noreply.github.com>2023-03-24 16:41:29 +0300
committerMHSanaei <33454419+MHSanaei@users.noreply.github.com>2023-03-24 16:41:29 +0300
commit162349f8c83dd07eba6bc4786b225a8fe6f65b24 (patch)
treec5abba4c47baa60a3e5c1274b211e92bde7090ae /web/html/xui
parenta6dfdcdd316f53444a30ae7fa6038f252f1b20b7 (diff)
[Bulk client] add option: without random email
Diffstat (limited to 'web/html/xui')
-rw-r--r--web/html/xui/client_bulk_modal.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html
index 19fd4b18..2024fa1d 100644
--- a/web/html/xui/client_bulk_modal.html
+++ b/web/html/xui/client_bulk_modal.html
@@ -7,10 +7,11 @@
<a-form-item label='{{ i18n "pages.client.method" }}'>
<a-select v-model="clientsBulkModal.emailMethod" buttonStyle="solid" style="width: 350px" :dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''">
<a-select-option :value="0">Random</a-select-option>
- <a-select-option :value="1">Random_Prefix</a-select-option>
- <a-select-option :value="2">Random_Prefix+Num</a-select-option>
- <a-select-option :value="3">Random_Prefix+Num+Postfix</a-select-option>
- <a-select-option :value="4">Random_Prefix+Num@Telegram Username</a-select-option>
+ <a-select-option :value="1">Random+Prefix</a-select-option>
+ <a-select-option :value="2">Random+Prefix+Num</a-select-option>
+ <a-select-option :value="3">Random+Prefix+Num+Postfix</a-select-option>
+ <a-select-option :value="4">Random+Prefix+Num@Telegram Username</a-select-option>
+ <a-select-option :value="5">Prefix+Num+Postfix [ BE CAREFUL! ]</a-select-option>
</a-select>
</a-form-item><br />
<a-form-item v-if="clientsBulkModal.emailMethod>1">
@@ -91,11 +92,12 @@
start=0;
end=clientsBulkModal.quantity;
}
- prefix = (method>0 && clientsBulkModal.emailPrefix.length>0) ? "_" + clientsBulkModal.emailPrefix : "";
+ prefix = (method>0 && clientsBulkModal.emailPrefix.length>0) ? clientsBulkModal.emailPrefix : "";
useNum=(method>1);
postfix = (method>2 && clientsBulkModal.emailPostfix.length>0) ? (method == 4 ? "@" : "") + clientsBulkModal.emailPostfix : "";
for (let i = start; i < end; i++) {
newClient = clientsBulkModal.newClient(clientsBulkModal.dbInbound.protocol);
+ if(method==5) newClient.email = "";
newClient.email += useNum ? prefix + i.toString() + postfix : prefix + postfix;
newClient._totalGB = clientsBulkModal.totalGB;
newClient._expiryTime = clientsBulkModal.expiryTime;