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] 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('Save Changes')} + + + + + @@ -161,6 +166,10 @@ + + + + @@ -230,9 +239,9 @@ - {Lang::T('By SMS')} + {Lang::T('By SMS')} - {Lang::T('by WhatsApp')} + {Lang::T('by WhatsApp')} {Lang::T('By WhatsApp and SMS')} @@ -247,6 +256,10 @@ + + + + @@ -310,7 +323,10 @@ + + + @@ -341,7 +357,10 @@ + + + @@ -385,7 +404,10 @@ + + + @@ -437,7 +459,10 @@ + + + @@ -477,7 +502,10 @@ + + + @@ -529,7 +557,10 @@ + + + @@ -552,7 +583,7 @@ placeholder="https://domain/?param_number=[number]¶m_text=[text]&secret="> {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 @@ + + + @@ -645,7 +679,10 @@ + + + @@ -708,7 +745,10 @@ + + + @@ -738,7 +778,10 @@ + + + @@ -765,7 +808,10 @@ + + + @@ -798,7 +844,10 @@ + + + @@ -869,7 +918,10 @@ + + +
{Lang::T('Must include')} [text] & [number], - {Lang::T('it will be replaced.')} + {Lang::T('it will be replaced.')}