From cc38844f2e04dca7d85780d11104d313fffd237d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1zhan?= Date: Sat, 21 Nov 2020 12:13:00 +0300 Subject: [PATCH] Version check for system --- src/bb-modules/System/Service.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bb-modules/System/Service.php b/src/bb-modules/System/Service.php index c0f2833fc..63a62933c 100644 --- a/src/bb-modules/System/Service.php +++ b/src/bb-modules/System/Service.php @@ -241,6 +241,10 @@ class Service $msgs['info'][] = sprintf('Install module "%s" still exists. Please remove it for security reasons.', $install); } + if($this->getVersion() == "0.0.1") { + $msgs['info'][] = 'BoxBilling couldn\'t find valid version information. This is okay if you\'ve brought a copy of BoxBilling directly from the master branch, and not from releases. But beware, master branch may not be stable enough to be used for production use.'; + } + if(!extension_loaded('openssl')) { $msgs['info'][] = sprintf('BoxBilling requires %s extension to be enabled on this server for security reasons.', 'php openssl'); } @@ -1562,4 +1566,4 @@ class Service $this->di['session']->delete('pending_messages'); return true; } -} \ No newline at end of file +}