HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/dallavitae/OLD_WP/wp-content/plugins/cloudflare/src/WordPress/Constants/Plans.php
<?php

namespace CF\WordPress\Constants;

class Plans
{
    const FREE_PLAN = 'free';
    const PRO_PLAN = 'pro';
    const BIZ_PLAN = 'business';
    const ENT_PLAN = 'enterprise';

    public static function planNeedsUpgrade($currentPlan, $minimumPlan)
    {
        $planList = array();
        $planList[self::FREE_PLAN] = 0;
        $planList[self::PRO_PLAN] = 1;
        $planList[self::BIZ_PLAN] = 2;
        $planList[self::ENT_PLAN] = 3;

        return $planList[$currentPlan] < $planList[$minimumPlan];
    }
}