[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/includes/functions/ -> compatibility.php (source)

   1  <?php
   2  /**

   3   * compatibility functions

   4   *

   5   * @package functions

   6   * @copyright Copyright 2003-2005 Zen Cart Development Team

   7   * @copyright Portions Copyright 2003 osCommerce

   8   * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

   9   * @version $Id: compatibility.php 2618 2005-12-20 00:35:47Z drbyte $

  10   */
  11  
  12  
  13  /////////////////////////////////////////

  14  // remove in v1.3 ?

  15  /*

  16  // disabled

  17    if (!function_exists('fmod')) {

  18      function fmod($zf_x, $zf_y) {

  19        $zp_i = floor($zf_x/$zf_y);

  20        return $zf_x - $zp_i/$zf_y;

  21      }

  22    }

  23  */
  24  // mange for values < 1

  25    if (!function_exists('fmod')) {
  26      function fmod($x2, $y2) {
  27        $i2 = fmod($x2*1000,$y2*1000);
  28        return $i2;
  29      }
  30    }
  31  /////////////////////////////////////////

  32  
  33  
  34  // The following is not tested extensively, but should work in theory:

  35  /*  if (!function_exists('file_get_contents')) {

  36      function file_get_contents($zf_file) {

  37        $za_file=file($zf_file);

  38        foreach ($za_file as $line) {

  39          $zp_return .= $line;

  40        }

  41        return $zp_return;

  42      }

  43    }

  44  */
  45  
  46  ?>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics