[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - holidaycalc * 4 * http://www.egroupware.org * 5 * Based on Yoshihiro Kamimura <your@itheart.com> * 6 * http://www.itheart.com * 7 * -------------------------------------------- * 8 * This program is free software; you can redistribute it and/or modify it * 9 * under the terms of the GNU General Public License as published by the * 10 * Free Software Foundation; either version 2 of the License, or (at your * 11 * option) any later version. * 12 \**************************************************************************/ 13 14 /* $Id: class.holidaycalc.inc.php 22393 2006-09-03 05:14:03Z ralfbecker $ */ 15 16 if (empty($GLOBALS['egw_info']['user']['preferences']['common']['country']) || 17 strlen($GLOBALS['egw_info']['user']['preferences']['common']['country']) > 2) 18 { 19 $rule = 'US'; 20 } 21 else 22 { 23 $rule = $GLOBALS['egw_info']['user']['preferences']['common']['country']; 24 } 25 26 $calc_include = EGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_'.$rule.'.inc.php'; 27 if(@file_exists($calc_include)) 28 { 29 include($calc_include); 30 } 31 else 32 { 33 include (EGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_US.inc.php'); 34 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |