| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | if(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 */ |
|---|
| 9 | define('CONF_DATABASE_HOST', 'localhost'); |
|---|
| 10 | define('CONF_DATABASE_NAME', 'wifidog'); |
|---|
| 11 | define('CONF_DATABASE_USER', 'wifidog'); |
|---|
| 12 | define('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 */ |
|---|
| 17 | define('SYSTEM_PATH', '/'); |
|---|
| 18 | /**< Set this to true if your server has SSL available, otherwise, passwords will be transmitted in clear text over the air */ |
|---|
| 19 | define('SSL_AVAILABLE', true); |
|---|
| 20 | /** @deprecated version - 2005-04-19 */ |
|---|
| 21 | define('HOTSPOT_NETWORK_NAME', 'Île sans fil'); |
|---|
| 22 | define('HOTSPOT_NETWORK_URL', 'http://www.ilesansfil.org/'); |
|---|
| 23 | define('TECH_SUPPORT_EMAIL', 'tech@ilesansfil.org'); |
|---|
| 24 | define('UNKNOWN_HOSTPOT_NAME', 'Unknown HotSpot'); |
|---|
| 25 | |
|---|
| 26 | define('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... */ |
|---|
| 27 | define('VALIDATION_EMAIL_FROM_ADDRESS', 'validation@ilesansfil.org'); |
|---|
| 28 | /* RSS support. If set to true, MAGPIERSS must be installed in MAGPIE_REL_PATH */ |
|---|
| 29 | define('RSS_SUPPORT', true); |
|---|
| 30 | /* Flickr Photostream content support. If set to true, Phlickr must be installed in PHLICKR_REL_PATH */ |
|---|
| 31 | define('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. */ |
|---|
| 33 | define('CONF_USE_CRON_FOR_DB_CLEANUP', false); |
|---|
| 34 | |
|---|
| 35 | /* XSLT for Hotspot status page */ |
|---|
| 36 | define('XSLT_SUPPORT', false); |
|---|
| 37 | /* Google Maps mapping hotspots_map.php */ |
|---|
| 38 | define('GMAPS_VENUES_HOTSPOTS_MAP_ENABLED', false); |
|---|
| 39 | define('GMAPS_XML_SOURCE_URL', 'hotspot_status.php?format=XML'); |
|---|
| 40 | define('GMAPS_API_KEY', 'ENTER_YOUR_KEY_HERE'); |
|---|
| 41 | // Enter center coords ( ie. Montréal ) |
|---|
| 42 | define('GMAPS_INITIAL_LATITUDE', '45.494511'); |
|---|
| 43 | define('GMAPS_INITIAL_LONGITUDE', '-73.560285'); |
|---|
| 44 | define('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 */ |
|---|
| 50 | define('DBMS_MYSQL','AbstractDbMySql.php'); |
|---|
| 51 | define('DBMS_POSTGRES','AbstractDbPostgres.php'); |
|---|
| 52 | |
|---|
| 53 | /** Defines which Database management software you want to use */ |
|---|
| 54 | define('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 ******/ |
|---|
| 61 | define('WIFIDOG_NAME', 'WiFiDog Authentication server'); |
|---|
| 62 | define('WIFIDOG_VERSION', 'CVS'); |
|---|
| 63 | |
|---|
| 64 | define('MAGPIE_REL_PATH', 'lib/magpie/'); |
|---|
| 65 | define('SMARTY_REL_PATH', 'lib/smarty/'); |
|---|
| 66 | define('PHLICKR_REL_PATH', 'lib/'); |
|---|
| 67 | //define('NETWORK_RSS_URL', 'http://wifinetnews.com/index.rdf'); |
|---|
| 68 | define('NETWORK_RSS_URL', 'http://patricktanguay.com/isf/atom.xml, http://auth.ilesansfil.org/hotspot_status.php?format=RSS'); |
|---|
| 69 | define('UNKNOWN_HOTSPOT_RSS_URL', ''); |
|---|
| 70 | |
|---|
| 71 | define('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 |
|---|
| 77 | require_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 | */ |
|---|
| 87 | define('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 | /* |
|---|
| 94 | require_once BASEPATH.'classes/AuthenticatorRadius.php'; |
|---|
| 95 | |
|---|
| 96 | define('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 */ |
|---|
| 103 | define('STYLESHEET_NAME', 'stylesheet.css'); |
|---|
| 104 | define('LOGIN_PAGE_NAME', 'login.html'); |
|---|
| 105 | define('PORTAL_PAGE_NAME', 'portal.html');/**< @deprecated version - 19-Apr-2005*/ |
|---|
| 106 | define('PAGE_HEADER_NAME', 'header.html');/**< @deprecated version - 19-Apr-2005*/ |
|---|
| 107 | define('PAGE_FOOTER_NAME', 'footer.html');/**< @deprecated version - 19-Apr-2005*/ |
|---|
| 108 | define('HOTSPOT_STATUS_PAGE', 'hotspot_status.php'); |
|---|
| 109 | define('HOTSPOT_LOGO_NAME', 'hotspot_logo.jpg'); |
|---|
| 110 | define('HOTSPOT_LOGO_BANNER_NAME', 'hotspot_logo_banner.jpg'); |
|---|
| 111 | |
|---|
| 112 | /* Path for files in LOCAL_CONTENT_REL_PATH/common/ */ |
|---|
| 113 | define('NETWORK_LOGO_NAME', 'network_logo.png'); |
|---|
| 114 | define('NETWORK_LOGO_BANNER_NAME', 'network_logo_banner.png'); |
|---|
| 115 | define('WIFIDOG_LOGO_NAME', 'wifidog_logo_banner.png'); |
|---|
| 116 | define('WIFIDOG_LOGO_BANNER_NAME', 'wifidog_logo_banner.png'); |
|---|
| 117 | |
|---|
| 118 | define('DEFAULT_NODE_ID', 'default'); |
|---|
| 119 | define('DEFAULT_LANG', 'fr'); |
|---|
| 120 | |
|---|
| 121 | |
|---|
| 122 | } |
|---|
| 123 | ?> |
|---|