[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 源代码 credit_cards.php

Zen Cart 源代码 credit_cards.php




下载文件

文件名: credit_cards.php
文件类型: PHP文件
文件大小: 3.07 KiB
MD5: 8cddd04316154abf433230c2b63b6429

credit_cards.php - 关闭高亮
  1. <?php
  2. /**
  3.  * @package languageDefines
  4.  * @copyright Copyright 2003-2007 Zen Cart Development Team
  5.  * @copyright Portions Copyright 2003 osCommerce
  6.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  7.  * @version $Id: credit_cards.php 6119 2007-04-05 08:20:16Z drbyte $
  8.  */
  9. /*
  10.  
  11. The credit card define statements match the actual records in the configuration table.
  12.  
  13. For example for Visa:
  14. TEXT_CC_ENABLED_VISA or IMAGE_CC_ENABLED_VISA is used for CC_ENABLED_VISA that is stored in the configuration table
  15.  
  16. If there is a new credit card added but there is not a matching define it cannot be used by the function zen_get_cc_enabled()
  17.  
  18. To obtain a list of accepted credit cards use the function zen_get_cc_enabled()
  19.  
  20. Example:
  21.  
  22. echo TEXT_ACCEPTED_CREDIT_CARDS . zen_get_cc_enabled();
  23.  
  24. */
  25.  
  26. define('TEXT_ACCEPTED_CREDIT_CARDS', '<strong>We accept:</strong> ');
  27.  
  28. // cc enabled text
  29. define('TEXT_CC_ENABLED_VISA','Visa');
  30. define('TEXT_CC_ENABLED_MC','MC');
  31. define('TEXT_CC_ENABLED_AMEX','AmEx');
  32. define('TEXT_CC_ENABLED_DINERS_CLUB','Diners Club');
  33. define('TEXT_CC_ENABLED_DISCOVER','Discover');
  34. define('TEXT_CC_ENABLED_JCB','JCB');
  35. define('TEXT_CC_ENABLED_AUSTRALIAN_BANKCARD','Australian Bankcard');
  36. define('TEXT_CC_ENABLED_SOLO','Solo');
  37. define('TEXT_CC_ENABLED_SWITCH','Switch');
  38. define('TEXT_CC_ENABLED_MAESTRO','Maestro');
  39.  
  40. // for images define these as:
  41. // define('IMAGE_CC_ENABLED_VISA',zen_image(DIR_WS_IMAGES . 'filename.jpg');
  42. // use the function
  43. // echo zen_get_cc_enabled('IMAGE_');
  44.  
  45. // cc enabled image
  46. define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif'));
  47. define('IMAGE_CC_ENABLED_MC', zen_image($template->get_template_dir('cc2.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc2.gif'));
  48. define('IMAGE_CC_ENABLED_AMEX', zen_image($template->get_template_dir('cc3.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc3.gif'));
  49. define('IMAGE_CC_ENABLED_DINERS_CLUB', zen_image($template->get_template_dir('cc4.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc4.gif'));
  50. define('IMAGE_CC_ENABLED_DISCOVER', zen_image($template->get_template_dir('cc5.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc5.gif'));
  51. define('IMAGE_CC_ENABLED_JCB', zen_image($template->get_template_dir('cc6.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc6.gif'));
  52. define('IMAGE_CC_ENABLED_AUSTRALIAN_BANKCARD', zen_image($template->get_template_dir('cc7.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc7.gif'));
  53. define('IMAGE_CC_ENABLED_SOLO', zen_image($template->get_template_dir('cc8.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc8.gif'));
  54. define('IMAGE_CC_ENABLED_SWITCH', zen_image($template->get_template_dir('cc9.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc9.gif'));
  55. define('IMAGE_CC_ENABLED_MAESTRO', zen_image($template->get_template_dir('cc10.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc10.gif'));
  56. ?>