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

Revision 317, 7.4 KB (checked in by aprilp, 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
3/*
4 * File version: $Id$
5 *
6 * Log history:
7 *
8 *     $Log$
9 *     Revision 1.15  2005/01/12 15:52:36  aprilp
10 *     *** empty log message ***
11 *
12 *     Revision 1.14  2005/01/12 00:57:42  benoitg
13 *     2004-01-10 Benoit Gr�goire  <bock@step.polymtl.ca>
14 *      * wifidog/config.php:  Add list of hotspot to network rss feed list (not yet functionnal)
15 *      * wifidog/hotspot_status.php:  Allow RSS export of the list of deployed HotSpots.
16 *      * wifidog/admin/incoming_outgoing_swap.php:  Script to swap incoming and outgoing in your data.  only use this if you had gateways before 1.0.2 and wish to correct your logs before you upgrade.
17 *      * wifidog/classes/RssPressReview.inc:  Missing file from previous commit.
18 *      * wifidog/portal/index.php: Preliminary work to enable smart press review of multiple RSS feeds.
19 *
20 *     Revision 1.13  2004/12/03 19:42:32  benoitg
21 *     2004-12-03 Benoit Gr�goire  <bock@step.polymtl.ca>
22 *      * wifidog/admin/user_stats.php,  wifidog/classes/Statistics.php:  Embryonic aggregate user stats.  Currently allows you to find out the rate at which your users subscribe.
23 *      * wifidog/config.php, wifidog/local_content/default/login.html, wifidog/include/user_management_menu.php:  Add hotspot status page to login page.
24 *      * wifidog/hotspot_status.php: Cosmetic
25 *      * wifidog/admin/hotspot_log.php: Stats now need admin privileges
26 *      * wifidog/index.php: Cosmetic.
27 *
28 *     Revision 1.12  2004/11/20 03:28:25  benoitg
29 *     2004-11-19 Benoit Gr�goire  <bock@step.polymtl.ca>
30 *      * TODO: Add email domains to blacklist
31 *      * wifidog/config.php, wifidog/include/user_management_menu.php: Add tech support email address
32 *      * wifidog/hotspot_status.php: List of HotSpots that are open with summary of information.  Designed to be included as part of another page.
33 *      * wifidog/local_content/common/wifidog_logo_banner.gif: Add wifidog logo
34 *      * wifidog/local_content/default/hotspot_logo_banner.jpg: Shrink the logo and write unknown hotspot, however this is still really ugly
35 *      * wifidog/local_content/default/login.html, portal.html, stylesheet.css: Cosmetic fixes
36 *              * wifidog/local_content/default/login.html.fr, portal.html.fr: Delete the files, this isn't the approach we will use for translation.
37 *      * sql/wifidog-postgres-initial-data.sql, wifidog-postgres-schema.sql: Update with new node information structures.
38 *
39 *     Revision 1.11  2004/09/28 20:46:40  yanik_crepeau
40 *     Added experimental (and commented) code for next developpments
41 *     regarding the language/localization issues.
42 *
43 *     Revision 1.10  2004/09/28 20:44:08  yanik_crepeau
44 *     Added commented hearder with Id and Log cvs keywords.
45 *
46 *
47 */
48 
49/* Used by AbstractDb */
50define('CONF_DATABASE_HOST',   'localhost');
51define('CONF_DATABASE_NAME',   'wifidog');
52define('CONF_DATABASE_USER',   'wifidog');
53define('CONF_DATABASE_PASSWORD',   'wifidogtest');
54
55/*************************** Common setup option.  Adjust to suit your environment *******************************/
56
57/* 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 */
58define('SYSTEM_PATH', '/');
59/**< Set this to true if your server has SSL available, otherwise, passwords will be transmitted in clear text over the air */
60define('SSL_AVAILABLE', true); 
61define('HOTSPOT_NETWORK_NAME', '�le sans fil');
62define('HOTSPOT_NETWORK_URL', 'http://www.ilesansfil.org/');
63define('TECH_SUPPORT_EMAIL', 'tech@ilesansfil.org');
64define('UNKNOWN_HOSTPOT_NAME', 'Unknown HotSpot');
65
66define('VALIDATION_EMAIL_FROM_ADDRESS', 'validation@yourdomain.org');
67define('VALIDATION_EMAIL_SUBJECT', HOTSPOT_NETWORK_NAME.' new user validation');
68define('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... */
69define('LOST_PASSWORD_EMAIL_SUBJECT', HOTSPOT_NETWORK_NAME.' new password request');
70define('LOST_USERNAME_EMAIL_SUBJECT', HOTSPOT_NETWORK_NAME.' lost username request');
71/* RSS support.  If set to true, MAGPIERSS must be installed in MAGPIE_REL_PATH */
72define('RSS_SUPPORT', true); 
73/* 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. */
74define('CONF_USE_CRON_FOR_DB_CLEANUP', false);
75
76/** The next two items are constants, do not edit */
77define('DBMS_MYSQL','AbstractDbMySql.php');
78define('DBMS_POSTGRES','AbstractDbPostgres.php');
79
80/** Defines which Database management software you want to use */
81define('CONF_DBMS',DBMS_POSTGRES);
82
83/***** You should normally not have to edit anything below this ******/
84define('WIFIDOG_NAME', 'WiFiDog Authentication server');
85define('WIFIDOG_VERSION', 'CVS');
86
87define('MAGPIE_REL_PATH',  'lib/magpie/');
88define('SMARTY_REL_PATH',  'lib/smarty/');
89//define('NETWORK_RSS_URL', 'http://wifinetnews.com/index.rdf');
90define('NETWORK_RSS_URL', 'http://patricktanguay.com/isf/atom.xml, http://auth.ilesansfil.org/hotspot_status.php?format=RSS');
91define('UNKNOWN_HOTSPOT_RSS_URL', '');
92
93define('LOCAL_CONTENT_REL_PATH', 'local_content/');//Path to the directory containing the different node specific directories.  Relative to BASE_URL_PATH
94
95/*These are the file names of the different templates that can be put in the CONTENT_PATH/(node_id)/ folders */
96define('STYLESHEET_NAME', 'stylesheet.css');
97define('LOGIN_PAGE_NAME', 'login.html');
98define('PORTAL_PAGE_NAME', 'portal.html');
99define('PAGE_HEADER_NAME', 'header.html');
100define('PAGE_FOOTER_NAME', 'footer.html');
101define('USER_MANAGEMENT_PAGE', 'user_management/');
102define('HOTSPOT_STATUS_PAGE', 'hotspot_status.php');
103define('HOTSPOT_LOGO_NAME', 'hotspot_logo.jpg');
104define('HOTSPOT_LOGO_BANNER_NAME', 'hotspot_logo_banner.jpg');
105
106/* Path for files in LOCAL_CONTENT_REL_PATH/common/ */
107define('NETWORK_LOGO_NAME', 'network_logo.png');
108define('NETWORK_LOGO_BANNER_NAME', 'network_logo_banner.png');
109define('WIFIDOG_LOGO_NAME', 'wifidog_logo_banner.png');
110define('WIFIDOG_LOGO_BANNER_NAME', 'wifidog_logo_banner.png');
111
112define('DEFAULT_NODE_ID', 'default');
113define('DEFAULT_LANG', 'fr_FR');
114
115/*** FOR TESTING ONLY *** UNCOMMENT THE NEXT LINES
116 *** WHEN READY TO TEST **************************
117 *** This code define two (2) global variables:
118 *** HTTP_HEADER_LANG will return the language of the
119 *** user's browser stripped from its country code. For
120 *** instance, if the HTTP_ACCEPT_LANGUAGE header is
121 *** something like 'en-ca, en-us, en, fr-ca, fr', the
122 *** first two characters is picked and used as language
123 *** selector.
124 *** The other global variable is the FILE_NAME_SUFFIX.
125 *** for english it is empty, for any other language it is
126 *** the two character code used to set the language. When
127 *** choosing the template (let's say login.html), we simply
128 *** have to replace in the code and add
129 *** "login.html".$FILE_NAME_SUFFIX to get the right
130 *** template (assuming that login.html.fr exists for
131 *** French).
132if (if (substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2) == "en") {
133    define('HTTP_HEADER_LANG', 'en');
134    define('FILE_NAME_SUFFIX', '');   
135} else {
136    define('HTTP_HEADER_LANG', substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2));
137    define('FILE_NAME_SUFFIX', substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2));
138}
139
140*/ 
141
142?>
Note: See TracBrowser for help on using the browser.