<?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
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;
}
}
*/
?>