source: trunk/config-sample/config.php @ 247

Revision 247, 3.0 KB checked in by sque, 11 months ago (diff)

Add "community" concept on config and installation.
Improve home page, by adding a general welcome text (Closes #149).
Design and integrate favicon on frontend and installer.

Line 
1<?php
2
3$config = array(
4       
5        'db' => array(
6                'server' => "server.example.org",
7                'username' => "youruser",
8                'password' => "yourpassword",
9                'database' => "yourdatabase",
10                'version' => 5.0                //Ex. 4.0, 4.1, 5
11                ),
12               
13        'site' => array(
14                'domain' => 'server.example.org',
15                'url' => 'http://server.example.org/'
16                ),
17        'community' => array(
18                'name' => 'Anonymous Wireless Community',
19                'short_name' => 'AWC'
20        ),
21        'cookies' => array(
22                'expire' => (60 * 60 * 24 * 30)
23                ),
24
25        'message' => array(
26                'delay' => 5
27                ),
28
29        'templates' => array(
30                'path' => ROOT_PATH.'templates/',
31                'compiled_path' => ROOT_PATH.'templates/_compiled/',
32                'default' => 'basic'
33                ),
34               
35        'language' => array(
36                'default' => 'greek',
37                'enabled' => array(
38                        'greek' => TRUE,
39                        'english' => TRUE)
40                ),
41               
42        'smarty' => array(
43                'class' => '/usr/share/php/smarty/libs/Smarty.class.php'
44                ),
45               
46        'constructor' => array(
47                'max_rows' => 50
48                ),
49       
50        'dns' => array(
51                'root_zone' => 'yourdomain',
52                'ns_zone' => 'ns.yourdomain',
53                'reverse_zone' => 'in-addr.arpa',
54                'forward_zone_schema' => ROOT_PATH.'tools/dnszones-poller/yourdomain.schema',
55                'reverse_zone_schema' => ROOT_PATH.'tools/dnszones-poller/10.in-addr.arpa.schema'
56                ),
57       
58        'folders' => array(
59                'photos' => ROOT_PATH.'files/photos/'
60                ),
61       
62        'mail' => array(
63                'smtp' => '', // if not set default used from php.ini file
64                'smtp_port' => '25',
65                'from' => 'hostmaster@server.example.org',
66                'from_name' => 'WiND Hostmaster'
67                ),
68       
69        'srtm' => array(
70                'path' => ROOT_PATH.'files/srtm/'
71                ),
72               
73        'gmap' => array(
74                'server' => 'maps.google.com',
75                'maps_available' => array(
76                        'satellite' => true,
77                        'normal' => true,
78                        'hybrid' => true,
79                                                'physical' => true,
80
81                                                //Sample scripts for custom image map server can be found in the tools subdirectory
82                        /*'custom_maps' => array(
83                              0 => array(
84                                      'url' => 'http://server.example.org/maps/index.php?',
85                                      'name' => 'Custom1',
86                                      'coordinates_type' => 'map'
87                                      ),
88                                1 => array(
89                                        'url' => 'http://server.example.org/maps/index.php?',
90                                        'name' => 'Custom2',
91                                        'coordinates_type' => 'satellite'
92                                        ),
93                                ),*/
94                       
95                        'default' => 'hybrid'
96                        ),
97                'api' => '3.5',
98                'keys' => array( // Domains must be as in $_SERVER['SERVER_NAME'] variable
99                        // 'server.example.org/path' => 'example_key'
100                        ),
101                'bounds' => array(
102                        'min_latitude' => 35, // MINLAT_GPS_COORDINATE,
103                        'min_longitude' => 17, // MINLON_GPS_COORDINATE,
104                        'max_latitude' => 42, // MAXLAT_GPS_COORDINATE,
105                        'max_longitude' => 27 // MAXLON_GPS_COORDINATE
106                        )
107                ),
108       
109        'debug' => array(
110                'enabled' => FALSE
111                )
112);
Note: See TracBrowser for help on using the repository browser.