📄 functions_bmz_image_handler_update.php
字号:
<?php/** * bmz_image_handler_update.php * manage automatic patching of the database for image-handler * * @author Tim Kroeger <tim@breakmyzencart.com> * @copyright Copyright 2005-2006 breakmyzencart.com * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License V2.0 * @version $Id: functions_bmz_image_handler_update.php,v 1.7 2006/05/01 12:12:08 tim Exp $ */global $messageStack;global $db;function remove_image_handler() { global $db; $error = false; $sql_query = "DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_key = 'LARGE_IMAGE_MAX_WIDTH' OR " . "configuration_key = 'LARGE_IMAGE_MAX_HEIGHT' OR " . "configuration_key = 'SMALL_IMAGE_FILETYPE' OR " . "configuration_key = 'SMALL_IMAGE_BACKGROUND' OR " . "configuration_key = 'WATERMARK_SMALL_IMAGES' OR " . "configuration_key = 'ZOOM_SMALL_IMAGES' OR " . "configuration_key = 'SMALL_IMAGE_HOTZONE' OR " . "configuration_key = 'SMALL_IMAGE_QUALITY' OR " . "configuration_key = 'MEDIUM_IMAGE_FILETYPE' OR " . "configuration_key = 'MEDIUM_IMAGE_BACKGROUND' OR " . "configuration_key = 'WATERMARK_MEDIUM_IMAGES' OR " . "configuration_key = 'ZOOM_MEDIUM_IMAGES' OR " . "configuration_key = 'MEDIUM_IMAGE_HOTZONE' OR " . "configuration_key = 'MEDIUM_IMAGE_QUALITY' OR " . "configuration_key = 'LARGE_IMAGE_FILETYPE' OR " . "configuration_key = 'LARGE_IMAGE_BACKGROUND' OR " . "configuration_key = 'WATERMARK_LARGE_IMAGES' OR " . "configuration_key = 'LARGE_IMAGE_QUALITY' OR " . "configuration_key = 'WATERMARK_GRAVITY' OR " . "configuration_key = 'ZOOM_GRAVITY' OR " . "configuration_key = 'IH_RESIZE' OR " . "configuration_key = 'SHOW_UPLOADED_IMAGES';"; $db->Execute($sql_query); $sql_query = "UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='REMOVED' WHERE configuration_key = 'IH_VERSION';"; $db->Execute($sql_query); return $error;}function install_image_handler() { global $db; global $ihConf; $sort_order_offset = 100; $i = 0; if (defined('IH_VERSION')) { $sql_query = "DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_key = 'IH_VERSION';"; $db->Execute($sql_query); } //------------------------------ // IH_RESIZE configuration entry //------------------------------ $ih_resize = 'yes'; if (defined('IMAGE_MANAGER_HANDLER')) { // ok, some image handler has been installed $sql_query = "DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_key = 'IMAGE_MANAGER_HANDLER';"; if (IMAGE_MANAGER_HANDLER == 'none') $ih_resize = 'no'; $db->Execute($sql_query); } if (!defined('IH_RESIZE')) { $sql_query = "INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES " . "('IH 璋冩暣鍥惧儚澶у皬', 'IH_RESIZE', '$ih_resize', 'Zen-Cart鐨勭己鐪佽
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -