root/trunk/wifidog-auth/wifidog/config.php @ 1020

Revision 1020, 11.1 KB (checked in by benoitg, 7 years ago)
  • Revert Rob's SYSTEM_PATH change. Sorry about that. The devs spent hours to finally get the PATH stuff consistent and fixing the countless bugs that this process introduced. Maybe some links still need to use BASE_URL_PATH instead of BASE_SSL_PATH, (or vice-versa) but it was on purpose that SYSTEM_PATH was not made available to Smarty. We already have 3 defines to be used for links and html refs, that's enough BASE_SSL_PATH should be used to enter SSL mode (if available) BASE_NON_SSL_PATH should be used to break out of SSL mode of when we explicitely do not want someting to be referenced over http BASE_URL_PATH should be used in all other cases to avoid needless SSL warning
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2
3/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5// +-------------------------------------------------------------------+
6// | WiFiDog Authentication Server                                     |
7// | =============================                                     |
8// |                                                                   |
9// | The WiFiDog Authentication Server is part of the WiFiDog captive  |
10// | portal suite.                                                     |
11// +-------------------------------------------------------------------+
12// | PHP version 5 required.                                           |
13// +-------------------------------------------------------------------+
14// | Homepage:     http://www.wifidog.org/                             |
15// | Source Forge: http://sourceforge.net/projects/wifidog/            |
16// +-------------------------------------------------------------------+
17// | This program is free software; you can redistribute it and/or     |
18// | modify it under the terms of the GNU General Public License as    |
19// | published by the Free Software Foundation; either version 2 of    |
20// | the License, or (at your option) any later version.               |
21// |                                                                   |
22// | This program is distributed in the hope that it will be useful,   |
23// | but WITHOUT ANY WARRANTY; without even the implied warranty of    |
24// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     |
25// | GNU General Public License for more details.                      |
26// |                                                                   |
27// | You should have received a copy of the GNU General Public License |
28// | along with this program; if not, contact:                         |
29// |                                                                   |
30// | Free Software Foundation           Voice:  +1-617-542-5942        |
31// | 59 Temple Place - Suite 330        Fax:    +1-617-542-2652        |
32// | Boston, MA  02111-1307,  USA       gnu@gnu.org                    |
33// |                                                                   |
34// +-------------------------------------------------------------------+
35
36/**
37 * Configuration file of WiFiDog Authentication Server
38 *
39 * The configure the WiFiDOG auth server you can either use this configuration
40 * file or make a local copy of it named local.config.php.
41 *
42 * @package    WiFiDogAuthServer
43 * @author     Benoit Gregoire <bock@step.polymtl.ca>
44 * @author     Max Horvath <max.horvath@maxspot.de>
45 * @copyright  2004-2006 Benoit Gregoire, Technologies Coeus inc.
46 * @copyright  2005-2006 Max Horvath, maxspot GmbH
47 * @version    Subversion $Id$
48 * @link       http://www.wifidog.org/
49 */
50
51/**
52 * In case this is the local.config.php you should remove the next lines.
53 */
54
55if (file_exists(dirname(__FILE__) . "/local.config.php")) {
56    // Use a local copy of the configuration if found instead of the distro's.
57    require dirname(__FILE__) . "/local.config.php";
58} else {
59
60/**
61 * In case this is the local.config.php stop removing the lines.
62 */
63
64/********************************************************************\
65 * DATABASE CONFIGURATION                                           *
66\********************************************************************/
67
68/**
69 * Database abstraction classes
70 * ============================
71 *
72 * The next two items are constants, do not edit!
73 */
74
75// Database abstraction class for MySQL access.
76define('DBMS_MYSQL','AbstractDbMySql.php');
77
78// Database abstraction class for PostgreSQL access.
79define('DBMS_POSTGRES','AbstractDbPostgres.php');
80
81/**
82 * Which database management software do you want to use?
83 * ======================================================
84 *
85 * Possible values:
86 * - DBMS_POSTGRES (Use PostgreSQL server)
87 * - DBMS_MYSQL (Use MySQL server)
88 *
89 * Please note that MySQL support is currently broken!
90 */
91define('CONF_DBMS', DBMS_POSTGRES);
92
93/**
94 * Configuration values needed to access the database.
95 * ===================================================
96 */
97
98// Host of the database server.
99define('CONF_DATABASE_HOST', 'localhost');
100
101// Username for database access.
102define('CONF_DATABASE_USER', 'wifidog');
103
104// Password for database access.
105define('CONF_DATABASE_PASSWORD', 'wifidogtest');
106
107// Name of database used by WiFiDOG auth server.
108define('CONF_DATABASE_NAME', 'wifidog');
109
110/**
111 * Database cleanup
112 * ================
113 *
114 * Normally,  the database cleanup routines will be called everytime a portal
115 * page is displayed. If you set this to true, you must set a cron job on the
116 * server which will execute the script "cron/cleanup.php".
117 */
118define('CONF_USE_CRON_FOR_DB_CLEANUP', false);
119
120/********************************************************************\
121 * WEBSERVER CONFIGURATION                                          *
122\********************************************************************/
123
124/**
125 * Caching
126 * =======
127 *
128 * If you installed PEAR::Cache_Lite and set this value to true, caching
129 * will be enabled.
130 *
131 * If you haven't installed PEAR::Cache_Lite, caching won't be enabled at all.
132 */
133define('USE_CACHE_LITE', true);
134
135/**
136 * Timezone
137 * ========
138 *
139 * Since PHP 5.1.0 date functions have been rewritten and require to set
140 * a valid timezone.
141 *
142 * You'll find a list of valid identifiers at:
143 * http://www.php.net/manual/en/timezones.php
144 */
145define('DATE_TIMEZONE', 'Canada/Eastern');
146
147/********************************************************************\
148 * WIFIDOG BASIC CONFIGURATION                                      *
149\********************************************************************/
150
151/**
152 * Custom signup system
153 * ====================
154 *
155 * If you wanto to use a custom signup system instead of the built in signup
156 * page uncomment the next line and enter the URL to the system.
157 */
158//define("CUSTOM_SIGNUP_URL","https://www.bcwireless.net/hotspot/signup.php");
159
160/**
161 * Available locales (languages)
162 * =============================
163 *
164 * Define the list of locales you want to support.
165 * English, French and German are supported.
166 *
167 * See below examples
168 */
169global $AVAIL_LOCALE_ARRAY;
170
171/*$AVAIL_LOCALE_ARRAY = array('fr' => 'Français',
172                            'en' => 'English',
173                            'de' => 'Deutsch',
174                            'pt' => 'Português');
175*/
176/**
177 * A lot of linux distributions (Debian, BSD and Mac OS X) use locales like this:
178 */
179//$AVAIL_LOCALE_ARRAY = array('fr_CA' => 'Français',
180//                            'en_US' => 'English',
181//                            'de_DE' => 'Deutsch',
182//                            'pt_PT' => 'Português');
183
184/**
185 * Other linux distributions (Ubuntu, Mandriva 10.1) use locales like this:
186 */
187$AVAIL_LOCALE_ARRAY = array('fr_CA.UTF8' => 'Français',
188                            'en_US.UTF8' => 'English',
189                            'de_DE.UTF8' => 'Deutsch',
190                            'pt_PT.UTF8' => 'Português');
191
192/**
193 * Default language
194 * ================
195 *
196 * Define the default language of the WiFiDOG auth server.
197 *
198 * Remember to change this value to a valid locale, i.e.:
199 * - fr
200 * - fr_CA
201 * - fr_CA.UTF8
202 */
203define('DEFAULT_LANG', 'fr_CA.UTF8');
204
205/********************************************************************\
206 * WIFIDOG FEATURES CONFIGURATION                                   *
207\********************************************************************/
208
209/**
210 * RSS support
211 * ===========
212 *
213 * If set to true, MAGPIERSS must be installed in MAGPIE_REL_PATH.
214 *
215 * Normally MAGPIE_REL_PATH is "lib/magpie/".
216 */
217define('RSS_SUPPORT', true);
218
219/**
220 * Flickr Photostream content support
221 * ==================================
222 *
223 * If set to true, Phlickr must be installed in PHLICKR_REL_PATH.
224 *
225 * Normally PHLICKR_REL_PATH is "lib/", Phlickr being installed in directory
226 * "Phlickr".
227 */
228define('PHLICKR_SUPPORT', true);
229
230/**
231 * Google Maps support
232 * ===================
233 *
234 * Enable Google Maps mapping using "hotspots_map.php".
235 */
236define('GMAPS_HOTSPOTS_MAP_ENABLED', true);
237
238/**
239 * XSLT support for Hotspot status page
240 * ====================================
241 *
242 * If you want to enable XSLT support for the Hotspot status page enable this
243 * value.
244 *
245 * Enabling it will let you you display hostpot status in any format.
246 * http://server_ip/hotspot_status.php?format=XML&xslt=http://xslt_server/xslt/wifidog_status.xsl
247 */
248define('XSLT_SUPPORT', true);
249
250/********************************************************************\
251 * ADVANCED CONFIGURATION                                           *
252 *                                                                  *
253 * You should normally not have to edit anything below this!        *
254\********************************************************************/
255
256/**
257 * Path of WiFiDOG auth server installation
258 * ========================================
259 *
260 * SYSTEM_PATH must be set to the url path needed to reach the wifidog
261 * directory.
262 *
263 * Normally '/' or '/wifidog/', depending on where configure your
264 * document root.
265 *
266 * Gateway configuration must match this as well.
267 *
268 * CONFIGURATION FLAG REQUIRED IF PATH DETECTION FAILS, ONLY!
269 */
270// define('SYSTEM_PATH', '/');
271
272/**
273 * WiFiDOG configuration
274 * =====================
275 *
276 * Name and version of the WiFiDOG auth server.
277 */
278define('WIFIDOG_NAME', 'WiFiDog Authentication server');
279define('WIFIDOG_VERSION', '(Development)');
280
281/**
282 * WiFiDOG features configuration
283 * ==============================
284 *
285 * Paths to libraries used by the WiFiDOG auth server.
286 */
287
288// Path to Magpie RSS Parser.
289define('MAGPIE_REL_PATH', 'lib/magpie/');
290
291// Path to Smarty Template engine.
292define('SMARTY_REL_PATH',  'lib/smarty/');
293
294// Path to Phlickr API.
295define('PHLICKR_REL_PATH',  'lib/');
296
297/**
298 * WiFiDOG internals configuration
299 * ===============================
300 *
301 * Internal configuration values for WiFiDog - don't touch!
302 */
303
304// Path to the directory containing the different node specific directories.
305// Relative to BASE_URL_PATH.
306define('LOCAL_CONTENT_REL_PATH', 'local_content/');
307
308// These are the file names of the different templates that can be put in
309// the CONTENT_PATH/(node_id)/ folders.
310define('STYLESHEET_NAME', 'stylesheet.css');
311define('LOGIN_PAGE_NAME', 'login.html');
312define('HOTSPOT_STATUS_PAGE', 'hotspot_status.php');
313
314// Source URL for the hotspot status page
315define('GMAPS_XML_SOURCE_URL', 'hotspot_status.php?format=XML');
316
317// Name of default node.
318define('DEFAULT_NODE_ID', 'default');
319
320// Declare warning/error/notice logging to a file.
321// Set this to false to disable logging to a file.
322// By default, logging is enabled, to file tmp/wifidog.log.
323// define('WIFIDOG_LOGFILE', 'tmp/wifidog.log');
324
325 /**
326  * Email configuration
327  * ===============================
328  *
329  * Internal configuration values for WiFiDog - don't touch!
330  */
331
332define('EMAIL_MAILER', 'mail'); // "mail", "sendmail", or "smtp"
333 
334// Valid only for SMTP
335define('EMAIL_HOST', '');
336define('EMAIL_AUTH', false);
337
338// Valid if EMAIL_AUTH is true
339define('EMAIL_USERNAME', '');
340define('EMAIL_PASSWORD', '');
341
342/**
343 * In case this is the local.config.php you should remove the next lines.
344 */
345
346}
347
348/**
349 * In case this is the local.config.php stop removing the lines.
350 */
351
352/*
353 * Local variables:
354 * tab-width: 4
355 * c-basic-offset: 4
356 * c-hanging-comment-ender-p: nil
357 * End:
358 */
359
360?>
Note: See TracBrowser for help on using the browser.