<?php
/**
  @licence GPL 2005-2011  The osCSS developers - osCSS Open Source E-commerce
  @portion code Copyright (c) 2002 osCommerce
  @package osCSS-2 <www http://www.oscss.org>
  @version 2.1.0
  @date  12/02/11, 15:02
  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
  @encode UTF-8

  Gestion du cache des librairie et et class du core chargée pour toutes les pages
*/

  $file[]=DIR_FS_CATALOG.DIR_WS_COMMON . 'class.interfaces.php';
  $file[]=DIR_WS_FUNCTIONS . 'initialize.php';
  $file[]=DIR_WS_COMMON_FUNCTIONS . 'database.php';
  $file[]=DIR_WS_COMMON_CLASSES . 'Database.php';

  require_once(DIR_WS_COMMON_CLASSES.'osCSS_CacheLib.php');

  if(OSCSS_DEBUG == false){
    if (CacheLib::read('core_lib_min-'.md5(__FILE__)) === false) {
      CacheLib::addfiles($file);
    }
    include(CacheLib::getfilecache());
  }
  else {
    foreach($file as $item)
      include_once($item);
  }
  unset($file);
?>