[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.13 KiB
MD5: d8d557ff3a19f1a033e9d9e4af34b532

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.  * @Simplified Chinese version   http://www.zen-cart.cn
  9.  */
  10. /*
  11.  
  12. The credit card define statements match the actual records in the configuration table.
  13.  
  14. For example for Visa:
  15. TEXT_CC_ENABLED_VISA or IMAGE_CC_ENABLED_VISA is used for CC_ENABLED_VISA that is stored in the configuration table
  16.  
  17. 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()
  18.  
  19. To obtain a list of accepted credit cards use the function zen_get_cc_enabled()
  20.  
  21. Example:
  22.  
  23. echo TEXT_ACCEPTED_CREDIT_CARDS . zen_get_cc_enabled();
  24.  
  25. */
  26.  
  27. define('TEXT_ACCEPTED_CREDIT_CARDS', '<strong>我们接受:</strong> ');
  28.  
  29. // cc enabled text
  30. define('TEXT_CC_ENABLED_VISA','Visa');
  31. define('TEXT_CC_ENABLED_MC','MC');
  32. define('TEXT_CC_ENABLED_AMEX','AmEx');
  33. define('TEXT_CC_ENABLED_DINERS_CLUB','Diners Club');
  34. define('TEXT_CC_ENABLED_DISCOVER','Discover');
  35. define('TEXT_CC_ENABLED_JCB','JCB');
  36. define('TEXT_CC_ENABLED_AUSTRALIAN_BANKCARD','Australian Bankcard');
  37. define('TEXT_CC_ENABLED_SOLO','Solo');
  38. define('TEXT_CC_ENABLED_SWITCH','Switch');
  39. define('TEXT_CC_ENABLED_MAESTRO','Maestro');
  40.  
  41. // for images define these as:
  42. // define('IMAGE_CC_ENABLED_VISA',zen_image(DIR_WS_IMAGES . 'filename.jpg');
  43. // use the function
  44. // echo zen_get_cc_enabled('IMAGE_');
  45.  
  46. // cc enabled image
  47. define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif'));
  48. define('IMAGE_CC_ENABLED_MC', zen_image($template->get_template_dir('cc2.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc2.gif'));
  49. define('IMAGE_CC_ENABLED_AMEX', zen_image($template->get_template_dir('cc3.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc3.gif'));
  50. define('IMAGE_CC_ENABLED_DINERS_CLUB', zen_image($template->get_template_dir('cc4.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc4.gif'));
  51. define('IMAGE_CC_ENABLED_DISCOVER', zen_image($template->get_template_dir('cc5.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc5.gif'));
  52. define('IMAGE_CC_ENABLED_JCB', zen_image($template->get_template_dir('cc6.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc6.gif'));
  53. define('IMAGE_CC_ENABLED_AUSTRALIAN_BANKCARD', zen_image($template->get_template_dir('cc7.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc7.gif'));
  54. define('IMAGE_CC_ENABLED_SOLO', zen_image($template->get_template_dir('cc8.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc8.gif'));
  55. define('IMAGE_CC_ENABLED_SWITCH', zen_image($template->get_template_dir('cc9.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc9.gif'));
  56. define('IMAGE_CC_ENABLED_MAESTRO', zen_image($template->get_template_dir('cc10.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc10.gif'));
  57. ?>


cron