diff --git a/calendar/inc/class.uiholiday.inc.php b/calendar/inc/class.uiholiday.inc.php index e825100549..047513c818 100755 --- a/calendar/inc/class.uiholiday.inc.php +++ b/calendar/inc/class.uiholiday.inc.php @@ -468,7 +468,7 @@ } else { - $action = 'http://www.phpgroupware.org/cal/accept_holiday.php'; + $action = 'http://www.egroupware.org/cal/accept_holiday.php'; } $GLOBALS['phpgw_info']['flags']['noappheader'] = True; $GLOBALS['phpgw_info']['flags']['noappfooter'] = True; @@ -482,17 +482,13 @@ echo ''."\n"; for($i=0;$i<$c_holidays;$i++) { - echo ''."\n" + echo ''."\n" . ''."\n" . ''."\n" . ''."\n" . ''."\n" . ''."\n"; } - if ($mailto) - { - echo "\n"; - } echo "\n\n"; } diff --git a/calendar/phpgroupware.org/accept_holiday.php b/calendar/phpgroupware.org/accept_holiday.php index dd1b3e03c0..4e030f2f9b 100644 --- a/calendar/phpgroupware.org/accept_holiday.php +++ b/calendar/phpgroupware.org/accept_holiday.php @@ -2,7 +2,7 @@ /**************************************************************************\ * phpGroupWare * * http://www.phpgroupware.org * - * Written by Mark Peters * + * Written by Mark Peters * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * @@ -11,24 +11,23 @@ \**************************************************************************/ /* $Id$ */ - $send_back_to = str_replace('submitlocale','holiday_admin',$HTTP_REFERER); - $send_back_to = str_replace('submit','admin',$HTTP_REFERER); // 0.9.14.xxx - if(!$locale) + $send_back_to = str_replace('submit','admin',$_SERVER['HTTP_REFERER']); + if(!$_POST['locale']) { Header('Location: '.$send_back_to); } - $send_back_to = str_replace('&locale='.$locale,'',$send_back_to); - $file = './holidays.'.$locale; + $send_back_to = str_replace('&locale='.$_POST['locale'],'',$send_back_to); + $file = './holidays.'.$_POST['locale']; if(!file_exists($file)) { - if (count($name)) + if (count($_POST['name'])) { - $c_holidays = count($name); + $c_holidays = count($_POST['name']); $fp = fopen($file,'w'); for($i=0;$i<$c_holidays;$i++) { - fwrite($fp,$locale."\t".$name[$i]."\t".$day[$i]."\t".$month[$i]."\t".$occurence[$i]."\t".$dow[$i]."\t".$observance[$i]."\n"); + fwrite($fp,$_POST['locale']."\t".$_POST['name'][$i]."\t".$_POST['day'][$i]."\t".$_POST['month'][$i]."\t".$_POST['occurence'][$i]."\t".$_POST['dow'][$i]."\t".$_POST['observance'][$i]."\n"); } fclose($fp); } @@ -40,16 +39,16 @@ - phpGroupWare.org: There is already a holiday-file for '<?php echo $locale; ?>' !!! + eGroupWare.org: There is already a holiday-file for '<?php echo $_GET['locale']; ?>' !!! -

There is already a holiday-file for '' !!!

+

There is already a holiday-file for '' !!!

-

If you think your version of the holidays for '' should replace - the existing one, please download the file - and mail it to us.

+

If you think your version of the holidays for '' should replace + the existing one, please download the file + and mail it to us.

-

To get back to your own phpGroupWare-install click here.

+

To get back to your own eGroupWare-install click here.