Can someone null this code [included]

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.


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!
 

Forum statistics

Threads
70,034
Messages
915,013
Members
244,940
Latest member
ndwompafie

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu