Update of /cvsroot/phpwebsite-comm/modules/vshop/boost
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8998/boost
Modified Files:
boost.php
Added Files:
update.php
Log Message:
0.6.0 changes
Index: boost.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/vshop/boost/boost.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** boost.php 25 Nov 2008 15:19:28 -0000 1.1.1.1
--- boost.php 2 Dec 2008 19:43:12 -0000 1.2
***************
*** 24,28 ****
$proper_name = 'vShop';
! $version = '0.5.0';
$register = false;
$unregister = false;
--- 24,28 ----
$proper_name = 'vShop';
! $version = '0.6.0';
$register = false;
$unregister = false;
--- NEW FILE: update.php ---
<?php
/**
* vshop - phpwebsite module
*
* See docs/AUTHORS and docs/COPYRIGHT for relevant info.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @version $Id: update.php,v 1.1 2008/12/02 19:43:12 verdonv Exp $
* @author Verdon Vaillancourt <verdonv at users dot sourceforge dot net>
*/
function vshop_update(&$content, $currentVersion)
{
// $home_dir = PHPWS_Boost::getHomeDir();
switch ($currentVersion) {
case version_compare($currentVersion, '0.6.0', '<'):
$content[] = '<pre>';
$files = array('templates/edit_item.tpl',
'templates/edit_settings.tpl'
);
vshopUpdateFiles($files, $content);
$content[] = '0.6.0 changes
----------------
+ added is_array checks to links() array_merge in dept and item class
+ added currency and symbol to checkout and confirmation screens
+ added ability to change an item\'s dept
+ added ability to set minimum shipping charge
+ added ability to have free shipping on orders over $xx.xx
</pre>';
} // end switch
return true;
}
function vshopUpdateFiles($files, &$content)
{
if (PHPWS_Boost::updateFiles($files, 'vshop')) {
$content[] = '--- Updated the following files:';
} else {
$content[] = '--- Unable to update the following files:';
}
$content[] = " " . implode("\n ", $files);
}
?>
|