Changeset 521

Show
Ignore:
Timestamp:
03/31/05 12:54:46 (8 years ago)
Author:
fproulx
Message:

Missing files

Location:
trunk/wifidog-auth/wifidog
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/User.php

    r517 r521  
    355355                $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 
    356356                $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS; 
    357                 $subject = LOST_USERNAME_EMAIL_SUBJECT; 
     357                $subject = HOTSPOT_NETWORK_NAME._(" lost username request"); 
    358358                $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"); 
    359359                 
     
    378378                                $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 
    379379                                $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS; 
    380                                 $subject = VALIDATION_EMAIL_SUBJECT; 
     380                                $subject = HOTSPOT_NETWORK_NAME._(" new user validation"); 
    381381                                $url = "http://".$_SERVER["SERVER_NAME"]."/validate.php?user_id=".$this->getId()."&token=".$this->getValidationToken(); 
    382382                                $body = _("Hello,<br>Please follow the link below to validate your account.<br>").$url._("<br><br>Thank you,<br>The Team."); 
     
    398398                $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 
    399399                $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS; 
    400                 $subject = LOST_PASSWORD_EMAIL_SUBJECT; 
     400                $subject = HOTSPOT_NETWORK_NAME._(" new password request"); 
    401401                $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"); 
    402402                 
  • trunk/wifidog-auth/wifidog/config.php

    r517 r521  
    77 * 
    88 *     $Log$ 
     9 *     Revision 1.25  2005/03/31 17:54:45  fproulx 
     10 *     Missing files 
     11 * 
    912 *     Revision 1.24  2005/03/30 20:04:42  fproulx 
    10  *     2005-03-30 Franois Proulx  <francois.proulx@gmail.com> 
     13 *     2005-03-30 Fran?ois Proulx  <francois.proulx@gmail.com> 
    1114 *      * Finished RADIUS authentication and accounting 
    1215 *      * Accounting Unique session ID is now based on the same token we use 
     
    1922 * 
    2023 *     Revision 1.23  2005/03/29 22:13:27  fproulx 
    21  *     2005-03-28 Franois Proulx  <francois.proulx@gmail.com> 
     24 *     2005-03-28 Fran?ois Proulx  <francois.proulx@gmail.com> 
    2225 *      * schema_validate.php : Modified schema : dropped e-mail + account unique index, dropped email not empty constraint 
    2326 *      * Schema is now at version 3 
     
    3134 * 
    3235 *     Revision 1.22  2005/03/28 19:49:52  benoitg 
    33  *     2005-03-28 Benoit Grgoire  <bock@step.polymtl.ca> 
     36 *     2005-03-28 Benoit Gr?goire  <bock@step.polymtl.ca> 
    3437 *      * common.php:  Add get_guid() function 
    3538 *      * 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. 
     
    4447 * 
    4548 *     Revision 1.19  2005/01/26 03:46:30  benoitg 
    46  *     2005-01-25 Benoit Grgoire  <bock@step.polymtl.ca> 
     49 *     2005-01-25 Benoit Gr?goire  <bock@step.polymtl.ca> 
    4750 *      * classes/Node.php:  New file, untested code example 
    4851 *      * wifidog/admin/admin_common.php: Remove double-defined BASEPATH 
     
    6164 * 
    6265 *     Revision 1.14  2005/01/12 00:57:42  benoitg 
    63  *     2004-01-10 Benoit Grgoire  <bock@step.polymtl.ca> 
     66 *     2004-01-10 Benoit Gr?goire  <bock@step.polymtl.ca> 
    6467 *      * wifidog/config.php:  Add list of hotspot to network rss feed list (not yet functionnal) 
    6568 *      * wifidog/hotspot_status.php:  Allow RSS export of the list of deployed HotSpots. 
     
    6972 * 
    7073 *     Revision 1.13  2004/12/03 19:42:32  benoitg 
    71  *     2004-12-03 Benoit Grgoire  <bock@step.polymtl.ca> 
     74 *     2004-12-03 Benoit Gr?goire  <bock@step.polymtl.ca> 
    7275 *      * 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. 
    7376 *      * wifidog/config.php, wifidog/local_content/default/login.html, wifidog/include/user_management_menu.php:  Add hotspot status page to login page. 
     
    7780 * 
    7881 *     Revision 1.12  2004/11/20 03:28:25  benoitg 
    79  *     2004-11-19 Benoit Grgoire  <bock@step.polymtl.ca> 
     82 *     2004-11-19 Benoit Gr?goire  <bock@step.polymtl.ca> 
    8083 *      * TODO: Add email domains to blacklist 
    8184 *      * wifidog/config.php, wifidog/include/user_management_menu.php: Add tech support email address 
     
    119122define('UNKNOWN_HOSTPOT_NAME', 'Unknown HotSpot'); 
    120123 
     124define('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... */ 
    121125define('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")); 
    126126/* RSS support.  If set to true, MAGPIERSS must be installed in MAGPIE_REL_PATH */ 
    127127define('RSS_SUPPORT', true);  
     
    198198 
    199199define('DEFAULT_NODE_ID', 'default'); 
    200 define('DEFAULT_LANG', 'fr_FR'); 
    201  
     200 define('DEFAULT_LANG', 'fr_FR'); 
     201  
    202202/*** FOR TESTING ONLY *** UNCOMMENT THE NEXT LINES 
    203203 *** WHEN READY TO TEST ************************** 
  • trunk/wifidog-auth/wifidog/include/common.php

    r512 r521  
    88$db = new AbstractDb(); 
    99validate_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 else 
    25   { 
    26     define('GETTEXT_AVAILABLE', true); 
    27   } 
    2810 
    2911/* NEVER edit these, as they mush match the C code of the gateway */ 
  • trunk/wifidog-auth/wifidog/include/language.php

    r349 r521  
    11<?php 
     2require_once BASEPATH.'classes/Session.php'; 
     3$session = new Session(); 
     4/* Gettext support */ 
     5if(!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  } 
     18else 
     19  { 
     20    define('GETTEXT_AVAILABLE', true); 
     21  } 
     22 
    223if (!empty($_REQUEST['lang'])) { 
    324    $session->set('SESS_LANGUAGE_VAR', $_REQUEST['lang']);