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

Zen Cart 源代码 init_special_funcs.php




下载文件

文件名: init_special_funcs.php
文件类型: PHP文件
文件大小: 2.09 KiB
MD5: de15edc8d7a421d8b62d1d13821082d5

init_special_funcs.php - 关闭高亮
  1. <?php
  2. /**
  3.  * load the system wide functions
  4.  * see {@link  http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
  5.  *
  6.  * @package initSystem
  7.  * @copyright Copyright 2003-2012 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 GIT: $Id: Author: Ian Wilson  Tue Jul 24 11:36:47 2012 +0100 Modified in v1.5.1 $
  11.  */
  12. if (!defined('IS_ADMIN_FLAG')) {
  13.   die('Illegal Access');
  14. }
  15. /**
  16.  * require the whos online functions and update
  17.  */
  18. require(DIR_WS_FUNCTIONS . 'whos_online.php');
  19. zen_update_whos_online();
  20. /**
  21.  * require the banner functions, auto-activate and auto-expire
  22.  */
  23. require(DIR_WS_FUNCTIONS . 'banner.php');
  24. zen_activate_banners();
  25. zen_expire_banners();
  26. /**
  27.  * only process once per session do not include banners as banners expire per click as well as per date
  28.  * require the banner functions, auto-activate and auto-expire.
  29.  *
  30.  * this is processed in the admin for dates that expire while being worked on
  31.  */
  32. // check if a reset on one time sessions settings should occur due to the midnight hour happening
  33.   if (!isset($_SESSION['today_is'])) {
  34.     $_SESSION['today_is'] = date('Y-m-d');
  35.   }
  36.   if ($_SESSION['today_is'] != date('Y-m-d')) {
  37.     $_SESSION['today_is'] = date('Y-m-d');
  38.     $_SESSION['updateExpirations'] = false;
  39.   }
  40. if (!isset($_SESSION['updateExpirations']) || $_SESSION['updateExpirations'] !== true) {
  41.   /**
  42.    * require the specials products functions, auto-activate and auto-expire
  43.    */
  44.   require(DIR_WS_FUNCTIONS . 'specials.php');
  45.   zen_start_specials();
  46.   zen_expire_specials();
  47.   /**
  48.    * require the featured products functions, auto-activate and auto-expire
  49.    */
  50.   require(DIR_WS_FUNCTIONS . 'featured.php');
  51.   zen_start_featured();
  52.   zen_expire_featured();
  53.   /**
  54.    * require the salemaker functions, auto-activate and auto-expire
  55.    */
  56.   require(DIR_WS_FUNCTIONS . 'salemaker.php');
  57.   zen_start_salemaker();
  58.   zen_expire_salemaker();
  59.  
  60.   $_SESSION['updateExpirations'] = true;
  61. }
  62. ?>


cron