package cPanel::Chat::phpMyChat;

use strict;
use warnings;

our $VERSION = 0.2;
my $pkg = __PACKAGE__;

my $new = <<'END_UPGRADE';
<p>We regret to inform you that we cannot provide an update of phpMyChat. However, you can manually update your phpMyChat installation. To learn more, please visit <a target="_blank" href="http://sourceforge.net/projects/phpmychat/">phpMyChat's documentation</a>.</p>

END_UPGRADE

our $meta_info = {
    disable => {
        install => $new,
    },
    setphpsuexecvar => 1,
    adminuser_pass  => 1,
    admin_email     => 1,
    installdir      => 'mychat',
    description     => 'PHP/MySQL based Chat',                                                                                             # required
    security        => 'Configuration has to be world readable. Last updated in July 2001. Subject to all common PHP security problems',
    version         => '0.15.0',                                                                                                           # required
    security_rank   => 1,
    website         => 'http://sourceforge.net/projects/phpmychat/',
    config_files    => ['chat/config/config.lib.php'],
    mysql           => ['mychat'],
    table_prefix    => 'mychat',
};

#### action functions ##
sub install {
    print $meta_info->{'disable'}{'install'};
    return;
}
sub upgrade   { shift->stdupgrade(@_) }
sub uninstall { shift->stduninstall(@_) }

#### non action functions ##
sub installform   { print $meta_info->{'disable'}{'install'} }
sub upgradeform   { print shift->{upgradeform} }
sub uninstallform { print shift->{uninstallform} }

1;
