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

Zen Cart 源代码 compatibility.php




下载文件

文件名: compatibility.php
文件类型: PHP文件
文件大小: 1.07 KiB
MD5: 107a02d3c74fce0d90ac259278f91a43

compatibility.php - 打开高亮
<?php
/**
 * compatibility functions
 *
 * @package functions
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: compatibility.php 2618 2005-12-20 00:35:47Z drbyte $
 */


/////////////////////////////////////////
// remove in v1.3 ?
/*
// disabled
  if (!function_exists('fmod')) {
    function fmod($zf_x, $zf_y) {
      $zp_i = floor($zf_x/$zf_y);
      return $zf_x - $zp_i/$zf_y;
    }
  }
*/
// mange for values < 1
  if (!function_exists('fmod')) {
    function fmod($x2, $y2) {
      $i2 = fmod($x2*1000,$y2*1000);
      return $i2;
    }
  }
/////////////////////////////////////////


// The following is not tested extensively, but should work in theory:
/*  if (!function_exists('file_get_contents')) {
    function file_get_contents($zf_file) {
      $za_file=file($zf_file);
      foreach ($za_file as $line) {
        $zp_return .= $line;
      }
      return $zp_return;
    }
  }
*/

?>