WiND Setup

Configuration

WiND has a sample folder named config-sample/. In this folder there are the basic configuration properties needed.
First, you must copy the folder config-sample/ to config/ located in the main project folder.
Below is a list with the contents of config/ folder and their explanation.

config/config.php

	'db' => array(
'server' => "server.example.org",
'username' => "youruser",
'password' => "yourpassword",
'database' => "yourdatabase",
'version' => yourversion //Ex. 4.0, 4.1, 5
),

This section contains the information for the database that stores the project data.

	'site' => array(
'domain' => 'server.example.org',
'url' => 'http://server.example.org/'
),

This section contains your server domain name and url that hosts the project.

	'cookies' => array(
'expire' => (60 * 60 * 24 * 30)
),

You can set the expiration time for all cookies that are being used by the project. The time is in seconds.

	'message' => array(
'delay' => 5
),

You can set the delay time for all messages that are being displayed by the project. The time is in seconds.

	'templates' => array(
'path' => ROOT_PATH.'templates/',
'compiled_path' => ROOT_PATH.'templates/_compiled/',
'default' => 'basic'
),

This section defines the templates properties configuration.

This section defines the language configuration.

You can set the place of the smarty class. If the Smarty library does not exist in your system, please visit http://smarty.php.net/ to download the latest version. Notice that version 2.6.x is recommended.

	'constructor' => array(
'max_rows' => 50
),

You can set the maximun rows displayed per page into tables.

	'dns' => array(
'root_zone' => 'yourdomain',
'ns_zone' => 'ns.yourdomain',
'reverse_zone' => 'in-addr.arpa',
'forward_zone_schema' => ROOT_PATH.'tools/dnszones-poller/yourdomain.schema',
'reverse_zone_schema' => ROOT_PATH.'tools/dnszones-poller/10.in-addr.arpa.schema'
),

This section defines the dns zones configuration.

Some folders used by the project.

This section defines the mail properties.

You can set the path that contains the NASA's SRTM data. You can download the files (that concerns your area) and place them manually into this path. This data files contains the elevation information needed by the project, to plot the line of sight between two nodes.

	'gmap' => array(
'server' => 'maps.google.com',
'maps_available' => array(
'satellite' => true,
'map' => false,
'hybrid' => false,
//Sample scripts for custom image map server can be found in the tools subdirectory
/*'custom_maps' => array(
0 => array(
'url' => 'http://server.example.org/maps/index.php?',
'name' => 'Custom1',
'coordinates_type' => 'map'
),
1 => array(
'url' => 'http://server.example.org/maps/index.php?',
'name' => 'Custom2',
'coordinates_type' => 'satellite'
),
),*/
'default' => 'satellite'
),
'keys' => array( // Domains must be as in $_SERVER['SERVER_NAME'] variable
'server.example.org/path' => 'example_key'
),
'bounds' => array(
'min_latitude' => MINLAT_GPS_COORDINATE,
'min_longitude' => MINLON_GPS_COORDINATE,
'max_latitude' => MAXLAT_GPS_COORDINATE,
'max_longitude' => MAXLON_GPS_COORDINATE
)
),

This section setups Google Maps.

You can enable/disable the WiND debug mode. Actually this is used by developers. You propably don't need it.

config/language/LANGUAGE_overwrite.php

Where LANGUAGE replace with the language you want to overwrite values for. You can create these files if you want to overwrite some language values to perfectly customize your site. For example you will probably need to change the 'site_title' or the email contents without touching the original language files. In this way, the updates will be a piece of cake. :-)

config/startup.html

Create a file named startup.html into config/ folder. You can place any information in (X)HTML format. This page will be displayed in the first page of the project.

config/mylogo.png

Create a file named mylogo.png into config/ folder. This logo will be displayed by the selected template in the appropriate place (if it is supported).