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

Revision 668, 5.6 KB (checked in by fproulx, 8 years ago)

*** empty log message ***

  • 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
3if(file_exists(dirname(__FILE__)."/local.config.php")) {
4        // use a local copy of the configuration if found instead of the distro's.
5        require dirname(__FILE__)."/local.config.php";
6} else {
7
8/* Used by AbstractDb */
9define('CONF_DATABASE_HOST',   'localhost');
10define('CONF_DATABASE_NAME',   'wifidog');
11define('CONF_DATABASE_USER',   'wifidog');
12define('CONF_DATABASE_PASSWORD',   'wifidogtest');
13
14/*************************** Common setup option.  Adjust to suit your environment *******************************/
15
16/* The SYSTEM_PATH, must be set to the url path needed to reach the wifidog directory.  Normally '/' or '/wifidog/', depending on where configure your document root.  Gateway configuration must match this as well */
17define('SYSTEM_PATH', '/');
18/**< Set this to true if your server has SSL available, otherwise, passwords will be transmitted in clear text over the air */
19define('SSL_AVAILABLE', true);
20/** @deprecated version - 2005-04-19 */
21define('HOTSPOT_NETWORK_NAME', 'Île sans fil');
22define('HOTSPOT_NETWORK_URL', 'http://www.ilesansfil.org/');
23define('TECH_SUPPORT_EMAIL', 'tech@ilesansfil.org');
24define('UNKNOWN_HOSTPOT_NAME', 'Unknown HotSpot');
25
26define('VALIDATION_GRACE_TIME', 20); /**< Number of minutes after new account creation during which internet access is available to validate your account.  Once elapsed, you have to validate from home... */
27define('VALIDATION_EMAIL_FROM_ADDRESS', 'validation@ilesansfil.org');
28/* RSS support.  If set to true, MAGPIERSS must be installed in MAGPIE_REL_PATH */
29define('RSS_SUPPORT', true);
30/* Flickr Photostream content support. If set to true, Phlickr must be installed in PHLICKR_REL_PATH */
31define('PHLICKR_SUPPORT', false);
32/* Normally, the database cleanup routines will be called everytime a portal page is displayed.  If you set this to true, you must set a cron job on the server which will execute the script cron/cleanup.php. */
33define('CONF_USE_CRON_FOR_DB_CLEANUP', false);
34
35/* XSLT for Hotspot status page */
36define('XSLT_SUPPORT', false);
37/* Google Maps mapping hotspots_map.php */
38define('GMAPS_VENUES_HOTSPOTS_MAP_ENABLED', false);
39define('GMAPS_XML_SOURCE_URL', 'hotspot_status.php?format=XML');
40define('GMAPS_API_KEY', 'ENTER_YOUR_KEY_HERE');
41// Enter center coords ( ie. Montréal )
42define('GMAPS_INITIAL_LATITUDE', '45.494511');
43define('GMAPS_INITIAL_LONGITUDE', '-73.560285');
44define('GMAPS_INITIAL_ZOOM_LEVEL', '5');
45
46/* Use a custom signup system instead of the built in signup page. */
47//define("CUSTOM_SIGNUP_URL","https://www.bcwireless.net/hotspot/signup.php");
48
49/** The next two items are constants, do not edit */
50define('DBMS_MYSQL','AbstractDbMySql.php');
51define('DBMS_POSTGRES','AbstractDbPostgres.php');
52
53/** Defines which Database management software you want to use */
54define('CONF_DBMS',DBMS_POSTGRES);
55
56/* Available Locales (Languages) */
57$AVAIL_LOCALE_ARRAY=array('fr'=>'Français',
58                                'en'=>'English');
59                                               
60/***** You should normally not have to edit anything below this ******/
61define('WIFIDOG_NAME', 'WiFiDog Authentication server');
62define('WIFIDOG_VERSION', 'CVS');
63
64define('MAGPIE_REL_PATH',  'lib/magpie/');
65define('SMARTY_REL_PATH',  'lib/smarty/');
66define('PHLICKR_REL_PATH',  'lib/');
67//define('NETWORK_RSS_URL', 'http://wifinetnews.com/index.rdf');
68define('NETWORK_RSS_URL', 'http://patricktanguay.com/isf/atom.xml, http://auth.ilesansfil.org/hotspot_status.php?format=RSS');
69define('UNKNOWN_HOTSPOT_RSS_URL', '');
70
71define('LOCAL_CONTENT_REL_PATH', 'local_content/');//Path to the directory containing the different node specific directories.  Relative to BASE_URL_PATH
72
73// Authentication sources section
74/* The array index for the source must match the account_origin in the user table */
75
76// Local User authenticators
77require_once BASEPATH.'classes/AuthenticatorLocalUser.php';
78
79/**********************************************
80 * BIG FAT WARNING
81 * DO NOT remove this authenticator under any circumstance
82 * you SHOULD NOT change its name either
83 * The system relies heavily on its main authenticator to do
84 * multiple tasks with users...
85 * ********************************************
86 */
87define('LOCAL_USER_ACCOUNT_ORIGIN', 'LOCAL_USER');
88$AUTH_SOURCE_ARRAY[LOCAL_USER_ACCOUNT_ORIGIN]=array(
89                             'name'=>HOTSPOT_NETWORK_NAME,
90                             'authenticator'=>new AuthenticatorLocalUser(LOCAL_USER_ACCOUNT_ORIGIN));
91                             
92// RADIUS authenticators ( see AuthenticatorRadius constuctor doc for details )
93/*
94require_once BASEPATH.'classes/AuthenticatorRadius.php';
95
96define('IDRC_ACCOUNT_ORIGIN', 'IDRC_RADIUS_USER');
97$AUTH_SOURCE_ARRAY[IDRC_ACCOUNT_ORIGIN]=array(
98                             'name'=>"IDRC RADIUS Server",
99                             'authenticator'=>new AuthenticatorRadius(IDRC_ACCOUNT_ORIGIN, "192.168.0.11", 1812, 1813, "secret_key", "CHAP_MD5"));
100*/
101
102/*These are the file names of the different templates that can be put in the CONTENT_PATH/(node_id)/ folders */
103define('STYLESHEET_NAME', 'stylesheet.css');
104define('LOGIN_PAGE_NAME', 'login.html');
105define('PORTAL_PAGE_NAME', 'portal.html');/**< @deprecated version - 19-Apr-2005*/
106define('PAGE_HEADER_NAME', 'header.html');/**< @deprecated version - 19-Apr-2005*/
107define('PAGE_FOOTER_NAME', 'footer.html');/**< @deprecated version - 19-Apr-2005*/
108define('HOTSPOT_STATUS_PAGE', 'hotspot_status.php');
109define('HOTSPOT_LOGO_NAME', 'hotspot_logo.jpg');
110define('HOTSPOT_LOGO_BANNER_NAME', 'hotspot_logo_banner.jpg');
111
112/* Path for files in LOCAL_CONTENT_REL_PATH/common/ */
113define('NETWORK_LOGO_NAME', 'network_logo.png');
114define('NETWORK_LOGO_BANNER_NAME', 'network_logo_banner.png');
115define('WIFIDOG_LOGO_NAME', 'wifidog_logo_banner.png');
116define('WIFIDOG_LOGO_BANNER_NAME', 'wifidog_logo_banner.png');
117
118define('DEFAULT_NODE_ID', 'default');
119define('DEFAULT_LANG', 'fr');
120
121
122}
123?>
Note: See TracBrowser for help on using the browser.