[ Index ] |
|
Code source de osCommerce 2.2ms2-060817 |
1 <?php 2 /* 3 $Id: general.php,v 1.4 2003/07/09 01:11:05 hpdl Exp $ 4 5 osCommerce, Open Source E-Commerce Solutions 6 http://www.oscommerce.com 7 8 Copyright (c) 2003 osCommerce 9 10 Released under the GNU General Public License 11 */ 12 13 function osc_in_array($value, $array) { 14 if (!$array) $array = array(); 15 16 if (function_exists('in_array')) { 17 if (is_array($value)) { 18 for ($i=0; $i<sizeof($value); $i++) { 19 if (in_array($value[$i], $array)) return true; 20 } 21 return false; 22 } else { 23 return in_array($value, $array); 24 } 25 } else { 26 reset($array); 27 while (list(,$key_value) = each($array)) { 28 if (is_array($value)) { 29 for ($i=0; $i<sizeof($value); $i++) { 30 if ($key_value == $value[$i]) return true; 31 } 32 return false; 33 } else { 34 if ($key_value == $value) return true; 35 } 36 } 37 } 38 39 return false; 40 } 41 42 //// 43 // Sets timeout for the current script. 44 // Cant be used in safe mode. 45 function osc_set_time_limit($limit) { 46 if (!get_cfg_var('safe_mode')) { 47 set_time_limit($limit); 48 } 49 } 50 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 19:48:25 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |