extremesg
Member
- Nov 1, 2018
- 44
- 5
- 8
Hi,
This extract is taken from the license file of Blesta (a hosting billing program) - which has been nulled, .... however they left out the bit that allows multi-company setup.
Below is the PHP code, .... I'm just not sure how to stop it going out to their server, and I want it to be set to 99 licenses etc.
Thanks in advance - if one of the nullers here can comment!
This extract is taken from the license file of Blesta (a hosting billing program) - which has been nulled, .... however they left out the bit that allows multi-company setup.
Below is the PHP code, .... I'm just not sure how to stop it going out to their server, and I want it to be set to 99 licenses etc.
Code:
private function processLicenseData($license_data)
{
$ttl = 1209600;
$result = $this->LicenseManager->validate($license_data, $ttl);
$result["comp_allowed"] = 1;
$result["comp_total"] = 2;
try
{
if( !isset($this->Companies) )
{
Loader::loadmodels($this, array( "Companies" ));
}
$result["comp_allowed"] = 1;
$result["comp_total"] = $this->Companies->getListCount();
if( isset($result["addons"]) )
{
foreach( $result["addons"] as $addon )
{
if( isset($addon["fields"]["type"]) && $addon["fields"]["type"] == "company" )
{
$result["comp_allowed"] += $addon["qty"];
}
}
}
if( $result["comp_allowed"] < $result["comp_total"] )
{
$result["status"] = "company_quota";
}
}
catch( Exception $e )
{
}
return $result;
}
Thanks in advance - if one of the nullers here can comment!