Or doing it like Simple Machines... it runs a install test first to see if it can write to the files and if they versions are correct. The outlying structure is the hardest part to ensure that the proper background validation exists for all cases. Requiring that people put version numbers as well as versions of ZC that it works with and such.
One thing I noticed while installing IH2 today, was that it came with a patch file that looked like it was meant to use some sort of patching tool to implement.
PHP Code:
--- Z:\Downloads\ZenCart\zen-cart-v1.3.5-full-fileset-09032006\zen-cart-v1.3.5-full-fileset-09032006\admin\includes\modules\category_product_listing.php Tue Mar 14 00:27:34 2006
+++ Z:\Downloads\ZenCart\image-handler_2.0-zc13\image-handler_2.0-zc13\admin\includes\modules\category_product_listing.php Mon May 01 15:46:02 2006
@@ -4,7 +4,7 @@
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
- * @version $Id: category_product_listing.php 3182 2006-03-14 04:27:33Z ajeh $
+ * @version $Id: category_product_listing.php,v 1.1 2006/04/14 13:42:13 tim Exp $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
@@ -324,6 +324,7 @@
<?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id'] . '&action=delete_product') . '">' . zen_image(DIR_WS_IMAGES . 'icon_delete.gif', ICON_DELETE) . '</a>'; ?>
<?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id'] . '&action=move_product') . '">' . zen_image(DIR_WS_IMAGES . 'icon_move.gif', ICON_MOVE) . '</a>'; ?>
<?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id'] .'&action=copy_to' ) . '">' . zen_image(DIR_WS_IMAGES . 'icon_copy_to.gif', ICON_COPY_TO) . '</a>'; ?>
+ <?php echo '<a href="' . zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $products->fields['products_id'] . '¤t_category_id=' . $current_category_id) . '">' . zen_image(DIR_WS_IMAGES . 'icon_image_handler.gif', ICON_IMAGE_HANDLER) . '</a>'; ?>
<?php
// BOF: Attribute commands
//if (!empty($products->fields['products_id']) && zen_has_product_attributes($products->fields['products_id'], 'false')) {
is this how subversion is updated or something?