First Commit
This commit is contained in:
Executable
+62
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Kernel;
|
||||
|
||||
/**
|
||||
* SysCMS - Content Management System
|
||||
*
|
||||
* Copyright (c) 2025 Marco Costa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Author: Marco Costa
|
||||
* Email: contato@syspanel.com.br
|
||||
* Project: SysCMS
|
||||
*
|
||||
* This software is licensed, not sold.
|
||||
* Permission is granted to use this software
|
||||
* subject to the terms of the SysCMS Commercial License.
|
||||
*
|
||||
* Redistribution, sublicensing, resale, or
|
||||
* disclosure of this software, in whole or in part,
|
||||
* is strictly prohibited without prior written permission.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
||||
*/
|
||||
|
||||
class License
|
||||
{
|
||||
/**
|
||||
* Checks the license and terminates the application if invalid.
|
||||
*/
|
||||
public static function checkGlobalBlock(): void
|
||||
{
|
||||
// No restriction
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the system allows creating new companies.
|
||||
* Always returns true.
|
||||
*/
|
||||
public static function canCreateCompany(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current operation mode: 'mono' or 'multi'.
|
||||
* Always returns 'multi'.
|
||||
*/
|
||||
public static function getMode(): string
|
||||
{
|
||||
return 'multi';
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the license is valid for the current domain
|
||||
* Always returns true.
|
||||
*/
|
||||
public static function isValidDomain(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user