package cPanel::Ecommerce::OSCommerce;

use strict;
use warnings;

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

our $meta_info = {
    adminuser_pass => 1, 
    admin_email    => 1, 
    installdir     => 'osc',
    description    => 'PHP/MySQL based Ecommerce', # required
    security       => q(
Configuration has to be world readable. requires 777 permissions which are extremely exploitable and dangerous.
<br />
Requires register_globals to be on in your php.ini, of which the php.ini says:
<pre>
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
</pre>
<br /> Subject to all common PHP security problems
                      ),
    version        => '2.2ms2-051113', # required
    security_rank  => 1, 
    website        => 'http://www.oscommerce.com/', 
    config_files   => [qw(includes/configure.php admin/includes/configure.php)],
    mysql          => ['osc'],
    chmod => {
        '0777' => [qw(images admin/images/graphs admin/backups)],
    },
    adminarea_name => 'OSCommerce Admin area',
    adminarea_path => 'admin', # admin/_work if SQL auth is used (IE shanna)
};

# see http://forums.oscommerce.com/index.php?showtopic=181939 regarding why there is no table_prefix

#### action functions ##
sub install { shift->stdinstall(@_) }
sub upgrade { shift->stdupgrade(@_) }
sub uninstall { shift->stduninstall(@_) }

#### non action functions ##
sub installform { print shift->{installform} }
sub upgradeform { print shift->{upgradeform} }
sub uninstallform { print shift->{uninstallform} }

1;
