コード例 #1
0
ファイル: config.php プロジェクト: nando/leonardoxc
$CONF['seasons']['seasons'] = array(2008 => array('start' => '2007-10-1', 'end' => '2008-09-30'), 2007 => array('start' => '2006-10-1', 'end' => '2007-9-30', 'subseasons' => array('winter' => array('start' => '2006-10-1', 'end' => '2007-3-31', 'localName' => 'winterInLocalLanguage'), 'summer' => array('start' => '2007-3-1', 'end' => '2007-9-30', 'localName' => 'summerInLocalLanguage'))));
// The next 4 values will be used in case of 	$CONF['seasons']['show_only_defined_seasons']=0
$CONF['seasons']['season_default_start'] = '10-1';
$CONF['seasons']['season_default_end'] = '9-31';
// ONLY ONE of the 3 next varibles canbe set to TRUE !!!
// if the season 2007 is 2006-10-1 till  2007-9-30
$CONF['seasons']['season_start_year_diff'] = -1;
$CONF['seasons']['season_end_year_diff'] = 0;
// else if season 2007 is 2007-4-1 till  2008-3-31
//$CONF['seasons']['season_start_year_diff']=0;
//$CONF['seasons']['season_end_year_diff']=1;
// else if season 2007 is 2007-1-1 till  2007-12-31
//$CONF['seasons']['season_start_year_diff']=0;
//$CONF['seasons']['season_end_year_diff']=0;
$CONF['seasons']['start_season'] = 2006;
$CONF['seasons']['end_season'] = dates::getCurrentSeason(0);
// end of seasons config
// start of BRANDS MOD
$CONF['brands']['filter_brands'] = 0;
$CONF['brands']['showAll'] = 0;
$CONF['brands']['list'] = array();
$CONF['brands']['filterList'] = array(1, 2, 4);
// end of BRANDS MOD
// this is the default setting for the user's -> "My settings"
$CONF_googleMapsShow = 1;
// 1- > western -> firstName - LastName
// 2- > eastern -> LastName - firstName
$CONF_defaultNameOrder = 1;
// USE airspace checking
$CONF_airspaceChecks = 0;
// airspace infrigments will be show to admins and the owner of the track
コード例 #2
0
ファイル: config_ranks.php プロジェクト: Peter2121/leonardoxc
		 
		'subranks'=>array(
			1=>array('id'=>1,
				'name'=>'Paraglider',
				'localName'=>'Paraglider',
			),
			2=>array('id'=>2,
				'name'=>'Hangglider',
				'localName'=>'Drachen',
			),

		),
	),


);
*/
require_once dirname(__FILE__) . "/../CL_dates.php";
foreach ($ranksList as $tmpRankID => $tmpRank) {
    $foundCurrentSeason = 0;
    if ($ranksList[$tmpRankID]['seasons']['end_season'] == 'current') {
        $foundCurrentSeason = dates::getCurrentSeason($tmpRankID);
        $ranksList[$tmpRankID]['seasons']['end_season'] = $foundCurrentSeason;
    }
    if ($ranksList[$tmpRankID]['datesMenu'] == 'seasons' && $ranksList[$tmpRankID]['menuYear'] == 'current') {
        if (!$foundCurrentSeason) {
            $foundCurrentSeason = dates::getCurrentSeason($tmpRankID);
        }
        $ranksList[$tmpRankID]['menuYear'] = $foundCurrentSeason;
    }
}
コード例 #3
0
ファイル: config_clubs.php プロジェクト: Peter2121/leonardoxc
			) ,
	5=>array(	"desc"=>"Danish XC league",
				"id"=>5,
				"lang"=>"danish",
				"areaID"=>0,
				"addManual"=>0,
				"adminID"=>76,
				// extra fields to expand club functionality
				"noSpecificMembers"=>1,
				"defaultDisplayLanguage"=>"danish",
				"defaultDisplayTheme"=>"basic",
				"countryCodes"=>array("dk"),
				"pilotNationality"=>array("dk"),
				"gliderCat"=>array(1),
				
				"startYear"=>"2006",
				"startMonth"=>"0",
				"startDay"=>"0",
				"endYear"=>"2006",
				"endMonth"=>"0",
				"endDay"=>"0",
			) ,
 );
*/
foreach ($clubsList as $i => $clubInfo) {
    if (is_array($clubsList[$i]['seasons'])) {
        $clubsList[$i]['seasons']['end_season'] = dates::getCurrentSeason(0, $i);
    }
}
// uncomment this to disable clubs
// $clubsList=array();