[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 main_product_image.php

Zen Cart 源代码 main_product_image.php




下载文件

文件名: main_product_image.php
文件类型: PHP文件
文件大小: 1.13 KiB
MD5: 8fe097c61e0a615bbd3c65835d50d789

main_product_image.php - 关闭高亮
  1. <?php
  2. /**
  3.  * main_product_image module
  4.  *
  5.  * @package templateSystem
  6.  * @copyright Copyright 2005-2006 breakmyzencart.com
  7.  * @copyright Portions Copyright 2003-2006 Zen Cart Development Team
  8.  * @copyright Portions Copyright 2003 osCommerce
  9.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  10.  * @version $Id: main_product_image.php,v 1.2 2006/04/11 22:00:55 tim Exp $
  11.  */
  12. if (!defined('IS_ADMIN_FLAG')) {
  13.   die('Illegal Access');
  14. }
  15. $products_image_extension = substr($products_image, strrpos($products_image, '.'));
  16. $products_image_base = ereg_replace($products_image_extension . '$', '', $products_image);
  17. $products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
  18. $products_image_large  = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE .  $products_image_extension;
  19.  
  20.   /*
  21.     echo
  22.     'Base ' . $products_image_base . ' - ' . $products_image_extension . '<br>' .
  23.     'Medium ' . $products_image_medium . '<br><br>' .
  24.     'Large ' . $products_image_large . '<br><br>';
  25.   */
  26. // to be built into a single variable string