forked from extern/egroupware
change names of holiday files for security reasons from holidays.<local> to holidays.<local>.csv and moved them into the (new) directory egroupware.org
This commit is contained in:
parent
856490c918
commit
83adb9e7ad
@ -18,7 +18,7 @@
|
||||
}
|
||||
|
||||
$send_back_to = str_replace('&locale='.$_POST['locale'],'',$send_back_to);
|
||||
$file = './holidays.'.$_POST['locale'];
|
||||
$file = './holidays.'.$_POST['locale'].'.csv';
|
||||
if(!file_exists($file))
|
||||
{
|
||||
if (count($_POST['name']))
|
0
calendar/setup/holidays.AU → calendar/egroupware.org/holidays.AU.csv
Executable file → Normal file
0
calendar/setup/holidays.AU → calendar/egroupware.org/holidays.AU.csv
Executable file → Normal file
6
calendar/egroupware.org/holidays.BR.csv
Normal file
6
calendar/egroupware.org/holidays.BR.csv
Normal file
@ -0,0 +1,6 @@
|
||||
BR Dia do Trabalho 1 5 0 0 0
|
||||
BR Dia da Independência 7 9 0 0 0
|
||||
BR Proclamação da República 15 11 0 0 0
|
||||
BR Nossa Senhora Aparecida 12 10 0 0 0
|
||||
BR Confraternização Universal 1 1 0 0 0
|
||||
BR Revolução Constitucionalista de 32 9 7 0 0 0
|
|
7
calendar/egroupware.org/holidays.BW.csv
Normal file
7
calendar/egroupware.org/holidays.BW.csv
Normal file
@ -0,0 +1,7 @@
|
||||
BW Neujahr 1 1 2004 0 0
|
||||
BW Heilige 3 Könige 6 1 2004 0 0
|
||||
BW Fronleichnahm 19 6 2003 0 0
|
||||
BW Tag der deutschen Einheit 3 10 2003 0 0
|
||||
BW Allerheiligen 1 11 2003 0 0
|
||||
BW 1. Weihnachtsfeiertag 25 12 2003 0 0
|
||||
BW 2. Weihnachtsfeiertag 26 12 2003 0 0
|
|
0
calendar/setup/holidays.CA → calendar/egroupware.org/holidays.CA.csv
Executable file → Normal file
0
calendar/setup/holidays.CA → calendar/egroupware.org/holidays.CA.csv
Executable file → Normal file
5
calendar/egroupware.org/holidays.CL.csv
Normal file
5
calendar/egroupware.org/holidays.CL.csv
Normal file
@ -0,0 +1,5 @@
|
||||
CL Fiestas Patrias 18 9 0 0 0
|
||||
CL Día del ejercito 19 9 0 0 0
|
||||
CL Día de la Raza 15 10 0 0 0
|
||||
CL Navidad 25 12 0 0 0
|
||||
CL Día de la virgen 8 12 0 0 0
|
|
6
calendar/egroupware.org/holidays.CO.csv
Normal file
6
calendar/egroupware.org/holidays.CO.csv
Normal file
@ -0,0 +1,6 @@
|
||||
CO DIA DE LA RAZA 15 10 0 0 0
|
||||
CO DIA DE TODOS LOS SANTOS 5 11 0 0 0
|
||||
CO INDEPENDENCIA CARTAGENA 12 11 0 0 0
|
||||
CO DIA DE LAS LUCES 8 12 0 0 0
|
||||
CO NAVIDAD 25 12 0 0 0
|
||||
CO AÑO NUEVO 1 1 0 0 0
|
|
8
calendar/egroupware.org/holidays.CZ.csv
Normal file
8
calendar/egroupware.org/holidays.CZ.csv
Normal file
@ -0,0 +1,8 @@
|
||||
CZ Nový rok 1 1 0 0 0
|
||||
CZ Nový rok 1 1 0 0 0
|
||||
CZ den osvobození 8 5 0 0 0
|
||||
CZ Cyril a Metodìj 5 7 0 0 0
|
||||
CZ Jan Hus 6 7 0 0 0
|
||||
CZ sv.Václava 28 9 0 0 0
|
||||
CZ den boje za svobodu 17 11 0 0 0
|
||||
CZ den boje za svobodu 17 11 0 0 0
|
|
5
calendar/setup/holidays.JP → calendar/egroupware.org/holidays.JP.csv
Executable file → Normal file
5
calendar/setup/holidays.JP → calendar/egroupware.org/holidays.JP.csv
Executable file → Normal file
@ -4,9 +4,10 @@ JP
|
||||
JP 春分の日 0 3 0 0 1
|
||||
JP みどりの日 29 4 0 0 1
|
||||
JP 憲法記念日 3 5 0 0 1
|
||||
JP 国民の祝日 4 5 0 0 1
|
||||
JP こどもの日 5 5 0 0 1
|
||||
JP 海の日 0 7 3 1 1
|
||||
JP 敬老の日 0 9 3 1 1
|
||||
JP 海の日 20 7 0 0 1
|
||||
JP 敬老の日 15 9 0 0 1
|
||||
JP 秋分の日 0 9 0 0 1
|
||||
JP 体育の日 0 10 2 1 1
|
||||
JP 文化の日 3 11 0 0 1
|
|
12
calendar/egroupware.org/holidays.MU.csv
Normal file
12
calendar/egroupware.org/holidays.MU.csv
Normal file
@ -0,0 +1,12 @@
|
||||
MU Fallas 19 3 0 0 0
|
||||
MU Fallas 18 3 0 0 0
|
||||
MU Fallas 20 3 0 0 0
|
||||
MU Semana Santa 28 3 0 0 0
|
||||
MU Semana Santa 29 3 0 0 0
|
||||
MU Semana Santa 1 4 0 0 0
|
||||
MU Semana Santa 2 4 0 0 0
|
||||
MU Semana Santa 3 4 0 0 0
|
||||
MU Semana Santa 4 4 0 0 0
|
||||
MU Semana Santa 5 4 0 0 0
|
||||
MU Semana Santa 8 4 0 0 0
|
||||
MU Día del trabajador 1 5 0 0 0
|
|
10
calendar/egroupware.org/holidays.MX.csv
Normal file
10
calendar/egroupware.org/holidays.MX.csv
Normal file
@ -0,0 +1,10 @@
|
||||
MX Año Nuevo 1 1 0 0 0
|
||||
MX Día de la Constitución 5 2 0 0 0
|
||||
MX N. Benito Juárez 21 3 0 0 0
|
||||
MX Día del Trabajo 1 5 0 0 0
|
||||
MX Día de las Madres 10 5 0 0 0
|
||||
MX Día de la Independencia 16 9 0 0 0
|
||||
MX Día de Muertos 2 11 0 0 0
|
||||
MX Revolución Mexicana 20 11 0 0 0
|
||||
MX Virgen de Guadalupe 12 12 0 0 0
|
||||
MX Navidad 25 12 0 0 0
|
|
15
calendar/egroupware.org/holidays.MY.csv
Normal file
15
calendar/egroupware.org/holidays.MY.csv
Normal file
@ -0,0 +1,15 @@
|
||||
MY New Year 1 1 0 0 0
|
||||
MY Chinese New Year 24 1 0 0 0
|
||||
MY Chinese New Year 25 1 0 0 0
|
||||
MY FT Day 1 2 0 0 0
|
||||
MY Hari Raya Haji 6 3 0 0 0
|
||||
MY Awal Muharram 26 3 0 0 0
|
||||
MY Labour Day 1 5 0 0 0
|
||||
MY Wesak Day 7 5 0 0 0
|
||||
MY Agong\'s Birthday 0 6 1 6 0
|
||||
MY Maulud Nabi 4 6 0 0 0
|
||||
MY Hari Merdeka 31 8 0 0 0
|
||||
MY Hari Raya Puasa 16 12 0 0 0
|
||||
MY Hari Raya Puasa 17 12 0 0 0
|
||||
MY Christmas Day 25 12 0 0 0
|
||||
MY Deepavali 14 11 0 0 0
|
|
8
calendar/egroupware.org/holidays.PL.csv
Normal file
8
calendar/egroupware.org/holidays.PL.csv
Normal file
@ -0,0 +1,8 @@
|
||||
PL Święto Konstytucji 3-go Maje 3 5 0 0 0
|
||||
PL Dzień Niepodległości 15 8 0 0 0
|
||||
PL Nowy Rok 1 1 0 0 0
|
||||
PL Boże Narodzenie - 1 dzień świąt 25 12 0 0 0
|
||||
PL Boże Narodzenie - 2 dzień świąt 26 12 0 0 0
|
||||
PL Świetej Barbary 4 12 0 0 0
|
||||
PL Święto Pracy 1 5 0 0 0
|
||||
PL Święto Konstytucji 3-go Maje 3 5 0 0 0
|
|
15
calendar/egroupware.org/holidays.TH.csv
Normal file
15
calendar/egroupware.org/holidays.TH.csv
Normal file
@ -0,0 +1,15 @@
|
||||
TH Çѹ¢Öé¹»ÕãËÁè 1 1 0 0 0
|
||||
TH ÁÒ¦ºÙªÒ 26 2 0 0 0
|
||||
TH Çѹ¨Ñ¡ÃÕ 8 4 0 0 0
|
||||
TH ʧ¡ÃÒ¹µì 15 4 0 0 0
|
||||
TH ʧ¡ÃÒ¹µì 16 4 0 0 0
|
||||
TH ª´àªÂÇѹ©ÑµÃÁ§¤Å 6 5 0 0 0
|
||||
TH Çѹ¾×ªÁ§¤Å 9 5 0 0 0
|
||||
TH ª´àªÂÇѹÇÔÊÒ¢ºÙªÒ 27 5 0 0 0
|
||||
TH ÇѹÍÒÊÒÌËºÙªÒ 24 7 0 0 0
|
||||
TH à¢éÒ¾ÃÃÉÒ 25 7 0 0 0
|
||||
TH Çѹà©ÅÔÁ¾ÃЪ¹Á¾ÃÃÉÒÊÁà´ç¨¾ÃÐÃÒªÔ¹Õ 12 8 0 0 0
|
||||
TH Çѹ»ÔÂÁËÒÃÒª 23 10 0 0 0
|
||||
TH Çѹà©ÅÔÁ¾ÃЪ¹Áì¾ÃÃÉÒÊÁà´ç¨¾ÃÐà¨éÒÍÂÙèËÑÇ 5 12 0 0 0
|
||||
TH ÇѹÃÑ°¸ÃÃÁ¹Ù 10 12 0 0 0
|
||||
TH ÇѹÊÔé¹»Õ 31 12 0 0 0
|
|
@ -237,10 +237,10 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
$pos = strpos(' '.$GLOBALS['phpgw_info']['server']['webserver_url'],$HTTP_HOST);
|
||||
$pos = strpos(' '.$GLOBALS['phpgw_info']['server']['webserver_url'],$_SERVER['HTTP_HOST']);
|
||||
if($pos == 0)
|
||||
{
|
||||
switch($SERVER_PORT)
|
||||
switch($_SERVER['SERVER_PORT'])
|
||||
{
|
||||
case 80:
|
||||
$http_protocol = 'http://';
|
||||
@ -249,16 +249,16 @@
|
||||
$http_protocol = 'https://';
|
||||
break;
|
||||
}
|
||||
$server_host = $http_protocol.$HTTP_HOST.$GLOBALS['phpgw_info']['server']['webserver_url'];
|
||||
$server_host = $http_protocol.$_SERVER['HTTP_HOST'].$GLOBALS['phpgw_info']['server']['webserver_url'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$server_host = $GLOBALS['phpgw_info']['server']['webserver_url'];
|
||||
}
|
||||
$load_from = $server_host.'/calendar/setup';
|
||||
$load_from = $server_host.'/calendar/egroupware.org';
|
||||
}
|
||||
// echo 'Loading from: '.$load_from.'/holidays.'.strtoupper($locale)."<br>\n";
|
||||
$lines = $network->gethttpsocketfile($load_from.'/holidays.'.strtoupper($locale));
|
||||
$lines = $network->gethttpsocketfile($load_from.'/holidays.'.strtoupper($locale).'csv');
|
||||
if (!$lines)
|
||||
{
|
||||
return false;
|
||||
|
@ -1,13 +0,0 @@
|
||||
US New Years 1 1 0 0 1
|
||||
US Martin Luther King's Birthday 0 1 3 1 0
|
||||
US Inauguration Day 20 1 0 0 0
|
||||
US Presidents Day 0 2 3 1 0
|
||||
US Armed Forces Day 0 5 3 6 0
|
||||
US Memorial Day 0 5 99 1 0
|
||||
US Flag Day 14 6 0 0 0
|
||||
US Independence Day 4 7 0 0 1
|
||||
US Labor Day 0 9 1 1 0
|
||||
US Columbus Day 0 10 2 1 0
|
||||
US Veterans Day 11 11 0 0 1
|
||||
US Thanksgiving Day 0 11 4 4 0
|
||||
US Christmas Day 25 12 0 0 1
|
Loading…
Reference in New Issue
Block a user