diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 98e52762..96188b68 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -523,7 +523,7 @@ switch ($action) { 'args' => [$d['phonenumber'], $welcomeMessage] ], 'email' => [ - 'enabled' => isset($_POST['email']), + 'enabled' => isset($_POST['mail']), 'method' => 'Message::sendEmail', 'args' => [$d['email'], $emailSubject, $welcomeMessage, $d['email']] ] diff --git a/system/devices/MikrotikHotspot.php b/system/devices/MikrotikHotspot.php index 804c6892..7f115cb3 100644 --- a/system/devices/MikrotikHotspot.php +++ b/system/devices/MikrotikHotspot.php @@ -214,7 +214,7 @@ class MikrotikHotspot function getClient($ip, $user, $pass) { global $_app_stage; - if ($_app_stage == 'demo') { + if ($_app_stage == 'Demo') { return null; } $iport = explode(":", $ip); @@ -224,7 +224,7 @@ class MikrotikHotspot function removeHotspotUser($client, $username) { global $_app_stage; - if ($_app_stage == 'demo') { + if ($_app_stage == 'Demo') { return null; } $printRequest = new RouterOS\Request( @@ -242,7 +242,7 @@ class MikrotikHotspot function addHotspotUser($client, $plan, $customer) { global $_app_stage; - if ($_app_stage == 'demo') { + if ($_app_stage == 'Demo') { return null; } $addRequest = new RouterOS\Request('/ip/hotspot/user/add'); @@ -310,7 +310,7 @@ class MikrotikHotspot function setHotspotUser($client, $user, $pass) { global $_app_stage; - if ($_app_stage == 'demo') { + if ($_app_stage == 'Demo') { return null; } $printRequest = new RouterOS\Request('/ip/hotspot/user/print'); @@ -327,7 +327,7 @@ class MikrotikHotspot function setHotspotUserPackage($client, $username, $plan_name) { global $_app_stage; - if ($_app_stage == 'demo') { + if ($_app_stage == 'Demo') { return null; } $printRequest = new RouterOS\Request('/ip/hotspot/user/print'); @@ -344,7 +344,7 @@ class MikrotikHotspot function removeHotspotActiveUser($client, $username) { global $_app_stage; - if ($_app_stage == 'demo') { + if ($_app_stage == 'Demo') { return null; } $onlineRequest = new RouterOS\Request('/ip/hotspot/active/print'); @@ -360,7 +360,7 @@ class MikrotikHotspot function getIpHotspotUser($client, $username) { global $_app_stage; - if ($_app_stage == 'demo') { + if ($_app_stage == 'Demo') { return null; } $printRequest = new RouterOS\Request( diff --git a/ui/ui/app-settings.tpl b/ui/ui/app-settings.tpl index ca4c213f..c75ff5ec 100644 --- a/ui/ui/app-settings.tpl +++ b/ui/ui/app-settings.tpl @@ -1049,32 +1049,29 @@ -
- {Lang::T('Settings For Mikrotik')} -
/ip hotspot walled-garden
-    add dst-host={$_domain}
-    add dst-host=*.{$_domain}
- - {Lang::T('Settings For Cron Expired')} -
-    # {Lang::T('Expired Cronjob Every 5 Minutes')}
-    */5 * * * * cd {$dir} && {$php} cron.php
-
- {Lang::T('Choose one, above or below')} -
-    # {Lang::T('Expired Cronjob Every 1 Hour')}
-    0 * * * * cd {$dir} && {$php} cron.php
-
- - {Lang::T('Settings For Cron Reminder')} -
-    # {Lang::T('Reminder Cronjob Every 7 AM')}
-    0 7 * * * cd {$dir} && {$php} cron_reminder.php
-
+
+

{Lang::T('Settings For Mikrotik')}

+

/ip hotspot walled-garden
+ add dst-host={$_domain}
+ add dst-host=*.{$_domain} +

+
+

{Lang::T('Settings For Cron Expired')}

+

+ # {Lang::T('Expired Cronjob Every 5 Minutes [Recommended]')}
+ */5 * * * * cd {$dir} && {$php} cron.php +

+ # {Lang::T('Expired Cronjob Every 1 Hour')}
+ 0 * * * * cd {$dir} && {$php} cron.php +

+
+

{Lang::T('Settings For Cron Reminder')}

+

+ # {Lang::T('Reminder Cronjob Every 7 AM')}
+ 0 7 * * * cd {$dir} && {$php} cron_reminder.php +

- -