<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (WD-World-ML template set)
############################################################################
#
#	Project:	Sample Included Website Design
#	Module:		Settings.php
#	Purpose:	Provides the Site Settings Used Throughout the Site
# 	Authors:	Kevin W. Reed <kreed@tnet.com>
#				TNET Services, Inc.
#
# 	Copyright:	(c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# 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.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
############################################################################
#	This document uses Tab 4 Settings
############################################################################
$SITE 			= array();

# Automatic Info we might need
############################################################################
$SITE['REMOTE_ADDR']	= $_SERVER['REMOTE_ADDR'];
$SITE['REMOTE_HOST']	= $_SERVER['REMOTE_HOST'];
$SITE['WEBROOT']		= $_SERVER['DOCUMENT_ROOT'];
$SITE['REQURI']			= $_SERVER['REQUEST_URI'];
$SITE['SERVERNAME']		= $_SERVER['SERVER_NAME'];

# Sitewide configuration
#
############################################################################
$SITE['charset']		= 'ISO-8859-1'; // character set for webpages (iso-8859-1=latin)
$SITE['WDlanguage']		= 'en';  // Language used by WD
#  ='en' - English, 'de' = German, 'dk' = Danish, 'it'=Italian, 'fr'=French,
#  ='es' - Spanish, 'no' = Norwegian 
#
# Multilanguage support 
$SITE['allowLanguageSelect'] = true; // set to false to disable the the use of language selector
$SITE['useLanguageFlags'] = true;  // true=show flags, false=show language 2-char abbreviations
$SITE['lang'] = 'nl'; // default language
$SITE['langavail'] = array('en',   // select languages to offer here.  Use comments to remove languages
// array('en', should be first entry on line above
//  'ct', // 'catalan',
  'dk', // 'danish',
  'nl', // 'dutch',
  'fi', // 'finnish',
  'fr', // 'french',
//  'de', // 'german',
  'el', // 'greek',
  'it', // 'italian',
  'no', // 'norwegian',
  'pt', // 'portuguese',
  'es', // 'spanish',
  'se', // 'swedish',
);

$SITE['CSSscreen']		= 'weather-screen-php.css'; // 800px design
$SITE['CSSprint']		= 'weather-print-php.css';
#
#$SITE['CSSscreen']		= 'weather-screen.css'; // Classic design
#$SITE['CSSprint']		= 'weather-print.css';

#############################################
# Mike Challis' Theme Switch configuration
$SITE['allowThemeSwitch']   = true;  // set to false to disable the the use of Theme Switcher 
$SITE['CSSscreenDefault'] = 'weather-screen-orange.css';
$SITE['CSSwideOrNarrowDefault'] = 'narrow'; // 'narrow' or 'wide'
# CSSsettings_mode
# sets allowable user style select options:
# 1 user can select style and screen width (show style select and screen width select)
# 2 user can select styles only (hide screen width select)
# 3 user can select screen width only (hide style select)
$SITE['CSSsettings_mode'] = 1;  // set to 1, 2 or 3
#############################################
$SITE['flyoutmenu'] = true; // set to false to use classic menubar.php instead

$SITE['clientrawfile']	= './clientraw.txt';  // relative FILE location of clientraw.txt

# if your WD uploads almanac dates using a language OTHER THAN English, please put the month
# names in your language to replace the English ones below.  This is used primarily by the
# wxastronomy.php page for the local dates of moon phases, solistices, and equinoxes
$SITE['monthNames'] = array(  // for wxastronomy page .. replace with month names in your language 
'January','February','March','April','May','June',
'July','August','September','October','November','December'
);

//$SITE['monthNames'] = array(  // Danish for wxastronomy page .. replace with month names in your language
//'januari','februari','maart','april','mei','juni',
//'juli','augustus','september','oktober','november','december'
//);

# Configurable Carterlake/WD/PHP template Site Settings
############################################################################
$SITE['WXtags']			= 'testtags.php';  // for testtags.php weather variables
//$SITE['WXtags'] = 'testtags-dk.php';
$SITE['organ']			= 'Weerstation Hengelo gld';
$SITE['copyr']			= '&copy; ' . date("Y",time()) . ', Middenweg.com';
$SITE['remote']			= "onclick=\"window.open(this.href,'_blank');return false;\"";
$SITE['tz'] 			= 'PST8PDT'; //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//  http://saratoga-weather.org/timezone.txt  has the list of timezone names
//  pick the one that is closest to your location and put in $ourTZ like:
//    $ourTZ = 'America/Los_Angeles';  // or
//    $ourTZ = 'Europe/Brussels';
$SITE['location']       = 'Hengelo gld, Nederland';
$SITE['email']			= 'mailto:somebody@somemail.org';
# Weather Station sensors
$SITE['DavisVP']		= false;  // set to false if not a Davis VP weather station
$SITE['UV']				= false;  // set to false if no UV sensor
$SITE['SOLAR']			= true;  // set to false if no Solar sensor
$SITE['showSnow']		= true;   // set to false if snow not recorded on WD
$SITE['showSnowTemp'] 	= 4;	  // show snow instead of rain if temp (C) is <= this amount
# Station location: latitude, longitude, cityname
$SITE['latitude']		= '52.04566956';    //North=positive, South=negative decimal degrees
$SITE['longitude']		= '6.31252289';  //East=positive, West=negative decimal degrees
$SITE['cityname']		= 'Hengelo gld';
#
#Forecast script settings area
#
$SITE['UVscript']		= 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index
//	comment out above line to exclude UV forecast
//
# if you have WXSIM and plaintext-parser.php, set $SITE['WXSIM'] = true;
# to have the WXSIM forecast text appear in the dashboard along with your primary forecast org's
# forecast.  
$SITE['WXSIM']			= true;  // Set to false if no WXSIM/plaintext-parser.php
$SITE['WXSIMscript'] 	= 'plaintext-parser.php'; // script for decoding plaintext.txt into icons
$SITE['defaultlang']	= 'en';   // 'en' for English (WXSIM plaintext-parser.php)

# fcsturlWU  the Wunderground URL for the non-US/non-Canadian forecasts (WU-forecast.php)
$SITE['fcsturlWU'] 		= 'http://www.wunderground.com/global/stations/06283.html'; // Hengelo gld
$SITE['fcsturlWU'] 		= 'http://www.wunderground.com/global/stations/06283.html'; // Hengelo gld, nederland
$SITE['fcsticonsdir'] = 'http://www.middenweg.com/wxa/ajax-images/'; 
// NOAA-style icons for NWS, WU, WXSIM forecast scripts
#
#---- in the following section, enable settings for ONE primary forecast organization
# pick which script AND org are to be used for your forecast here: (last uncommented pair will
#  be the ones used on the wxforecast.php page and in your dashboard and sidebar

$SITE['fcstscript']	= 'WU-forecast.php';    // Non-USA, Non-Canada Wunderground Forecast Script
$SITE['fcstorg']		= 'WU';    // set to 'WU' for WeatherUnderground

#$SITE['fcstscript']	= 'plaintext-parser.php';    // WXSIM forecast (if only forecast script)
#$SITE['fcstorg']		= 'WXSIM';    // set to 'WXSIM' for WXSIM forecast

###########################################################################

# ajax-dashboard, ajax-sidebar settings (will override defaults in
#  the scripts themselves when included in this site
###########################################################################
$SITE['WDdateMDY'] = false; // for WD date format of month/day/year.  =false for day/month/year
$SITE['uomTemp'] = '&deg;C';
$SITE['uomBaro'] = ' hPa';
$SITE['uomWind'] = ' km/h';
$SITE['uomRain'] = ' mm';
$SITE['uomDistance'] = ' km';  // or ' miles' -- used for Wind Run display
$SITE['uomPerHour'] = '/hr';
$SITE['imagesDir'] = './ajax-images/';  // directory for ajax-images with trailing slash
# note: date format used for PHP parts only.  Weather-Display dates are not processed
#   except on the astronomy page
#$SITE['timeFormat'] = 'D, d-M-Y g:ia T';  // Day, 31-Mar-2006 6:35pm Tz  (USA Style)
//$SITE['timeFormat'] = 'm/d/Y g:ia';      // USA  format 03/31/2006 14:03
$SITE['timeFormat'] = 'd/m/Y H:i';       // Euro format 31/03/2006 14:03
//$SITE['timeFormat'] = 'Y-m-d H:i';       // ISO  format 2006-03-31 14:03

#$SITE['timeOnlyFormat'] = 'g:ia';          // USA format h:mm[am|pm\
$SITE['timeOnlyFormat'] = 'H:i';          // Euro format hh:mm  (hh=00..23);
$SITE['dateOnlyFormat'] = 'd/m/Y';        // for 31-Mar-2008 or 'j/n/Y' for Euro format

##########################################################################
# end of configurable settings
#
# Multilanguage support constants - please do NOT change the settings below
#DO NOT CHANGE THESE SETTINGS
$SITE['installedLanguages'] = array (
  'ct' => 'Catal&agrave;',
  'dk' => 'Dansk',
  'nl' => 'Nederlands',
  'en' => 'English',
  'fi' => 'Suomi',
  'fr' => 'Fran&ccedil;ais',
  'de' => 'Deutsch',
  'el' => '&Epsilon;&lambda;&lambda;&eta;&nu;&iota;&kappa;&alpha;',
  'it' => 'Italiano',
  'no' => 'Norsk',
  'pt' => 'Portugu&ecirc;s',
  'es' => 'Espa&ntilde;ol',
  'se' => 'Svenska',
);
# DO NOT CHANGE THESE SETTINGS
$SITE['ISOLang'] = array ( // ISO 639-1 2-character language abbreviations from country domain 
  'ct' => 'ca',
  'dk' => 'da',
  'nl' => 'nl',
  'en' => 'en',
  'fi' => 'fi',
  'fr' => 'fr',
  'de' => 'de',
  'el' => 'el',
  'it' => 'it',
  'no' => 'no',
  'pt' => 'pt',
  'es' => 'es',
  'se' => 'sv',
);
# DO NOT CHANGE THESE SETTINGS
$SITE['langCharset'] = array( // for languages that DON'T use ISO-8859-1 (latin) set
 'el' => 'ISO-8859-7',
 'ru' => 'UTF-8',
 'gr' => 'UTF-8'
);
# DO NOT CHANGE THESE SETTINGS
$SITE['WULanguages'] = array ( // for WeatherUnderground forecast supported languages
  'ct' => 'catalan',
  'dk' => 'danish',
  'nl' => 'dutch',
  'en' => 'english',
  'fi' => 'finnish',
  'fr' => 'french',
  'de' => 'deutsch',
  'el' => 'greek',
  'it' => 'italian',
  'no' => 'norwegian',
  'pt' => 'portuguese',
  'es' => 'espanol',
  'se' => 'swedish',
);
# End - multilanguage support constants
# Now prune the installedLanguages based on langavail selection
$tarray = array(); 
foreach ($SITE['langavail'] as $n => $k) {
  if(isset($SITE['installedLanguages'][$k])) {
    $tarray[$k] = $SITE['installedLanguages'][$k];
  }
}
$SITE['installedLanguages'] = $tarray;
# end prune the installedLanguages based on langavail selection
#
# set the Timezone abbreviation automatically based on $SITE['tzname'];
putenv("TZ=".$SITE['tz']);
$SITE['tzname']	= date("T",time());
if($SITE['allowThemeSwitch']) {
  # begin Color Theme Switcher Plugin by Mike Challis
  # http://www.carmosaic.com/weather/scripts.php
  include_once('include-style-switcher.php');
  $SITE['CSSscreen'] = validate_style_choice();
  # end Color Theme Switcher Plugin
} else {
  session_start(); // for preservation of language settings.
  if ($SITE['CSSwideOrNarrowDefault'] == 'wide') {
          $_SESSION['CSSwidescreen'] = 1;
          $CSSstyle = str_replace ('.css','-wide.css',$SITE['CSSscreenDefault']);
  } else {
          $_SESSION['CSSwidescreen'] = 0;
          $CSSstyle = str_replace ('.css','-narrow.css',$SITE['CSSscreenDefault']);
  }
  $SITE['CSSscreen'] = $CSSstyle;
}
?>