root/wifidogadmin/wifidog/config.php

Revision 479, 8.8 kB (checked in by insultant, 8 months ago)

--

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 Grégoire <bock@step.polymtl.ca>
44  * @author     Max Horváth <max.horvath@freenet.de>
45  * @copyright  2004-2006 Benoit Grégoire, Technologies Coeus inc.
46  * @copyright  2005-2006 Max Horváth, Horvath Web Consulting
47  * @version    Subversion $Id: config.php 1300 2007-10-01 18:33:36Z benoitg $
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
55 if (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  * Configuration values needed to access the database.
70  * ===================================================
71  */
72
73 // Host of the database server.
74 define('CONF_DATABASE_HOST', 'localhost');
75
76 // Username for database access.
77 define('CONF_DATABASE_USER', 'wifidog');
78
79 // Password for database access.
80 define('CONF_DATABASE_PASSWORD', 'wifidogtest');
81
82 // Name of database used by WiFiDOG auth server.
83 define('CONF_DATABASE_NAME', 'wifidog');
84
85 /**
86  * Database cleanup
87  * ================
88  *
89  * Normally,  the database cleanup routines will be called everytime a portal
90  * page is displayed. If you set this to true, you must set a cron job on the
91  * server which will execute the script "cron/cleanup.php".
92  */
93 define('CONF_USE_CRON_FOR_DB_CLEANUP', false);
94
95 /**
96  * SQL queries profiling.  This will output all SQL queries performed to
97  * generate the page, as well as the relative time used by each.
98  */
99
100 define('LOG_SQL_QUERIES', false);
101
102 /********************************************************************\
103  * WEBSERVER CONFIGURATION                                          *
104 \********************************************************************/
105
106 /**
107  * Caching
108  * =======
109  *
110  * Experimental:  If you installed PEAR::Cache_Lite and set this value to true, caching
111  * will be enabled.
112  *
113  * If you haven't installed PEAR::Cache_Lite, caching won't be enabled at all.
114  */
115 define('USE_CACHE_LITE', false);
116
117 /**
118  * Timezone
119  * ========
120  *
121  * Since PHP 5.1.0 date functions have been rewritten and require to set
122  * a valid timezone.  This is ONLY used on PHP >=5.1
123  *
124  * You'll find a list of valid identifiers at:
125  * http://www.php.net/manual/en/timezones.php
126  */
127 define('DATE_TIMEZONE', 'Canada/Eastern');
128
129 /********************************************************************\
130  * WIFIDOG BASIC CONFIGURATION                                      *
131 \********************************************************************/
132
133 /**
134  * Custom signup system
135  * ====================
136  *
137  * If you wanto to use a custom signup system instead of the built in signup
138  * page uncomment the next line and enter the URL to the system.
139  */
140 //define("CUSTOM_SIGNUP_URL","https://www.bcwireless.net/hotspot/signup.php");
141
142 /**
143  * Default language
144  * ================
145  *
146  * Define the default language of the WiFiDOG auth server.  The language code
147  * (the part before the _) must be part of the array above (the country
148  * subcode may differ, and should be set to your country subcode)
149  */
150 define('DEFAULT_LANG', 'fr_CA');
151
152 /********************************************************************\
153  * WIFIDOG FEATURES CONFIGURATION                                   *
154 \********************************************************************/
155
156 /**
157  * Google Maps support
158  * ===================
159  *
160  * Enable Google Maps mapping using "hotspots_map.php".
161  */
162 define('GMAPS_HOTSPOTS_MAP_ENABLED', true);
163
164 /********************************************************************\
165  * ADVANCED CONFIGURATION                                           *
166  *                                                                  *
167  * You should normally not have to edit anything below this!        *
168 \********************************************************************/
169
170 /**
171  * Path of WiFiDOG auth server installation
172  * ========================================
173  *
174  * SYSTEM_PATH must be set to the url path needed to reach the wifidog
175  * directory.
176  *
177  * Normally '/' or '/wifidog/', depending on where configure your
178  * document root.
179  *
180  * Gateway configuration must match this as well.
181  *
182  * CONFIGURATION FLAG REQUIRED IF PATH DETECTION FAILS, ONLY!
183  */
184 // define('SYSTEM_PATH', '/');
185
186 /**
187  * WiFiDOG configuration
188  * =====================
189  *
190  * Name and version of the WiFiDOG auth server.
191  */
192 define('WIFIDOG_NAME', 'WiFiDog Authentication server');
193 define('WIFIDOG_VERSION', '(Development)');
194
195 /**
196  * WiFiDOG internals configuration
197  * ===============================
198  *
199  * Internal configuration values for WiFiDog - don't touch!
200  */
201
202 // Filenames and directories
203 define('NETWORK_THEME_PACKS_DIR', 'media/network_theme_packs/');
204 define('STYLESHEET_NAME', 'stylesheet.css');
205 define('PRINT_STYLESHEET_NAME', 'printer.css');
206 define('LOGIN_PAGE_NAME', 'login.html');
207 define('HOTSPOT_STATUS_PAGE', 'hotspot_status.php');
208
209 // Source URL for the hotspot status page
210 define('GMAPS_XML_SOURCE_URL', 'hotspot_status.php?format=XML');
211
212 //Enable logging by the EventLogging class
213 define('EVENT_LOGGING',false);
214 // Declare warning/error/notice logging to a file.
215 // Set this to false to disable logging to a file.
216 // By default, logging is enabled, to file tmp/wifidog.log.
217 // define('WIFIDOG_LOGFILE', 'tmp/wifidog.log');
218
219  /**
220   * Email configuration
221   * ===============================
222   *
223   * Internal configuration values for WiFiDog - don't touch!
224   */
225
226 define('EMAIL_MAILER', 'mail'); // "mail", "sendmail", or "smtp"
227
228 // Valid only for SMTP
229 define('EMAIL_HOST', '');
230 define('EMAIL_AUTH', false);
231
232 // Valid if EMAIL_AUTH is true
233 define('EMAIL_USERNAME', '');
234 define('EMAIL_PASSWORD', '');
235
236 /**
237  * In case this is the local.config.php you should remove the next lines.
238  */
239
240 }
241
242 /**
243  * In case this is the local.config.php stop removing the lines.
244  */
245
246 /*
247  * Local variables:
248  * tab-width: 4
249  * c-basic-offset: 4
250  * c-hanging-comment-ender-p: nil
251  * End:
252  */
253
254 ?>
255
Note: See TracBrowser for help on using the browser.