Changeset 299

Show
Ignore:
Timestamp:
12/08/04 19:44:59 (4 years ago)
Author:
benoitg
Message:

2004-12-08 Benoit Gr�goire <bock@step.polymtl.ca>

  • wifidog/index.php: Add menu
  • wifidog/include/user_management_menu.php: Editorial change, make translateable
  • wifidog/portal/index.php: Fix RSS feeds
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog-auth/ChangeLog

    r296 r299  
    11# $Header$ 
     2 
     32004-12-08 Benoit Gr�ire  <bock@step.polymtl.ca> 
     4        * wifidog/index.php: Add menu 
     5        * wifidog/include/user_management_menu.php: Editorial change, make translateable 
     6        * wifidog/portal/index.php:  Fix RSS feeds 
     7 
    282004-12-03 Benoit Gr�ire  <bock@step.polymtl.ca> 
    39        * 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. 
  • trunk/wifidog-auth/wifidog/include/user_management_menu.php

    r296 r299  
    4343  
    4444  $retval .= "</ul>\n"; 
    45   $retval .= "<p class='sidenote'>Accounts on ".HOTSPOT_NETWORK_NAME." are <emp>totally free</emp>, use the left menu to create a new one or recover a lost username or password.</p>\n"; 
    46   $retval .= "<p class='sidenote'>Please report any problem or interruption in our service to: <a href='".TECH_SUPPORT_EMAIL."'>".TECH_SUPPORT_EMAIL."</a></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"; 
     46  $retval .= "<p class='sidenote'>"._("Please report any problem or interruption in our service to:")." <a href='".TECH_SUPPORT_EMAIL."'>".TECH_SUPPORT_EMAIL."</a></p>\n"; 
    4747  //$retval .= "</div>\n"; 
    4848  return $retval; 
  • trunk/wifidog-auth/wifidog/index.php

    r296 r299  
    2727require_once BASEPATH.'classes/Style.php'; 
    2828require_once BASEPATH.'classes/Statistics.php'; 
     29require_once (BASEPATH.'include/user_management_menu.php'); 
    2930 
    3031$style = new Style(); 
    3132echo $style->GetHeader(HOTSPOT_NETWORK_NAME.' authentication server'); 
    3233    echo "<div id='head'><h1>Wifidog authentication server for ". HOTSPOT_NETWORK_NAME ."</h1></div>\n"; 
     34  echo "<div id='navLeft'>\n"; 
     35echo get_user_management_menu(); 
     36echo "</div>\n"; 
    3337    echo "<div id='content'>\n"; 
    3438 
  • trunk/wifidog-auth/wifidog/portal/index.php

    r226 r299  
    6767if(RSS_SUPPORT) 
    6868  { 
    69       $old_error_level = error_reporting(E_ERROR); 
     69//      $old_error_level = error_reporting(E_ERROR); 
    7070    define('MAGPIE_DIR', BASEPATH.MAGPIE_REL_PATH); 
    71     require_once(MAGPIE_DIR.'rss_fetch.inc'); 
    72     define('MAGPIE_DEBUG', 0); 
    73      
     71//    require_once(MAGPIE_DIR.'rss_fetch.inc'); 
     72//    define('MAGPIE_DEBUG', 0); 
     73 require_once BASEPATH.'classes/RssPressReview.inc'; 
     74 $press_review=new RssPressReview; 
     75 $network_rss_sources = NETWORK_RSS_URL; 
     76 $network_rss_html = null; 
     77                     if(!empty($network_rss_sources)) 
     78                     { 
     79 
     80$network_rss_sources = array( 
     81                     array('url' => $network_rss_sources, 'default_publication_interval' => 7*24*3600) 
     82                     ); 
     83                     $network_rss_html=$press_review->get_rss_html($network_rss_sources, 5); 
     84                     } 
     85                      
     86                     $hotspot_rss_html=null; 
     87                     if(!empty($hotspot_rss_url)) 
     88                     { 
     89$hotspot_rss_sources = array( 
     90                     array('url' => $hotspot_rss_url, 'default_publication_interval' => 7*24*3600) 
     91                     ); 
     92                     $hotspot_rss_html=$press_review->get_rss_html($hotspot_rss_sources, 5); 
     93
    7494    /** 
    7595     @return the generated html or the error message or an empty string if called without a URL. 
     
    106126 
    107127 
    108     $network_rss_html=generate_rss_html(NETWORK_RSS_URL);     
     128    //$network_rss_html=generate_rss_html(NETWORK_RSS_URL);     
    109129    //echo $networkrss_html; 
    110130    $smarty->assign("network_rss_html", $network_rss_html); 
    111131 
    112132     
    113     $hotspot_rss_html=generate_rss_html($hotspot_rss_url);     
     133    //$hotspot_rss_html=generate_rss_html($hotspot_rss_url);     
    114134    //echo $hotspot_rss_html; 
    115135    $smarty->assign("hotspot_rss_html", $hotspot_rss_html); 
    116         error_reporting($old_error_level); 
     136     //   error_reporting($old_error_level); 
    117137  } 
    118138$smarty->assign("user_management_menu", get_user_management_menu());