Revision 727,
1.3 KB
checked in by niltonneto, 16 years ago
(diff) |
Commit inicial.
|
Rev | Line | |
---|
[727] | 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 | |
---|
| 15 | if (empty($GLOBALS['phpgw_info']['user']['preferences']['common']['country'])) |
---|
| 16 | { |
---|
| 17 | $rule = 'US'; |
---|
| 18 | } |
---|
| 19 | else |
---|
| 20 | { |
---|
| 21 | $rule = $GLOBALS['phpgw_info']['user']['preferences']['common']['country']; |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | $calc_include = PHPGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_'.$rule.'.inc.php'; |
---|
| 25 | if(@file_exists($calc_include)) |
---|
| 26 | { |
---|
| 27 | include($calc_include); |
---|
| 28 | } |
---|
| 29 | else |
---|
| 30 | { |
---|
| 31 | include(PHPGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_US.inc.php'); |
---|
| 32 | } |
---|
| 33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.