Changeset 316

Show
Ignore:
Timestamp:
01/12/05 10:51:16 (8 years ago)
Author:
aprilp
Message:

* i18n and smarty'ized parts

Location:
trunk/wifidog-auth
Files:
5 added
18 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/ChangeLog

    r315 r316  
    11# $Header$ 
     22004-01-12 Philippe April <isf_lists@philippeapril.com> 
     3        * i18n and smarty'ized parts 
     4 
    252004-01-11 Benoit Gr�goire  <bock@step.polymtl.ca> 
    36        * INSTALL: Mandate PHP5 
  • trunk/wifidog-auth/wifidog/classes/SmartyWifidog.php

    r227 r316  
    5050        $this->config_dir = BASEPATH.'tmp/smarty/configs/'; 
    5151        $this->cache_dir = BASEPATH.'tmp/smarty/cache/'; 
     52 
     53        $this->register_modifier("_","_"); 
    5254         
    5355        $this->caching = false; 
     
    6264            $this->assign('header_file',DEFAULT_CONTENT_SMARTY_PATH.PAGE_HEADER_NAME); 
    6365          } 
     66 
     67    if (is_file(NODE_CONTENT_PHP_RELATIVE_PATH.PORTAL_PAGE_NAME)) { 
     68        $this->assign('portal_page', NODE_CONTENT_SMARTY_PATH.PORTAL_PAGE_NAME); 
     69    } else { 
     70        $this->assign('portal_page', DEFAULT_CONTENT_SMARTY_PATH.PORTAL_PAGE_NAME); 
     71    } 
     72 
     73    if (is_file(NODE_CONTENT_PHP_RELATIVE_PATH.PORTAL_PAGE_NAME)) { 
     74        $this->assign('login_page', NODE_CONTENT_SMARTY_PATH.LOGIN_PAGE_NAME); 
     75    } else { 
     76        $this->assign('login_page', DEFAULT_CONTENT_SMARTY_PATH.LOGIN_PAGE_NAME); 
     77    } 
    6478         
    6579        if (is_file(NODE_CONTENT_PHP_RELATIVE_PATH.PAGE_FOOTER_NAME)) 
  • trunk/wifidog-auth/wifidog/hotspot_status.php

    r315 r316  
    3030require_once BASEPATH.'classes/SmartyWifidog.php'; 
    3131 
    32  
    33 if(!empty($_REQUEST['format'])) 
    34   { 
     32$smarty = new SmartyWifidog; 
     33$session = new Session(); 
     34$stats = new Statistics(); 
     35 
     36include BASEPATH.'include/language.php'; 
     37 
     38if(!empty($_REQUEST['format'])) { 
    3539    $format = $_REQUEST['format']; 
    36   } 
    37  else 
    38    { 
    39      $format = null; 
    40    } 
    41 $style = new Style(); 
    42 $stats = new Statistics(); 
     40} else { 
     41    $format = null; 
     42} 
    4343 
    4444$db->ExecSql("SELECT *, (NOW()-last_heartbeat_timestamp) AS since_last_heartbeat, EXTRACT(epoch FROM creation_date) as creation_date_epoch, CASE WHEN ((NOW()-last_heartbeat_timestamp) < interval '5 minutes') THEN true ELSE false END AS is_up FROM nodes WHERE node_deployment_status = 'DEPLOYED' OR node_deployment_status = 'NON_WIFIDOG_NODE' ORDER BY creation_date", $node_results, false); 
    4545 
    46 if($format=='RSS') 
    47   { 
    48      Header("Cache-control: private, no-cache, must-revalidate"); 
    49      Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); # Past date 
    50      Header("Pragma: no-cache"); 
    51      Header("Content-Type: text/xml; charset=UTF-8"); 
     46if ($format == 'RSS') { 
     47    Header("Cache-control: private, no-cache, must-revalidate"); 
     48    Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); # Past date 
     49    Header("Pragma: no-cache"); 
     50    Header("Content-Type: text/xml; charset=UTF-8"); 
    5251 
    5352    $xmldoc = new DOMDocument(); 
     
    271270 
    272271      /* source */ 
    273  
    274  
    275272    } 
    276273 
     
    278275    //$style=new Style(); 
    279276    //echo $style->GetFooter(true,true); 
    280  
    281                  
    282   } 
    283  else 
    284    { 
    285      $smarty = new SmartyWifidog; 
    286      $smarty->SetTemplateDir('templates/'); 
    287  
    288      foreach($node_results as $node_row) { 
    289        $node_row['duration'] = $db->GetDurationArrayFromIntervalStr($node_row['since_last_heartbeat']); 
    290        $node_row['num_online_users'] = $stats->getNumOnlineUsers($node_row['node_id']); 
    291        $smarty->append("nodes", $node_row); 
    292      } 
    293      $smarty->assign("nodes_count", count($node_results)); 
    294      $smarty->assign("rss_format_url", 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'].'?format=RSS'); 
    295      echo $style->GetHeader(HOTSPOT_NETWORK_NAME.' hotspot status'); 
    296      $smarty->display("hotspot_status.html"); 
    297      echo $style->GetFooter(); 
    298  
    299    } 
    300  
     277} else { 
     278    foreach($node_results as $node_row) { 
     279        $node_row['num_online_users'] = $stats->getNumOnlineUsers($node_row['node_id']); 
     280        $smarty->append("nodes", $node_row); 
     281    } 
     282 
     283    $smarty->assign("title", "hotspot_status"); 
     284    $smarty->display("templates/hotspot_status.html"); 
     285} 
    301286?> 
  • trunk/wifidog-auth/wifidog/include/common.php

    r311 r316  
    33require_once BASEPATH.'config.php'; 
    44require_once BASEPATH.'classes/AbstractDb.php'; 
     5require_once BASEPATH.'classes/Session.php'; 
    56 
    67global $db; 
     
    2425  { 
    2526    define('GETTEXT_AVAILABLE', true); 
     27    setlocale(LC_ALL, DEFAULT_LANG); 
     28    bindtextdomain('messages', BASEPATH.'/locale'); 
     29    bind_textdomain_codeset('messages', 'UTF-8'); 
     30    textDomain('messages');  
    2631  } 
    2732 
     
    6166define('SESS_PASSWORD_HASH_VAR', 'SESS_PASSWORD_HASH'); 
    6267define('SESS_ORIGINAL_URL_VAR', 'SESS_ORIGINAL_URL'); 
     68define('SESS_LANGUAGE_VAR', 'SESS_LANGUAGE'); 
     69 
     70/* Languages and sessions */ 
     71$lang_ids = array( 
     72        "fr_FR", 
     73        "en_US" 
     74    ); 
     75$lang_names = array( 
     76        "Fran&ccedil;ais", 
     77        "English" 
     78    ); 
     79 
     80/* End */ 
    6381 
    6482/* This section deals with PATHs */ 
  • trunk/wifidog-auth/wifidog/include/user_management_menu.php

    r305 r316  
    2929  //$retval .= "<div class='menu'>\n"; 
    3030 
    31   $retval .= "<p>Find more HotSpots</p>\n"; 
     31  $retval .= "<p>"._('Find more HotSpots')."</p>\n"; 
    3232  $retval .= "<ul>\n"; 
    33    $retval .= "<li><a href='".BASE_URL_PATH."".HOTSPOT_STATUS_PAGE."'>"._('List of all HotSpots')."</a></li>\n";  
     33  $retval .= "<li><a href='".BASE_URL_PATH."".HOTSPOT_STATUS_PAGE."'>"._('List of all HotSpots')."</a></li>\n";  
    3434  $retval .= "</ul>\n"; 
    35   $retval .= "<p>User management</p>\n"; 
     35  $retval .= "<p>"._('User management')."</p>\n"; 
    3636  $retval .= "<ul>\n"; 
    3737 
     
    4343  
    4444  $retval .= "</ul>\n"; 
    45   $retval .= "<p class='sidenote'>"._("Accounts on ".HOTSPOT_NETWORK_NAME." are and will remain <emp>totally free</emp>, use the left menu to create a new one or recover a lost username or password.")."</p>\n"; 
     45  $retval .= "<p class='sidenote'>"._("Accounts on ").HOTSPOT_NETWORK_NAME._(" are and will remain <emp>totally free</emp>, use the left menu to create a new one or recover a lost username or password.")."</p>\n"; 
    4646  $retval .= "<p class='sidenote'>"._("Please report any problem or interruption in our service to:")." <a href='mailto:".TECH_SUPPORT_EMAIL."'>".TECH_SUPPORT_EMAIL."</a></p>\n"; 
    4747  //$retval .= "</div>\n"; 
  • trunk/wifidog-auth/wifidog/index.php

    r312 r316  
    2525define('BASEPATH', './'); 
    2626require_once BASEPATH.'include/common.php'; 
    27 require_once BASEPATH.'classes/Style.php'; 
    2827require_once BASEPATH.'classes/Statistics.php'; 
    2928require_once BASEPATH.'classes/SmartyWifidog.php'; 
    3029 
    3130$smarty = new SmartyWifidog; 
    32 $smarty->SetTemplateDir('templates/'); 
     31$session = new Session(); 
     32$stats = new Statistics(); 
    3333 
    34 $style = new Style(); 
    35 echo $style->GetHeader(HOTSPOT_NETWORK_NAME.' authentication server'); 
     34include BASEPATH.'include/language.php'; 
    3635 
    37 $stats = new Statistics(); 
    3836$smarty->assign("num_valid_users", $stats->getNumValidUsers()); 
    3937$smarty->assign("num_online_users", $stats->getNumOnlineUsers($node_id = null)); 
    4038 
    41 $smarty->display("main.html"); 
    42  
    43 echo $style->GetFooter(); 
     39$smarty->assign("title", "authentication server"); 
     40$smarty->display("templates/main.html"); 
    4441?> 
  • trunk/wifidog-auth/wifidog/local_content/default/footer.html

    r152 r316  
     1</div> 
    12</body> 
    23</html> 
  • trunk/wifidog-auth/wifidog/local_content/default/header.html

    r227 r316  
    1111</head> 
    1212<body> 
     13 
  • trunk/wifidog-auth/wifidog/local_content/default/login.html

    r305 r316  
    1     {include file=$header_file title="WiFiDog login page"} 
    2     <!--login page EN $Id$ -->       
    3  
    4       <div id='head'> 
    5         <h1>Greetings! Welcome to {$hotspot_name}, a {$hotspot_network_name} free HotSpot</h1> 
    6         </div> 
    7  
    8            
    9  
    10       <div id="login"> 
    11         <form method="post"> 
    12           <input type="hidden" name="gw_address" value="{$gw_address}"> 
    13           <input type="hidden" name="gw_port" value="{$gw_port}"> 
    14           <input type="hidden" name="gw_id" value="{$gw_id}"> 
    15           <p><span class=warning>{$login_failed_message}</span> 
    16 Username (or email): 
    17             <input type="text" name="user" size='12' value="{$previous_username}"> 
    18             Password:<input type="password" name="pass" size='12' value="{$previous_password}"> 
    19             <input type="submit" value='Login'></p> 
    20             </form> 
    21       </div> 
    22        
    23                   <div id='navLeft'> 
    24 {$user_management_menu} 
    25       </div> 
    26       <div id="content"> 
    27 <!--      <h2>Announcements</h2> 
     1<!--login page EN $Id$ -->       
     2{* 
     3  <h2>Announcements</h2> 
    284  <dl> 
    295  <dt>16/11/2004: <a href='http://auth.ilesansfil.org/phpsurveyor/index.php?sid=3'>Sondage pour les usagers</a> / <a href='http://auth.ilesansfil.org/phpsurveyor/index.php?sid=2'>User survey</a></dt> 
    306  <dd>Aidez les b�n�voles d'�le sans fil � vous offrir un meilleur service en remplissant notre sondage. / Please help our volunteers support you by filling our survey.</dd> 
    31   </dl> >--> 
    32  
     7  </dl> 
     8*} 
    339 
    3410<div class="logos"> 
     
    3713</div> 
    3814<img src="{$hotspot_logo_url}" alt="{$hotspot_name} logo"  class="hotspot" /> 
    39  
    40 </div> 
    41  
    42       {include file=$footer_file} 
  • trunk/wifidog-auth/wifidog/local_content/default/portal.html

    r282 r316  
    1 {include file=$header_file} 
    21<!--portal page EN - $Id$ --> 
    3       <div id='navLeft'> 
    4         <p>Online at this hotspot:</p> 
    5         <ul> 
    6           {foreach from=$online_users item=user_info} 
    7           <li>{$user_info.user_id}</li> 
    8         {/foreach} 
    9       </ul> 
    10 {$user_management_menu} 
    11       </div> 
    12       <div id='head'> 
    13        
    14       </div> 
    15       <div id='login'> 
    16       <p>Go to the site I originally requested: <a href='{$original_url_requested}'>{$original_url_requested}</a></p> 
    17       </div> 
    18       <div id='content'> 
    19        
    20         <p><a href='{$hotspot_network_url}'><img src='{$network_logo_banner_url}' alt='{$hotspot_network_name} logo' border='0'></a></p> 
    21         <p>Content from "<a href='{$hotspot_network_url}'>{$hotspot_network_name}</a>"</p> 
    22         {$network_rss_html} 
    23       </div> 
    24       <div id='content'> 
    25         <p><img src='{$hotspot_logo_banner_url}' alt='{$hotspot_name} logo'> 
    26         <p>Content from "{$hotspot_name}"</p> 
    27         {$hotspot_rss_html} 
    28       </div> 
    29        
    30  
    31       {include file=$footer_file} 
    32        
    33        
     2<p><a href='{$hotspot_network_url}'><img src='{$network_logo_banner_url}' alt='{$hotspot_network_name} logo' border='0'></a></p> 
     3<p>Content from "<a href='{$hotspot_network_url}'>{$hotspot_network_name}</a>"</p> 
     4{$network_rss_html} 
  • trunk/wifidog-auth/wifidog/login/index.php

    r254 r316  
    2626define('BASEPATH','../'); 
    2727require_once BASEPATH.'include/common.php'; 
    28 require_once BASEPATH.'classes/Style.php';//Required to write http headers 
    2928require_once BASEPATH.'classes/SmartyWifidog.php'; 
    30 require_once (BASEPATH.'include/user_management_menu.php'); 
    3129require_once BASEPATH.'classes/Security.php'; 
     30 
     31$smarty = new SmartyWifidog; 
     32$session = new Session; 
     33 
     34include BASEPATH.'include/language.php'; 
    3235 
    3336$login_successfull = false; 
     
    3942  { 
    4043    $session = new Session(); 
    41     $session->set(SESS_ORIGINAL_URL_VAR,$_REQUEST['url']); 
     44    $session->set(SESS_ORIGINAL_URL_VAR, $_REQUEST['url']); 
    4245  } 
    4346 
     
    9598if($login_successfull==false) 
    9699  { 
    97     $smarty = new SmartyWifidog; 
    98     $smarty->assign("user_management_menu", get_user_management_menu()); 
     100    $smarty->assign("lang_menu", "templates/lang_menu.html"); 
     101    $smarty->assign("user_management_menu", "templates/user_management_menu.html"); 
    99102    $smarty->assign('previous_username',$previous_username); 
    100103    $smarty->assign('previous_password',$previous_password); 
     
    106109    //$user_management_url = BASE_URL_PATH."user_management/"; 
    107110 
     111    $smarty->display(DEFAULT_CONTENT_SMARTY_PATH."header.html"); 
     112    $smarty->display(DEFAULT_CONTENT_SMARTY_PATH."header_login.html"); 
    108113    $smarty->displayLocalContent(LOGIN_PAGE_NAME); 
     114    $smarty->display(DEFAULT_CONTENT_SMARTY_PATH."footer.html"); 
    109115  } 
    110116?> 
  • trunk/wifidog-auth/wifidog/node_list.php

    r312 r316  
    2626define('BASEPATH','./'); 
    2727require_once BASEPATH.'include/common.php'; 
    28 require_once BASEPATH.'classes/Style.php'; 
    2928require_once BASEPATH.'classes/Statistics.php'; 
    3029require_once BASEPATH.'classes/SmartyWifidog.php'; 
    3130 
    3231$smarty = new SmartyWifidog; 
    33 $smarty->SetTemplateDir('templates/'); 
     32$session = new Session(); 
     33$stats = new Statistics(); 
    3434 
    35 $style = new Style(); 
    36 $stats = new Statistics(); 
     35include BASEPATH.'include/language.php'; 
    3736 
    3837$db->ExecSql("SELECT node_id, name, last_heartbeat_user_agent, (NOW()-last_heartbeat_timestamp) AS since_last_heartbeat, last_heartbeat_ip, CASE WHEN ((NOW()-last_heartbeat_timestamp) < interval '5 minutes') THEN true ELSE false END AS is_up, creation_date FROM nodes ORDER BY node_id", $node_results, false); 
     
    4443} 
    4544 
    46 echo $style->GetHeader(HOTSPOT_NETWORK_NAME.' node list'); 
    47 $smarty->display("node_list.html"); 
    48 echo $style->GetFooter(); 
     45$smarty->display("templates/node_list.html"); 
    4946?> 
  • trunk/wifidog-auth/wifidog/portal/index.php

    r315 r316  
    3737 
    3838$smarty = new SmartyWifidog; 
     39$session = new Session; 
     40 
     41include BASEPATH.'include/language.php'; 
    3942 
    4043$portal_template = $_REQUEST['gw_id'] . ".html"; 
     
    145148    //   error_reporting($old_error_level); 
    146149  } 
    147 $smarty->assign("user_management_menu", get_user_management_menu()); 
     150 
    148151$smarty->assign("user_management_url", BASE_SSL_PATH.USER_MANAGEMENT_PAGE); 
     152if (isset($session)) { 
     153    $smarty->assign("original_url_requested", $session->get(SESS_ORIGINAL_URL_VAR)); 
     154} 
    149155 
    150 $session = new Session(); 
    151 $smarty->assign("original_url_requested",$session->get(SESS_ORIGINAL_URL_VAR)); 
    152  
    153  
    154 if (is_file(NODE_CONTENT_PHP_RELATIVE_PATH.PORTAL_PAGE_NAME)) 
    155   { 
     156$smarty->display(DEFAULT_CONTENT_SMARTY_PATH."header.html"); 
     157$smarty->display(DEFAULT_CONTENT_SMARTY_PATH."header_portal.html"); 
     158if (is_file(NODE_CONTENT_PHP_RELATIVE_PATH.PORTAL_PAGE_NAME)) { 
    156159    $smarty->display(NODE_CONTENT_SMARTY_PATH.PORTAL_PAGE_NAME); 
    157   } 
    158  else 
    159    { 
    160      $smarty->display(DEFAULT_CONTENT_SMARTY_PATH.PORTAL_PAGE_NAME); 
    161    } 
    162  
     160} else { 
     161    $smarty->display(DEFAULT_CONTENT_SMARTY_PATH.PORTAL_PAGE_NAME); 
     162} 
     163$smarty->display(DEFAULT_CONTENT_SMARTY_PATH."footer_portal.html"); 
     164$smarty->display(DEFAULT_CONTENT_SMARTY_PATH."footer.html"); 
    163165?> 
  • trunk/wifidog-auth/wifidog/templates/header.html

    r312 r316  
    1 <div id='head'><h1>{$smarty.const.HOTSPOT_NETWORK_NAME} {$title}</h1></div> 
     1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
     2<html> 
     3<head> 
     4<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> 
     5<meta http-equiv='Pragma' CONTENT='no-cache'> 
     6<meta http-equiv='Expires' CONTENT='-1'> 
     7<style type="text/css"> 
     8{include file=$stylesheet_file} 
     9</style> 
     10<title>{$hotspot_network_name} {$title}</title> 
     11</head> 
     12<body> 
     13 
     14<div id='head'><h1>{$hotspot_network_name} {$title}</h1></div> 
     15 
    216<div id='navLeft'> 
     17{include file="templates/lang_menu.html"} 
     18{include file="templates/user_management_menu.html"} 
     19</div> 
     20 
     21<div id='content'> 
  • trunk/wifidog-auth/wifidog/templates/hotspot_status.html

    r315 r316  
    1 {include file="header.html" title="node list"} 
    2 {include file="user_management_menu.html"} 
    3 </div> 
    4 <div id='content'> 
    5  
     1{include file="templates/header.html" title="node list"} 
    62<table class='spreadsheet'> 
    73<thead> 
     
    7066 
    7167</table> 
    72  
    73 </div> 
  • trunk/wifidog-auth/wifidog/templates/main.html

    r312 r316  
    1 {include file="header.html" title="authentication server"} 
    2 {include file="user_management_menu.html"} 
    3 </div> 
    4 <div id='content'> 
    5  
    6 <p>The network currently has {$num_valid_users} valid users. {$num_online_users} user(s) are currently online.</p> 
     1{include file="templates/header.html" title="authentication server"} 
     2<p>{"The network currently has"|_} {$num_valid_users} {"valid users"|_}. {$num_online_users} {"user(s) are currently online"|_}.</p> 
    73<ul> 
    8 <li><a href='hotspot_status.php'>Deployed HotSpots status with coordinates</a></li> 
    9 <li><a href='node_list.php'>Full node technical status (includes non-deployed nodes)</a></li> 
    10 <li><a href='user_management/index.php'>Personal user management</a></li> 
    11 <li><a href='{$smarty.const.BASE_SSL_PATH}admin/index.php'>Administration</a></li> 
     4<li><a href='hotspot_status.php'>{"Deployed HotSpots status with coordinates"|_}</a></li> 
     5<li><a href='node_list.php'>{"Full node technical status (includes non-deployed nodes)"|_}</a></li> 
     6<li><a href='user_management/index.php'>{"Personal user management"|_}</a></li> 
     7<li><a href='{$smarty.const.BASE_SSL_PATH}admin/index.php'>{"Administration"|_}</a></li> 
    128</ul> 
    13 </div> 
  • trunk/wifidog-auth/wifidog/templates/node_list.html

    r312 r316  
    1 {include file="header.html" title="node list"} 
    2 {include file="user_management_menu.html"} 
    3 </div> 
    4 <div id='content'> 
    5  
     1{include file="templates/header.html" title="node list"} 
    62<table class='spreadsheet'> 
    73<thead> 
    84<tr class='spreadsheet'> 
    9     <th class='spreadsheet' colspan=6>Status of all nodes of the {$smarty.const.HOTSPOT_NETWORK_NAME} network</th> 
     5    <th class='spreadsheet' colspan=6>{"Status of all nodes of the"|_} {$smarty.const.HOTSPOT_NETWORK_NAME} {"network"|_}</th> 
    106</tr> 
    117<tr class='spreadsheet'> 
    12     <th class='spreadsheet'>Status</th> 
    13         <th class='spreadsheet'>Id</th> 
    14         <th class='spreadsheet'>Name</th> 
    15         <th class='spreadsheet'>Local content demo</th> 
    16         <th class='spreadsheet'>Opened on</th> 
    17         <th class='spreadsheet'>Online users</th> 
     8    <th class='spreadsheet'>{"Status"|_}</th> 
     9        <th class='spreadsheet'>{"Id"|_}</th> 
     10        <th class='spreadsheet'>{"Name"|_}</th> 
     11        <th class='spreadsheet'>{"Local content demo"|_}</th> 
     12        <th class='spreadsheet'>{"Opened on"|_}</th> 
     13        <th class='spreadsheet'>{"Online users"|_}</th> 
    1814</tr> 
    1915</thead> 
     
    2622    {else} 
    2723    <img src='{$smarty.const.BASE_URL_PATH}images/hotspot_status_down.png'> 
    28     {$nodes[node].duration.days} days {$nodes[node].duration.hours}h {$nodes[node].duration.minutes}min<br /> 
     24    {$nodes[node].duration.days} {"days"|_} {$nodes[node].duration.hours}h {$nodes[node].duration.minutes}min<br /> 
    2925    {/if} 
    3026    {$nodes[node].last_heartbeat_user_agent} 
     
    3329    <td class='spreadsheet'>{$nodes[node].name}</td> 
    3430    <td class='spreadsheet'> 
    35     <a href='{$smarty.const.BASE_SSL_PATH}login/index.php?gw_id={$nodes[node].node_id}&gw_address=127.0.0.1&gw_port=80'>Login page</a><br /> 
    36     <a href='{$smarty.const.BASE_URL_PATH}portal/index.php?gw_id={$nodes[node].node_id}'>Portal page</a> 
     31    <a href='{$smarty.const.BASE_SSL_PATH}login/index.php?gw_id={$nodes[node].node_id}&gw_address=127.0.0.1&gw_port=80'>{"Login page"|_}</a><br /> 
     32    <a href='{$smarty.const.BASE_URL_PATH}portal/index.php?gw_id={$nodes[node].node_id}'>{"Portal page"|_}</a> 
    3733    </td> 
    3834    <td class='spreadsheet'>{$nodes[node].creation_date}</td> 
     
    4642 
    4743</table> 
    48  
    49 </div> 
  • trunk/wifidog-auth/wifidog/templates/user_management_menu.html

    r312 r316  
    1 <p>Find more HotSpots</p> 
     1<p>{"Find more HotSpots"|_}</p> 
    22<ul> 
    3     <li><a href='{$smarty.const.BASE_URL_PATH}{$smarty.const.HOTSPOT_STATUS_PAGE}'>List of all HotSpots</a></li> 
     3    <li><a href='{$smarty.const.BASE_URL_PATH}{$smarty.const.HOTSPOT_STATUS_PAGE}'>{"List of all HotSpots"|_}</a></li> 
    44</ul> 
    55 
    6 <p>User management</p> 
     6<p>{"User management"|_}</p> 
    77<ul> 
    8     <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=register_new_account_form'>Create new account</a></li> 
    9     <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=validation_email_form'>Re-send validation email</a></li> 
    10     <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=lost_username_form'>Lost username</a></li> 
    11     <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=lost_password_form'>Lost password</a></li> 
    12     <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=change_password_form'>Change password</a></li> 
     8    <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=register_new_account_form'>{"Create new account"|_}</a></li> 
     9    <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=validation_email_form'>{"Re-send validation email"|_}</a></li> 
     10    <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=lost_username_form'>{"Lost username"|_}</a></li> 
     11    <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=lost_password_form'>{"Lost password"|_}</a></li> 
     12    <li><a href='{$smarty.const.BASE_SSL_PATH}{$smarty.const.USER_MANAGEMENT_PAGE}?action=change_password_form'>{"Change password"|_}</a></li> 
    1313</ul> 
    1414 
    15 <p class='sidenote'>Accounts on {$smarty.const.HOTSPOT_NETWORK_NAME} are and will remain <emp>totally free</emp>, use the left menu to create a new one or recover a lost username or password.</p> 
     15<p class='sidenote'>{"Accounts on"|_} {$smarty.const.HOTSPOT_NETWORK_NAME} {"are and will remain <emp>totally free</emp>, use the left menu to create a new one or recover a lost username or password"|_}.</p> 
    1616 
    17 <p class='sidenote'>Please report any problem or interruption in our service to: <a href='mailto:{$smarty.const.TECH_SUPPORT_EMAIL}'>{$smarty.const.TECH_SUPPORT_EMAIL}</a></p> 
     17<p class='sidenote'>{"Please report any problem or interruption in our service to"|_}: <a href='mailto:{$smarty.const.TECH_SUPPORT_EMAIL}'>{$smarty.const.TECH_SUPPORT_EMAIL}</a></p>