Code:
// make override directories if needed
@mkdir(DIR_FS_CATALOG.'includes/modules/'.$current_template, 0755);
@mkdir(DIR_FS_CATALOG.'includes/templates/'.$current_template.'/css', 0755);
@mkdir(DIR_FS_CATALOG.'includes/templates/'.$current_template.'/jscript', 0755);
@mkdir(DIR_FS_CATALOG.'includes/templates/'.$current_template.'/popup_image_additional', 0755);
// new files or non-core files
// these are deleted on uninstall
$files = array(
DIR_FS_CATALOG.'bmz_cache/.htaccess',
DIR_FS_CATALOG.'images/watermark.png',
DIR_FS_CATALOG.'images/large/watermark_LRG.png',
DIR_FS_CATALOG.'images/medium/watermark_MED.png',
DIR_FS_CATALOG.'includes/classes/bmz_gif_info.class.php',
DIR_FS_CATALOG.'includes/classes/bmz_image_handler.class.php',
DIR_FS_CATALOG.'includes/extra_configures/bmz_image_handler_conf.php',
DIR_FS_CATALOG.'includes/extra_configures/bmz_io_conf.php',
DIR_FS_CATALOG.'includes/functions/extra_functions/functions_bmz_image_handler.php',
DIR_FS_CATALOG.'includes/functions/extra_functions/functions_bmz_io.php',
DIR_FS_ADMIN.'image_handler.php',
DIR_FS_ADMIN.'includes/ih_manager.php',
DIR_FS_ADMIN.'includes/init_includes/init_image_handler.php',
DIR_FS_ADMIN.'includes/auto_loaders/config.image_handler.php',
DIR_FS_ADMIN.'images/checkpattern.gif',
DIR_FS_ADMIN.'images/icon_image_handler.gif',
DIR_FS_ADMIN.'images/ih-test.gif',
DIR_FS_ADMIN.'images/ih-test.jpg',
DIR_FS_ADMIN.'images/ih-test.png',
DIR_FS_ADMIN.'includes/extra_configures/bmz_image_handler_conf.php',
DIR_FS_ADMIN.'includes/extra_configures/bmz_io_conf.php',
DIR_FS_ADMIN.'includes/extra_datafiles/image_handler.php',
DIR_FS_ADMIN.'includes/functions/extra_functions/functions_bmz_image_handler.php',
DIR_FS_ADMIN.'includes/functions/extra_functions/functions_bmz_io.php',
DIR_FS_ADMIN.'includes/languages/english/extra_definitions/bmz_image_handler.php',
DIR_FS_ADMIN.'includes/languages/english/extra_definitions/bmz_language_admin.php',
DIR_FS_ADMIN.'includes/modules/category_product_listing.DEFAULT.php.bak',
DIR_FS_CATALOG.'includes/modules/pages/popup_image/header_php.DEFAULT.php.bak',
DIR_FS_CATALOG.'includes/modules/pages/popup_image_additional/header_php.DEFAULT.php.bak'
);
// core files with overwrite
// these are rolled back to Zen Default on uninstalll - the .bak file is left in place
// files arranged in array (file_to_replace,file_to_replace_with)
// file_to_replace will be resaved as file_to_replace.bak
$core_files = array(
array(DIR_FS_ADMIN.'includes/modules/category_product_listing.php',DIR_FS_ADMIN.'includes/modules/category_product_listing_IH4.php'),
array(DIR_FS_CATALOG.'includes/modules/pages/popup_image/header_php.php',DIR_FS_CATALOG.'includes/modules/pages/popup_image/header_php_IH4.php'),
array(DIR_FS_CATALOG.'includes/modules/pages/popup_image_additional/header_php.php',DIR_FS_CATALOG.'includes/modules/pages/popup_image_additional/header_php_IH4.php'),
);
// core files for rollback on uninstall
// not used on install
// files arranged in array (file_to_replace,file_to_replace_with)
// file_to_replace will be resaved as file_to_replace.bak
$rollback_files = array(
array(DIR_FS_ADMIN.'includes/modules/category_product_listing.php',DIR_FS_ADMIN.'includes/modules/category_product_listing.DEFAULT.php.bak'),
array(DIR_FS_CATALOG.'includes/modules/pages/popup_image/header_php.php',DIR_FS_CATALOG.'includes/modules/pages/popup_image/header_php.DEFAULT.php.bak'),
array(DIR_FS_CATALOG.'includes/modules/pages/popup_image_additional/header_php.php',DIR_FS_CATALOG.'includes/modules/pages/popup_image_additional/header_php.DEFAULT.php.bak'),
);
// template files
// these are deleted on uninstall - the .bak file is left in place
// files arranged in array (file_to_replace,file_to_replace_with)
// file_to_replace will be resaved as file_to_replace.bak
$template_files = array(
array(DIR_FS_CATALOG.'includes/modules/'.$current_template.'/additional_images.php',DIR_FS_CATALOG.'includes/modules/IH_INSTALL/additional_images.php'),
array(DIR_FS_CATALOG.'includes/modules/'.$current_template.'/main_product_image.php',DIR_FS_CATALOG.'includes/modules/IH_INSTALL/main_product_image.php'),
array(DIR_FS_CATALOG.'includes/templates/'.$current_template.'/css/style_imagehover.css',DIR_FS_CATALOG.'includes/templates/IH_INSTALL/css/style_imagehover.css'),
array(DIR_FS_CATALOG.'includes/templates/'.$current_template.'/jscript/jscript_imagehover.js',DIR_FS_CATALOG.'includes/templates/IH_INSTALL/jscript/jscript_imagehover.js'),
array(DIR_FS_CATALOG.'includes/templates/'.$current_template.'/popup_image_additional/tpl_main_page.php',DIR_FS_CATALOG.'includes/templates/IH_INSTALL/popup_image_additional/tpl_main_page.php')
);
Bookmarks