$versions{'new_files.pl'} = '06.6.00.0000';

# Contains all sub routines (functions) to add files not usually inside
# the AgoraCart core file group.
#
# Files are added when new versions are released. Common files to add are new
# standard templates for page layouts, verify pages, etc that are not directly
# links to a specific gateways, module, etc. (aka pages the use would edit and
# would not appreicatee being overwritten by an update if used.)

#######################################################################
#
# AgoraCart and all associated files, except where noted, are
# Copyright 2001 to Present jointly by K-Factor Technologies, Inc.
# and by C E Mayo (aka Mister Ed) at AgoraCart.com & K-Factor.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This copyright notice may not be removed or altered in any way.
#
#######################################################################

sub add_these_new_files {

    my ( $file, $file_location ) = q{};
    my @newfilearray = (
        #'filename|path/to/save/to|remote/path/to/get',
    );

    # regular get & save
    foreach my $newline (@newfilearray) {
        my ($filename,$local_path,$remote_path) = split(/\|/, "$newline");
        if ( !( -e "./$local_path/$filename" ) ) {
            $file = simple_secure_URL_file_getter("https://agoracart.com/$remote_path");
            open( UPDATEFILE, ">./$local_path/$filename" ) || my_die("Can't Open $local_path/$filename");
            if ( ( $filename =~ /\.png$/ ) || ( $filename =~ /\.jpg$/ ) || ( $filename =~ /\.gif$/ ) ) {
                binmode UPDATEFILE;
            }
            print( UPDATEFILE $file );
            close(UPDATEFILE);
            # print "added ./$local_path/$filename<br>";
        }
    }
}

#######################################################################

1;
