Location: PHPKode > projects > O - OpenSource GroupWare > osgw/calendar/config/data/o_holidays.php
<?php
/**************************************************************************
   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 Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   @Authors:	Ryan Thompson(hide@address.com)
***************************************************************************/

$file_dat = file("$root_dir/calendar/config/holiday_data");
$i = 0;
foreach($file_dat AS $value)
{
	
	if(substr($value, 0, 1) != "#" && strlen($value) > 10)
	{
		
		$holiday_list = explode("=>", $value);
		$j = 0;
		foreach($holiday_list AS $holiday_values)
		{
			$holiday[$j] = trim($holiday_values);
			$j++;
		}
	
		$data[$i] = array(
			"holiday"=>"{$holiday[0]}",
			"day"=>"{$holiday[1]}",
			"month"=>"{$holiday[2]}",
			"country"=>"{$holiday[3]}",
			"statutory"=>"{$holiday[4]}",
			"occurrence"=>"{$holiday[5]}",
			"special"=>"{$holiday[6]}");
			
	}
	$i++;

}
Return current item: O - OpenSource GroupWare