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

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