version; $info = "App Version: v" . config('ninja.app_version') . "\\n" . "White Label: " . "\\n" . // TODO: Implement white label with hasFeature. "Server OS: " . php_uname('s') . ' ' . php_uname('r') . "\\n" . "PHP Version: " . phpversion() . "\\n" . "MySQL Version: " . $mysql_version; return $info; } public static function boot() { $data = [ 'license' => config('ninja.license'), ]; $data = trim(CurlUtils::post('https://license.invoiceninja.com/api/check', $data)); $data = json_decode($data); if($data->message == sha1(config('ninja.license'))) return false; else return true; } public static function parse() { return 'Invalid license.'; } public static function selfHostedMessage() { return 'Self hosted installation limited to one account'; } }