From eb1d804a4dbc00a7495857a30fbcf2c51492dfa5 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Wed, 23 Oct 2024 08:28:00 +0100 Subject: [PATCH 01/54] patch update make settings form individual to reduce conflicts --- system/controllers/settings.php | 2 +- ui/ui/app-settings.tpl | 60 ++++++++++++++++++++++++++++++--- 2 files changed, 57 insertions(+), 5 deletions(-) diff --git a/system/controllers/settings.php b/system/controllers/settings.php index 2220f50a..3d084e5b 100644 --- a/system/controllers/settings.php +++ b/system/controllers/settings.php @@ -145,7 +145,7 @@ switch ($action) { r2(U . 'settings/app', 'e', 'PHP GD is not installed'); } } - if ($company == '') { + if ($_POST['general'] && $company == '') { r2(U . 'settings/app', 'e', Lang::T('All field is required')); } else { if ($radius_enable) { diff --git a/ui/ui/app-settings.tpl b/ui/ui/app-settings.tpl index b578ec9f..dcda7509 100644 --- a/ui/ui/app-settings.tpl +++ b/ui/ui/app-settings.tpl @@ -120,12 +120,17 @@ {Lang::T('Income will reset every this day')} - + + + +
+
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+

{Lang::T('Must include')} [text] & [number], - {Lang::T('it will be replaced.')} + {Lang::T('it will be replaced.')}

{Lang::T('You can use')} WhatsApp {Lang::T('in here too.')} {Lang::T('Free @@ -563,7 +594,10 @@ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 8ae88adc17678f0162817e49bb4470531072a425 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:11:54 +0700 Subject: [PATCH 04/54] Update hotspot-add.tpl --- ui/ui/hotspot-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/hotspot-add.tpl b/ui/ui/hotspot-add.tpl index ee01b1aa..b6b5512d 100644 --- a/ui/ui/hotspot-add.tpl +++ b/ui/ui/hotspot-add.tpl @@ -203,7 +203,7 @@
- + Or {Lang::T('Cancel')}
From 7339be29f84e432274a0a55c803689f255ca19b1 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:13:14 +0700 Subject: [PATCH 05/54] Update balance-add.tpl --- ui/ui/balance-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/balance-add.tpl b/ui/ui/balance-add.tpl index ea1dfc93..d20e8cd9 100644 --- a/ui/ui/balance-add.tpl +++ b/ui/ui/balance-add.tpl @@ -46,7 +46,7 @@
- + Or {Lang::T('Cancel')}
From a6df867ca176d72728e5ad27bb09a9accbf4a83f Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:14:20 +0700 Subject: [PATCH 06/54] Update deposit.tpl --- ui/ui/deposit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/deposit.tpl b/ui/ui/deposit.tpl index 68566ece..a1a0a4c4 100644 --- a/ui/ui/deposit.tpl +++ b/ui/ui/deposit.tpl @@ -46,7 +46,7 @@
- Or {Lang::T('Cancel')}
From b313f1de367cc03e2d56e27e03c962d1224c9140 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:15:31 +0700 Subject: [PATCH 07/54] Update bandwidth-add.tpl --- ui/ui/bandwidth-add.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui/bandwidth-add.tpl b/ui/ui/bandwidth-add.tpl index 8aec8cdb..184eec7e 100644 --- a/ui/ui/bandwidth-add.tpl +++ b/ui/ui/bandwidth-add.tpl @@ -69,7 +69,7 @@
- + Or {Lang::T('Cancel')}
@@ -128,4 +128,4 @@ function burstIt(value) { } -{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"} From 46a83d4e302a52558011ef370ff7847dc70e1f86 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:16:52 +0700 Subject: [PATCH 08/54] Update customers-add.tpl --- ui/ui/customers-add.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui/customers-add.tpl b/ui/ui/customers-add.tpl index 7fd31318..f42a02ce 100644 --- a/ui/ui/customers-add.tpl +++ b/ui/ui/customers-add.tpl @@ -203,7 +203,7 @@
-
{Lang::T('Cancel')} @@ -312,4 +312,4 @@ {/literal} -{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"} From 53885a6f7d3e1f3373a659416497e37b02f95b55 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:17:55 +0700 Subject: [PATCH 09/54] Update language-add.tpl --- ui/ui/language-add.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui/language-add.tpl b/ui/ui/language-add.tpl index c2f592c0..3de901b9 100644 --- a/ui/ui/language-add.tpl +++ b/ui/ui/language-add.tpl @@ -18,7 +18,7 @@ {/foreach}
- Or {Lang::T('Cancel')}
@@ -29,4 +29,4 @@
-{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"} From 14f95590330e20709fefd3d3ea29d3a1c137ba14 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:19:48 +0700 Subject: [PATCH 10/54] Update message-bulk.tpl --- ui/ui/message-bulk.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/message-bulk.tpl b/ui/ui/message-bulk.tpl index 3dc59c12..a7626f5b 100644 --- a/ui/ui/message-bulk.tpl +++ b/ui/ui/message-bulk.tpl @@ -77,7 +77,7 @@
- {Lang::T('Cancel')}
From 766c2c268e753c5a12fa2d6b6ab239ffacd734e5 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:20:28 +0700 Subject: [PATCH 11/54] Update message.tpl --- ui/ui/message.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/message.tpl b/ui/ui/message.tpl index 569bd695..dd7ac21a 100644 --- a/ui/ui/message.tpl +++ b/ui/ui/message.tpl @@ -50,7 +50,7 @@
- + {Lang::T('Cancel')}
From 44d091cae800d3f848feeb5e28117dc9bd32a50f Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:21:38 +0700 Subject: [PATCH 12/54] Update plan-edit.tpl --- ui/ui/plan-edit.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui/plan-edit.tpl b/ui/ui/plan-edit.tpl index cb85d3c1..ee3fa33b 100644 --- a/ui/ui/plan-edit.tpl +++ b/ui/ui/plan-edit.tpl @@ -58,7 +58,7 @@
- + Or {Lang::T('Cancel')}
@@ -68,4 +68,4 @@
-{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"} From b4907ed66136ad7eed9cda1ad1b3d7972f059ff8 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:23:13 +0700 Subject: [PATCH 13/54] Update pool-add.tpl --- ui/ui/pool-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/pool-add.tpl b/ui/ui/pool-add.tpl index 8e850a1a..e98ea1bc 100644 --- a/ui/ui/pool-add.tpl +++ b/ui/ui/pool-add.tpl @@ -40,7 +40,7 @@
- + Or {Lang::T('Cancel')}
From b7aee6f91cc40689a204aca223be614822f983ca Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:24:11 +0700 Subject: [PATCH 14/54] Update pppoe-edit.tpl --- ui/ui/pppoe-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/pppoe-edit.tpl b/ui/ui/pppoe-edit.tpl index 3b52428c..ff181ae5 100644 --- a/ui/ui/pppoe-edit.tpl +++ b/ui/ui/pppoe-edit.tpl @@ -214,7 +214,7 @@
- + Or {Lang::T('Cancel')}
From b375460789e794b43c316e60569eb2ae60ed768e Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:24:56 +0700 Subject: [PATCH 15/54] Update pppoe-add.tpl --- ui/ui/pppoe-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/pppoe-add.tpl b/ui/ui/pppoe-add.tpl index 1c5d54d0..1602499f 100644 --- a/ui/ui/pppoe-add.tpl +++ b/ui/ui/pppoe-add.tpl @@ -147,7 +147,7 @@
- + Or {Lang::T('Cancel')}
From 9d6cd6756cbab858385269ae667daa5a407b7b1b Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:25:40 +0700 Subject: [PATCH 16/54] Update port-edit.tpl --- ui/ui/port-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/port-edit.tpl b/ui/ui/port-edit.tpl index 46413314..daaba21e 100644 --- a/ui/ui/port-edit.tpl +++ b/ui/ui/port-edit.tpl @@ -35,7 +35,7 @@
- + Or {Lang::T('Cancel')}
From 676caec8ca07c1e22df407bd13cae8096704dc20 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:26:53 +0700 Subject: [PATCH 17/54] Update port-add.tpl --- ui/ui/port-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/port-add.tpl b/ui/ui/port-add.tpl index b689a896..48af4fe3 100644 --- a/ui/ui/port-add.tpl +++ b/ui/ui/port-add.tpl @@ -37,7 +37,7 @@
- + Or {Lang::T('Cancel')}
From bcff2253ee3a040b59ac8f7bd4f2f7bbc7a2e9b5 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:28:42 +0700 Subject: [PATCH 18/54] Update pool-edit.tpl --- ui/ui/pool-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/pool-edit.tpl b/ui/ui/pool-edit.tpl index 6e0f722f..de4e490b 100644 --- a/ui/ui/pool-edit.tpl +++ b/ui/ui/pool-edit.tpl @@ -38,7 +38,7 @@
- + Or {Lang::T('Cancel')}
From 0f59250215512c863f106dd516934b7501284f18 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:32:21 +0700 Subject: [PATCH 19/54] Update vpn-add.tpl --- ui/ui/vpn-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/vpn-add.tpl b/ui/ui/vpn-add.tpl index ae26a8ac..10b41bd3 100644 --- a/ui/ui/vpn-add.tpl +++ b/ui/ui/vpn-add.tpl @@ -134,7 +134,7 @@
- + Or {Lang::T('Cancel')}
From 6f4f788d8f3a166bcf3375df9e0ba4c58cd16441 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:33:01 +0700 Subject: [PATCH 20/54] Update vpn-edit.tpl --- ui/ui/vpn-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/vpn-edit.tpl b/ui/ui/vpn-edit.tpl index c82b3f34..ab80cf18 100644 --- a/ui/ui/vpn-edit.tpl +++ b/ui/ui/vpn-edit.tpl @@ -214,7 +214,7 @@
- + Or {Lang::T('Cancel')}
From 544706d82ec111aaaf6115b8637736577d7e2411 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:34:40 +0700 Subject: [PATCH 21/54] Update voucher-add.tpl --- ui/ui/voucher-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/voucher-add.tpl b/ui/ui/voucher-add.tpl index e8d0eaa5..3c22ce53 100644 --- a/ui/ui/voucher-add.tpl +++ b/ui/ui/voucher-add.tpl @@ -73,7 +73,7 @@
- +
From bcb39f114ae9a4f409a63eb86684f528f619062e Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:35:28 +0700 Subject: [PATCH 22/54] Update routers-edit.tpl --- ui/ui/routers-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/routers-edit.tpl b/ui/ui/routers-edit.tpl index 52e9c97c..f6f4bebb 100644 --- a/ui/ui/routers-edit.tpl +++ b/ui/ui/routers-edit.tpl @@ -78,7 +78,7 @@
- + Or {Lang::T('Cancel')}
From 575ef1c11755f048de5741b1afb8e7151bd0b303 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:36:49 +0700 Subject: [PATCH 23/54] Update routers-add.tpl --- ui/ui/routers-add.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui/routers-add.tpl b/ui/ui/routers-add.tpl index 5fab1556..1239c757 100644 --- a/ui/ui/routers-add.tpl +++ b/ui/ui/routers-add.tpl @@ -61,8 +61,8 @@
- + Or {Lang::T('Cancel')}
From 71cc8290a3634ae7aac761799326ca81d8a82865 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:37:39 +0700 Subject: [PATCH 24/54] Update admin-add.tpl --- ui/ui/admin-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/admin-add.tpl b/ui/ui/admin-add.tpl index fd9abae9..85f97caf 100644 --- a/ui/ui/admin-add.tpl +++ b/ui/ui/admin-add.tpl @@ -101,7 +101,7 @@
- + Or {Lang::T('Cancel')}
From 495da312a88daf762807c67e4f71990a9ed3284c Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:38:15 +0700 Subject: [PATCH 25/54] Update admin-edit.tpl --- ui/ui/admin-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/admin-edit.tpl b/ui/ui/admin-edit.tpl index 785dd528..c360ba94 100644 --- a/ui/ui/admin-edit.tpl +++ b/ui/ui/admin-edit.tpl @@ -126,7 +126,7 @@
- + Or {Lang::T('Cancel')}
From da541595a4bf0decd03567012dbf0df86d6acc73 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:39:25 +0700 Subject: [PATCH 26/54] Update bandwidth-edit.tpl --- ui/ui/bandwidth-edit.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui/bandwidth-edit.tpl b/ui/ui/bandwidth-edit.tpl index 2ee46470..b992cd81 100644 --- a/ui/ui/bandwidth-edit.tpl +++ b/ui/ui/bandwidth-edit.tpl @@ -86,7 +86,7 @@
- + Or {Lang::T('Cancel')}
@@ -145,4 +145,4 @@ } -{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"} From e7f4c886482e897445f4e3c44c7a2acd71be8068 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:40:08 +0700 Subject: [PATCH 27/54] Update bandwidth-add.tpl --- ui/ui/bandwidth-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/bandwidth-add.tpl b/ui/ui/bandwidth-add.tpl index 184eec7e..af6b1fee 100644 --- a/ui/ui/bandwidth-add.tpl +++ b/ui/ui/bandwidth-add.tpl @@ -69,7 +69,7 @@
- + Or {Lang::T('Cancel')}
From 0c2249daf969c92f66c093d616f9f998b7b4641f Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:41:36 +0700 Subject: [PATCH 28/54] Update balance-edit.tpl --- ui/ui/balance-edit.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui/balance-edit.tpl b/ui/ui/balance-edit.tpl index d26ff488..50961333 100644 --- a/ui/ui/balance-edit.tpl +++ b/ui/ui/balance-edit.tpl @@ -55,7 +55,7 @@
- + Or {Lang::T('Cancel')}
@@ -65,4 +65,4 @@ -{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"} From d8894ab296e193bdb1588216304d1c20ee85ce72 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:42:19 +0700 Subject: [PATCH 29/54] Update balance-add.tpl --- ui/ui/balance-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/balance-add.tpl b/ui/ui/balance-add.tpl index d20e8cd9..d6459171 100644 --- a/ui/ui/balance-add.tpl +++ b/ui/ui/balance-add.tpl @@ -46,7 +46,7 @@
- + Or {Lang::T('Cancel')}
From 853af04362b568f1ed4f38bb8a594459c7a356ac Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:48:03 +0700 Subject: [PATCH 30/54] Update customers-edit.tpl --- ui/ui/customers-edit.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui/customers-edit.tpl b/ui/ui/customers-edit.tpl index 05b8b1bd..d85a26df 100644 --- a/ui/ui/customers-edit.tpl +++ b/ui/ui/customers-edit.tpl @@ -226,7 +226,7 @@
-
{Lang::T('Cancel')} @@ -310,4 +310,4 @@ {/literal} -{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"} From c617bb9a4da342bf9323e1310a7e95fc23d16a40 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:48:55 +0700 Subject: [PATCH 31/54] Update customers-add.tpl --- ui/ui/customers-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/customers-add.tpl b/ui/ui/customers-add.tpl index f42a02ce..893fe24e 100644 --- a/ui/ui/customers-add.tpl +++ b/ui/ui/customers-add.tpl @@ -203,7 +203,7 @@
-
{Lang::T('Cancel')} From 434d7d8cf92cde1f5a51b932be12633598904cad Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:49:53 +0700 Subject: [PATCH 32/54] Update deposit.tpl --- ui/ui/deposit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/deposit.tpl b/ui/ui/deposit.tpl index a1a0a4c4..ba253e2d 100644 --- a/ui/ui/deposit.tpl +++ b/ui/ui/deposit.tpl @@ -46,7 +46,7 @@
- Or {Lang::T('Cancel')}
From 3adfd2f2c392b6b3a91878dc9ae062917d521134 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:52:36 +0700 Subject: [PATCH 33/54] Update hotspot-edit.tpl --- ui/ui/hotspot-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/hotspot-edit.tpl b/ui/ui/hotspot-edit.tpl index cdf9b055..78704fef 100644 --- a/ui/ui/hotspot-edit.tpl +++ b/ui/ui/hotspot-edit.tpl @@ -278,7 +278,7 @@
- + Or {Lang::T('Cancel')}
From b835520ccf1df835ea586a0fdab205dacf7d6c01 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:53:25 +0700 Subject: [PATCH 34/54] Update hotspot-add.tpl --- ui/ui/hotspot-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/hotspot-add.tpl b/ui/ui/hotspot-add.tpl index b6b5512d..55462816 100644 --- a/ui/ui/hotspot-add.tpl +++ b/ui/ui/hotspot-add.tpl @@ -203,7 +203,7 @@
- + Or {Lang::T('Cancel')}
From fe41b92a7cd2a03e249c69916476910cf1f8a7e7 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:54:19 +0700 Subject: [PATCH 35/54] Update hotspot-edit.tpl --- ui/ui/hotspot-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/hotspot-edit.tpl b/ui/ui/hotspot-edit.tpl index 78704fef..47199861 100644 --- a/ui/ui/hotspot-edit.tpl +++ b/ui/ui/hotspot-edit.tpl @@ -278,7 +278,7 @@
- + Or {Lang::T('Cancel')}
From 954a892f8672f07f400a1622034489ec9b714ef4 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:55:31 +0700 Subject: [PATCH 36/54] Update language-add.tpl --- ui/ui/language-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/language-add.tpl b/ui/ui/language-add.tpl index 3de901b9..88a65cf4 100644 --- a/ui/ui/language-add.tpl +++ b/ui/ui/language-add.tpl @@ -18,7 +18,7 @@ {/foreach}
- Or {Lang::T('Cancel')}
From ba729f44fcc589872ecf82f9316302912be140e8 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:58:46 +0700 Subject: [PATCH 37/54] Update plan-edit.tpl From 60188c736b0a0d3853f680e8fb41fa4748113045 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:03:40 +0700 Subject: [PATCH 38/54] Update voucher-add.tpl --- ui/ui/voucher-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/voucher-add.tpl b/ui/ui/voucher-add.tpl index 3c22ce53..4e579681 100644 --- a/ui/ui/voucher-add.tpl +++ b/ui/ui/voucher-add.tpl @@ -73,7 +73,7 @@
- +
From 8347a982c57fce88407861e01f3579da3a4b83c2 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:04:24 +0700 Subject: [PATCH 39/54] Update routers-edit.tpl --- ui/ui/routers-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/routers-edit.tpl b/ui/ui/routers-edit.tpl index f6f4bebb..515edf52 100644 --- a/ui/ui/routers-edit.tpl +++ b/ui/ui/routers-edit.tpl @@ -78,7 +78,7 @@
- + Or {Lang::T('Cancel')}
From 8c5ed98f09826e6358371d8e300abedd506cb71e Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:05:33 +0700 Subject: [PATCH 40/54] Update refill.tpl --- ui/ui/refill.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui/refill.tpl b/ui/ui/refill.tpl index aab1800a..b0e0ac4a 100644 --- a/ui/ui/refill.tpl +++ b/ui/ui/refill.tpl @@ -24,7 +24,7 @@
- Or {Lang::T('Cancel')}
@@ -36,4 +36,4 @@
-{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"} From 859e0ce6af614e99ea30bf1e920ff9458409e7b9 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:06:14 +0700 Subject: [PATCH 41/54] Update recharge.tpl --- ui/ui/recharge.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/recharge.tpl b/ui/ui/recharge.tpl index 96370d58..e9404dd4 100644 --- a/ui/ui/recharge.tpl +++ b/ui/ui/recharge.tpl @@ -59,7 +59,7 @@
- {Lang::T('Or')} {Lang::T('Cancel')}
From 2b3d3a67963096c90b5d28137cee05709dec8898 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:07:41 +0700 Subject: [PATCH 42/54] Update radius-nas-edit.tpl --- ui/ui/radius-nas-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/radius-nas-edit.tpl b/ui/ui/radius-nas-edit.tpl index 0c185fae..90f779a9 100644 --- a/ui/ui/radius-nas-edit.tpl +++ b/ui/ui/radius-nas-edit.tpl @@ -71,7 +71,7 @@
- Or {Lang::T('Cancel')}
From ee52a2ec1edd215e72d706241f7261a9261c873c Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:08:31 +0700 Subject: [PATCH 43/54] Update radius-nas-add.tpl --- ui/ui/radius-nas-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/radius-nas-add.tpl b/ui/ui/radius-nas-add.tpl index 2215bf35..2d61f586 100644 --- a/ui/ui/radius-nas-add.tpl +++ b/ui/ui/radius-nas-add.tpl @@ -71,7 +71,7 @@
- Or {Lang::T('Cancel')}
From 717f29c95ddf8119939305f91b14007f0e17f286 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:09:35 +0700 Subject: [PATCH 44/54] Update pppoe-edit.tpl --- ui/ui/pppoe-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/pppoe-edit.tpl b/ui/ui/pppoe-edit.tpl index ff181ae5..c7d8ea9d 100644 --- a/ui/ui/pppoe-edit.tpl +++ b/ui/ui/pppoe-edit.tpl @@ -214,7 +214,7 @@
- + Or {Lang::T('Cancel')}
From 7c42ab5b89381ae5ac72024494b846dcb6b14077 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:11:49 +0700 Subject: [PATCH 45/54] Update pppoe-add.tpl --- ui/ui/pppoe-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/pppoe-add.tpl b/ui/ui/pppoe-add.tpl index 1602499f..9c863e9a 100644 --- a/ui/ui/pppoe-add.tpl +++ b/ui/ui/pppoe-add.tpl @@ -147,7 +147,7 @@
- + Or {Lang::T('Cancel')}
From 6bb9b001dc8f933e93df9198938d310b69024cd6 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:12:36 +0700 Subject: [PATCH 46/54] Update port-edit.tpl From 244e552eb6366b409f2735d938b67af00f732194 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:25:47 +0700 Subject: [PATCH 47/54] Update port-add.tpl --- ui/ui/port-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/port-add.tpl b/ui/ui/port-add.tpl index 48af4fe3..1f175fbe 100644 --- a/ui/ui/port-add.tpl +++ b/ui/ui/port-add.tpl @@ -37,7 +37,7 @@
- + Or {Lang::T('Cancel')}
From d14599f720bc660432b473d1a7d9fc1eb4c4afe9 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:26:43 +0700 Subject: [PATCH 48/54] Update pool-edit.tpl --- ui/ui/pool-edit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/pool-edit.tpl b/ui/ui/pool-edit.tpl index de4e490b..a43c15ee 100644 --- a/ui/ui/pool-edit.tpl +++ b/ui/ui/pool-edit.tpl @@ -38,7 +38,7 @@
- + Or {Lang::T('Cancel')}
From 36162381cb26bf0b0b8fafa692f226b9e7dc4202 Mon Sep 17 00:00:00 2001 From: Ahmad Husein <48185559+ahmadhusein17@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:27:44 +0700 Subject: [PATCH 49/54] Update pool-add.tpl --- ui/ui/pool-add.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/pool-add.tpl b/ui/ui/pool-add.tpl index e98ea1bc..36ae0fcf 100644 --- a/ui/ui/pool-add.tpl +++ b/ui/ui/pool-add.tpl @@ -40,7 +40,7 @@
- + Or {Lang::T('Cancel')}
From 1a0b3ffaf36711ebe2efb3919ef15348f4a24c8b Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Fri, 25 Oct 2024 13:45:04 +0700 Subject: [PATCH 50/54] hook cronjob_end --- system/cron.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/cron.php b/system/cron.php index 820f476d..b6b12800 100644 --- a/system/cron.php +++ b/system/cron.php @@ -207,3 +207,5 @@ unlink($lockFile); $timestampFile = "$UPLOAD_PATH/cron_last_run.txt"; file_put_contents($timestampFile, time()); + +run_hook('cronjob_end'); #HOOK \ No newline at end of file From a04c3dd82b363a5d8784005d84eb9f0d3354e686 Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Fri, 25 Oct 2024 13:48:45 +0700 Subject: [PATCH 51/54] don't show Deactivate if it postpaid --- ui/ui/customer/dashboard.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui/customer/dashboard.tpl b/ui/ui/customer/dashboard.tpl index c7acc47b..ae0b1001 100644 --- a/ui/ui/customer/dashboard.tpl +++ b/ui/ui/customer/dashboard.tpl @@ -280,7 +280,7 @@ {/if} - {if $_bill['status'] == 'on'} + {if $_bill['status'] == 'on' && $_bill['prepaid'] != 'yes'} From 7f72b0c34a6266d64c4e9aa7c4d9814e56ab4702 Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Fri, 25 Oct 2024 14:05:57 +0700 Subject: [PATCH 52/54] cannot deactivate postpaid --- system/autoload/Admin.php | 12 +++++++----- system/lan/english.json | 3 ++- ui/ui/customer/dashboard.tpl | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/system/autoload/Admin.php b/system/autoload/Admin.php index 0b13542e..bbad49be 100644 --- a/system/autoload/Admin.php +++ b/system/autoload/Admin.php @@ -40,7 +40,7 @@ class Admin $isValid = self::validateToken($_SESSION['aid'], $_COOKIE['aid']); if (!$isValid) { self::removeCookie(); - _alert(Lang::T('Token has expired. Please log in again.'), 'danger', "admin"); + _alert(Lang::T('Token has expired. Please log in again.') . '.'.$_SESSION['aid'], 'danger', "admin"); return 0; } return $_SESSION['aid']; @@ -57,7 +57,7 @@ class Admin } if (!empty($_COOKIE['aid']) && !$isValid) { self::removeCookie(); - _alert(Lang::T('Token has expired. Please log in again.'), 'danger', "admin"); + _alert(Lang::T('Token has expired. Please log in again.') . '..', 'danger', "admin"); return 0; } else { if (time() - $tmp[1] < 86400 * 7) { @@ -124,7 +124,9 @@ class Admin 'samesite' => 'Lax', ]); session_destroy(); - unset($_COOKIE['aid']); + session_unset(); + session_start(); + unset($_COOKIE['aid'], $_SESSION['aid']); } } @@ -151,10 +153,10 @@ class Admin { global $config; $query = ORM::for_table('tbl_users')->select('login_token')->findOne($aid); - if($config['single_session'] != 'yes'){ + if ($config['single_session'] != 'yes') { return true; // For multi-session, any token is valid } - if(empty($query)){ + if (empty($query)) { return true; } return $query->login_token === sha1($cookieToken); diff --git a/system/lan/english.json b/system/lan/english.json index 6c50ec00..17775281 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -874,5 +874,6 @@ "Welcome_Message": "Welcome Message", "will_be_replaced_with_Customer_password": "will be replaced with Customer password", "will_be_replaced_with_Customer_Portal_URL": "will be replaced with Customer Portal URL", - "will_be_replaced_with_Company_Name": "will be replaced with Company Name" + "will_be_replaced_with_Company_Name": "will be replaced with Company Name", + "Token_has_expired__Please_log_in_again_": "Token has expired. Please log in again." } \ No newline at end of file diff --git a/ui/ui/customer/dashboard.tpl b/ui/ui/customer/dashboard.tpl index ae0b1001..9c0597ba 100644 --- a/ui/ui/customer/dashboard.tpl +++ b/ui/ui/customer/dashboard.tpl @@ -280,7 +280,7 @@ {/if} - {if $_bill['status'] == 'on' && $_bill['prepaid'] != 'yes'} + {if $_bill['status'] == 'on' && $_bill['prepaid'] != 'YES'} From e02bf9863fcad8ad55174ca5ae1cb30b8f7e1c38 Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Fri, 25 Oct 2024 14:38:04 +0700 Subject: [PATCH 53/54] fix [[trx_date]] --- system/autoload/Message.php | 1 + system/autoload/Package.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/system/autoload/Message.php b/system/autoload/Message.php index 30908c3f..cff8db31 100644 --- a/system/autoload/Message.php +++ b/system/autoload/Message.php @@ -235,6 +235,7 @@ class Message $textInvoice = str_replace('[[phone]]', $config['phone'], $textInvoice); $textInvoice = str_replace('[[invoice]]', $trx['invoice'], $textInvoice); $textInvoice = str_replace('[[date]]', Lang::dateAndTimeFormat($trx['recharged_on'], $trx['recharged_time']), $textInvoice); + $textInvoice = str_replace('[[trx_date]]', Lang::dateAndTimeFormat($trx['recharged_on'], $trx['recharged_time']), $textInvoice); if (!empty($trx['note'])) { $textInvoice = str_replace('[[note]]', $trx['note'], $textInvoice); } diff --git a/system/autoload/Package.php b/system/autoload/Package.php index 09f568d9..456dc0b1 100644 --- a/system/autoload/Package.php +++ b/system/autoload/Package.php @@ -475,7 +475,8 @@ class Package $textInvoice = str_replace('[[address]]', $config['address'], $textInvoice); $textInvoice = str_replace('[[phone]]', $config['phone'], $textInvoice); $textInvoice = str_replace('[[invoice]]', $inv, $textInvoice); - $textInvoice = str_replace('[[date]]', Lang::dateTimeFormat(date("Y-m-d")), $textInvoice); + $textInvoice = str_replace('[[date]]', Lang::dateTimeFormat(date("Y-m-d H:i:s")), $textInvoice); + $textInvoice = str_replace('[[trx_date]]', Lang::dateTimeFormat(date("Y-m-d H:i:s")), $textInvoice); $textInvoice = str_replace('[[payment_gateway]]', $gateway, $textInvoice); $textInvoice = str_replace('[[payment_channel]]', $channel, $textInvoice); $textInvoice = str_replace('[[type]]', 'Balance', $textInvoice); From fda935b3a6c3c78dbc660bcfa43e7b0070ad92fb Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:00:29 +0100 Subject: [PATCH 54/54] Update header.tpl fix panel header --- ui/ui/sections/header.tpl | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index cc8d295c..17fd0dc0 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -185,8 +185,6 @@ color: #a94442; background-color: #f2dede; border-color: #ebccd1; - border-bottom-right-radius: 21px; - border-bottom-left-radius: 21px; } .panel-heading {