# cpanel - Cpanel/Easy/Apache/Utils/Support.pm   Copyright(c) 2012 cPanel, Inc.
#                                                            All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

package Cpanel::Easy::Apache::Utils::Support;

our $NORMAL       = 0;
our $DEPRECATED   = 0x01;
our $ENDOFLIFE    = 0x02;
our $EXPERIMENTAL = 0x03;
our $UNSUPPORTED  = 0x04;

our $URL = 'http://go.cpanel.net/easld';

my %short_descrips = (
    $DEPRECATED   => "DEPRECATED",
    $ENDOFLIFE    => "END OF LIFE",
    $EXPERIMENTAL => "EXPERIMENTAL",
    $UNSUPPORTED  => "NOT SUPPORTED",
);

my %long_descrips = (
    $DEPRECATED   => "DEPRECATED: Product is outdated, but patches for compatibility or security may be provided.",
    $ENDOFLIFE    => "END OF LIFE: Product has reached end of life and will not receive security patches.",
    $EXPERIMENTAL => "EXPERIMENTAL: Product is new and not fully tested.",
    $UNSUPPORTED  => "NOT SUPPORTED: EasyApache does not support this product. This product will not receive further updates.",
);

sub get_short_deco {
    my $const = shift;
    my $deco  = $short_descrips{$const};
    return $deco || '';
}

sub get_long_deco {
    my $const = shift;
    my $deco  = $long_descrips{$const};
    return $deco || '';
}

1;
