Changeset 521
- Timestamp:
- 03/31/05 12:54:46 (8 years ago)
- Location:
- trunk/wifidog-auth/wifidog
- Files:
-
- 4 modified
-
classes/User.php (modified) (3 diffs)
-
config.php (modified) (9 diffs)
-
include/common.php (modified) (1 diff)
-
include/language.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/User.php
r517 r521 355 355 $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 356 356 $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS; 357 $subject = LOST_USERNAME_EMAIL_SUBJECT;357 $subject = HOTSPOT_NETWORK_NAME._(" lost username request"); 358 358 $body = _("Hello,<br>You have requested that the authentication server send you your username:<br>Username: ").$username._("<br><br>Have a nice day,<br>The Team"); 359 359 … … 378 378 $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 379 379 $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS; 380 $subject = VALIDATION_EMAIL_SUBJECT;380 $subject = HOTSPOT_NETWORK_NAME._(" new user validation"); 381 381 $url = "http://".$_SERVER["SERVER_NAME"]."/validate.php?user_id=".$this->getId()."&token=".$this->getValidationToken(); 382 382 $body = _("Hello,<br>Please follow the link below to validate your account.<br>").$url._("<br><br>Thank you,<br>The Team."); … … 398 398 $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 399 399 $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS; 400 $subject = LOST_PASSWORD_EMAIL_SUBJECT;400 $subject = HOTSPOT_NETWORK_NAME._(" new password request"); 401 401 $body = _("Hello,<br>You have requested that the authentication server send you a new password:<br>Username: ").$username._("<br>Password: ").$new_password._("<br><br>Have a nice day,<br>The Team"); 402 402 -
trunk/wifidog-auth/wifidog/config.php
r517 r521 7 7 * 8 8 * $Log$ 9 * Revision 1.25 2005/03/31 17:54:45 fproulx 10 * Missing files 11 * 9 12 * Revision 1.24 2005/03/30 20:04:42 fproulx 10 * 2005-03-30 Fran �ois Proulx <francois.proulx@gmail.com>13 * 2005-03-30 Fran?ois Proulx <francois.proulx@gmail.com> 11 14 * * Finished RADIUS authentication and accounting 12 15 * * Accounting Unique session ID is now based on the same token we use … … 19 22 * 20 23 * Revision 1.23 2005/03/29 22:13:27 fproulx 21 * 2005-03-28 Fran �ois Proulx <francois.proulx@gmail.com>24 * 2005-03-28 Fran?ois Proulx <francois.proulx@gmail.com> 22 25 * * schema_validate.php : Modified schema : dropped e-mail + account unique index, dropped email not empty constraint 23 26 * * Schema is now at version 3 … … 31 34 * 32 35 * Revision 1.22 2005/03/28 19:49:52 benoitg 33 * 2005-03-28 Benoit Gr �goire <bock@step.polymtl.ca>36 * 2005-03-28 Benoit Gr?goire <bock@step.polymtl.ca> 34 37 * * common.php: Add get_guid() function 35 38 * * validate_schema.php: New auto-upgrade script to allow autaumatic schema upgrade. Note that you must still update dump_initial_data_postgres.sh and use sync_sql_for_cvs.sh so new users aren't left in the cold. … … 44 47 * 45 48 * Revision 1.19 2005/01/26 03:46:30 benoitg 46 * 2005-01-25 Benoit Gr �goire <bock@step.polymtl.ca>49 * 2005-01-25 Benoit Gr?goire <bock@step.polymtl.ca> 47 50 * * classes/Node.php: New file, untested code example 48 51 * * wifidog/admin/admin_common.php: Remove double-defined BASEPATH … … 61 64 * 62 65 * Revision 1.14 2005/01/12 00:57:42 benoitg 63 * 2004-01-10 Benoit Gr �goire <bock@step.polymtl.ca>66 * 2004-01-10 Benoit Gr?goire <bock@step.polymtl.ca> 64 67 * * wifidog/config.php: Add list of hotspot to network rss feed list (not yet functionnal) 65 68 * * wifidog/hotspot_status.php: Allow RSS export of the list of deployed HotSpots. … … 69 72 * 70 73 * Revision 1.13 2004/12/03 19:42:32 benoitg 71 * 2004-12-03 Benoit Gr �goire <bock@step.polymtl.ca>74 * 2004-12-03 Benoit Gr?goire <bock@step.polymtl.ca> 72 75 * * 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. 73 76 * * wifidog/config.php, wifidog/local_content/default/login.html, wifidog/include/user_management_menu.php: Add hotspot status page to login page. … … 77 80 * 78 81 * Revision 1.12 2004/11/20 03:28:25 benoitg 79 * 2004-11-19 Benoit Gr �goire <bock@step.polymtl.ca>82 * 2004-11-19 Benoit Gr?goire <bock@step.polymtl.ca> 80 83 * * TODO: Add email domains to blacklist 81 84 * * wifidog/config.php, wifidog/include/user_management_menu.php: Add tech support email address … … 119 122 define('UNKNOWN_HOSTPOT_NAME', 'Unknown HotSpot'); 120 123 124 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... */ 121 125 define('VALIDATION_EMAIL_FROM_ADDRESS', 'validation@ilesansfil.org'); 122 define('VALIDATION_EMAIL_SUBJECT', HOTSPOT_NETWORK_NAME._(" new user validation"));123 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... */124 define('LOST_PASSWORD_EMAIL_SUBJECT', HOTSPOT_NETWORK_NAME._(" new password request"));125 define('LOST_USERNAME_EMAIL_SUBJECT', HOTSPOT_NETWORK_NAME._(" lost username request"));126 126 /* RSS support. If set to true, MAGPIERSS must be installed in MAGPIE_REL_PATH */ 127 127 define('RSS_SUPPORT', true); … … 198 198 199 199 define('DEFAULT_NODE_ID', 'default'); 200 define('DEFAULT_LANG', 'fr_FR');201 200 define('DEFAULT_LANG', 'fr_FR'); 201 202 202 /*** FOR TESTING ONLY *** UNCOMMENT THE NEXT LINES 203 203 *** WHEN READY TO TEST ************************** -
trunk/wifidog-auth/wifidog/include/common.php
r512 r521 8 8 $db = new AbstractDb(); 9 9 validate_schema(); 10 /* Gettext support */11 if(!function_exists ('gettext'))12 {13 define('GETTEXT_AVAILABLE', false);14 /* Redefine the gettext functions if gettext isn't installed */15 function gettext($string)16 {17 return $string;18 }19 function _($string)20 {21 return $string;22 }23 }24 else25 {26 define('GETTEXT_AVAILABLE', true);27 }28 10 29 11 /* NEVER edit these, as they mush match the C code of the gateway */ -
trunk/wifidog-auth/wifidog/include/language.php
r349 r521 1 1 <?php 2 require_once BASEPATH.'classes/Session.php'; 3 $session = new Session(); 4 /* Gettext support */ 5 if(!function_exists ('gettext')) 6 { 7 define('GETTEXT_AVAILABLE', false); 8 /* Redefine the gettext functions if gettext isn't installed */ 9 function gettext($string) 10 { 11 return $string; 12 } 13 function _($string) 14 { 15 return $string; 16 } 17 } 18 else 19 { 20 define('GETTEXT_AVAILABLE', true); 21 } 22 2 23 if (!empty($_REQUEST['lang'])) { 3 24 $session->set('SESS_LANGUAGE_VAR', $_REQUEST['lang']);
