From 2863d70214546709d2999072aaa6c7f6bba46b89 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:32:08 +0100 Subject: [PATCH] Fix typo fixed typo in device, change demo to Demo --- system/devices/MikrotikHotspot.php | 14 +++++++------- ui/ui/app-settings.tpl | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) 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 b4d50f87..c75ff5ec 100644 --- a/ui/ui/app-settings.tpl +++ b/ui/ui/app-settings.tpl @@ -1058,7 +1058,7 @@

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

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

# {Lang::T('Expired Cronjob Every 1 Hour')}