diff --git a/system/controllers/settings.php b/system/controllers/settings.php index 74b5b160..7a7de6ac 100644 --- a/system/controllers/settings.php +++ b/system/controllers/settings.php @@ -205,6 +205,7 @@ switch ($action) { $sms_url = _post('sms_url'); $wa_url = _post('wa_url'); $address = _post('address'); + $tawkto = _post('tawkto'); $payment_gateway = _post('payment_gateway'); if ($company == '') { r2(U . 'settings/app', 'e', $_L['All_field_is_required']); @@ -277,6 +278,17 @@ switch ($action) { $d->save(); } + $d = ORM::for_table('tbl_appconfig')->where('setting', 'tawkto')->find_one(); + if($d){ + $d->value = $tawkto; + $d->save(); + }else{ + $d = ORM::for_table('tbl_appconfig')->create(); + $d->setting = 'tawkto'; + $d->value = $tawkto; + $d->save(); + } + $note = _post('note'); $d = ORM::for_table('tbl_appconfig')->where('setting', 'note')->find_one(); $d->value = $note; diff --git a/ui/ui/app-midtrans.tpl b/ui/ui/app-midtrans.tpl index c3b7000d..979f3144 100644 --- a/ui/ui/app-midtrans.tpl +++ b/ui/ui/app-midtrans.tpl @@ -55,6 +55,8 @@ +
/ip hotspot walled-garden +add dst-host=:^midtrans.comdiff --git a/ui/ui/app-settings.tpl b/ui/ui/app-settings.tpl index fec09055..479fce87 100644 --- a/ui/ui/app-settings.tpl +++ b/ui/ui/app-settings.tpl @@ -72,6 +72,18 @@ +
From Direct Chat Link.
+/ip hotspot walled-garden +add dst-host=:^tawk.to+
/ip hotspot walled-garden +add dst-host=:^tripay.co.iddiff --git a/ui/ui/app-xendit.tpl b/ui/ui/app-xendit.tpl index a3f043af..769a2d42 100644 --- a/ui/ui/app-xendit.tpl +++ b/ui/ui/app-xendit.tpl @@ -41,6 +41,8 @@ +
/ip hotspot walled-garden +add dst-host=:^xendit.codiff --git a/ui/ui/register-otp.tpl b/ui/ui/register-otp.tpl index 07db896a..1203520b 100644 --- a/ui/ui/register-otp.tpl +++ b/ui/ui/register-otp.tpl @@ -101,6 +101,21 @@ +{if $_c['tawkto'] != ''} + + + +{/if}