Changeset 1082

Show
Ignore:
Timestamp:
08/28/06 19:03:25 (3 years ago)
Author:
max-horvath
Message:

"2006-08-28 Max Horvath <max.horvath@maxspot.de>

  • Integrated KML node list export
  • Integrated PDF node list export
  • Updated Sprintf formatted strings in some Smarty templates"
Files:

Legend:

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

    r1080 r1082  
     12006-08-28 Max Horváth <max.horvath@maxspot.de> 
     2        * Integrated KML node list export 
     3        * Integrated PDF node list export 
     4        * Updated Sprintf formatted strings in some Smarty templates 
     5 
    162006-08-27 Benoit Grégoire  <bock@step.polymtl.ca> 
    27        * clickthrough.php, HyperLink.php:  Implement working hyperlink clickthrough tracking (no reporting yet). 
     
    49        * Make HTMLeditor inherit from Langstring.  Allowed a massive reduction of line count and will stop the codebases from needlessly drifting apart. 
    510        * Do not log content displayed as metadata, and log their clickthrough as the parent's. 
    6          
     11 
    7122006-08-27 François Proulx <francois.proulx@gmail.com> 
    813        * Updated French translations 
    914        * Now using Sprintf formatted strings in some Smarty templates (see example in templates/sites/index.tpl). 
    1015        * Integrated back the SQL profiling functions 
    11          
     16 
    12172006-07-20 Benoit Grégoire  <bock@step.polymtl.ca> 
    1318        * Fix a bug where having an empty username would break statistics. 
     
    1722 
    18232006-07-05 Benoit Grégoire  <bock@step.polymtl.ca> 
    19         * Fix #175.  
     24        * Fix #175. 
    2025        * Fix the "Registration Log" and "User registration report" reports giving incorrect statistics 
    2126        * Allow disabling EventLogging class in config.php, to make SQL debuging possible (The class was traping errors before AbstractDb could output them) 
    22         * Make EVENT_LOGGING default to false for now, as it turns out EventLogging was the cause of the  
    23         Spurious PEAR output ("Runtime Notice: ") we've been seeing.  That is probably only because we don't  
     27        * Make EVENT_LOGGING default to false for now, as it turns out EventLogging was the cause of the 
     28        Spurious PEAR output ("Runtime Notice: ") we've been seeing.  That is probably only because we don't 
    2429        understand how to properly control it's logging level. 
    2530 
  • trunk/wifidog-auth/INSTALL

    r952 r1082  
    1616- FCKeditor 2.2 (http://www.fckeditor.net/) (Required if you want to edit 
    1717  content with a HTML text editor aka WYSIWYG editor) 
     18- FPDF 1.53+ (http://www.fpdf.org/) (Required if you want to export the node 
     19  list into a PDF file) 
    1820- PEAR (if you need RADIUS auth support, see below) 
    1921- Phlickr 0.2.5+ installed as a PEAR package (http://phlickr.sourceforge.net/) 
  • trunk/wifidog-auth/wifidog/README.txt

    r1045 r1082  
    33 
    44Subdirectories: 
    5 admin:          PHP scripts for the adminstrative interface 
    6 auth:           Gateway authentication responder 
    7 classes:        All the PHP classes 
    8 content:     Scripts and reports for specific content types (such as PatternLanguage) 
    9 contrib:     Various scripts and templates given as examples 
    10 cron:           PHP scripts meant to be executed on a regular basis 
    11 include:        PHP includes 
    12 js:             Javascripts 
    13 lib:            PHP includes and classes maintained outside wifidog.  Some are merely installed there, some are distributed with wifidog. 
    14 locale:         Gettext translation files and scripts 
    15 login:          Login page 
    16 media:          Static media files (stylesheets, theme packs, images) 
    17 ping:           Gateway heartbeat and logging responder 
    18 portal:         Portal page 
    19 templates:      Smarty templates (Note that those are meant to ease development, not for customization) 
    20 tmp:            Wifidog stores all it's temp files here 
     5admin:      PHP scripts for the adminstrative interface 
     6auth:       Gateway authentication responder 
     7classes:    All the PHP classes 
     8content:    Scripts and reports for specific content types (such as 
     9            PatternLanguage) 
     10contrib:    Various scripts and templates given as examples 
     11cron:       PHP scripts meant to be executed on a regular basis 
     12include:    PHP includes 
     13js:         Javascripts 
     14lib:        PHP includes and classes maintained outside wifidog.  Some are 
     15            merely installed there, some are distributed with wifidog. 
     16locale:     Gettext translation files and scripts 
     17login:      Login page 
     18media:      Static media files (stylesheets, theme packs, images) 
     19ping:       Gateway heartbeat and logging responder 
     20portal:     Portal page 
     21templates:  Smarty templates (Note that those are meant to ease development, 
     22            not for customization) 
     23tmp:        Wifidog stores all it's temp files here 
  • trunk/wifidog-auth/wifidog/classes/Dependencies.php

    r1023 r1082  
    4343 * @link       http://www.wifidog.org/ 
    4444 */ 
    45 require_once ('classes/Locale.php');//Necessary in case gettext isn't defined 
     45 
     46// Detect Gettext support 
     47if (!function_exists('gettext')) { 
     48    require_once ('classes/Locale.php'); 
     49
     50 
    4651/** 
    4752 * This class checks the existence of components required by WiFiDog. 
     
    7075           "Radius" => array ("name" => "PEAR::RADIUS", "files" => array("Auth/RADIUS.php", "Crypt/CHAP.php"), "PhpExtension" => false, "localLib" => false), 
    7176           "FCKeditor" => array ("name" => "FCKeditor", "files" => "lib/FCKeditor/fckeditor.php", "PhpExtension" => false, "localLib" => true), 
     77           "FPDF" => array ("name" => "FPDF", "files" => "lib/fpdf/fpdf.php", "PhpExtension" => false, "localLib" => true), 
    7278           "Smarty" => array ("name" => "Smarty", "files" => "lib/smarty/Smarty.class.php", "PhpExtension" => false, "localLib" => true) 
    7379           ); 
  • trunk/wifidog-auth/wifidog/classes/NodeLists/NodeListHTML.php

    r1031 r1082  
    4646 * Load required classes 
    4747 */ 
     48require_once('classes/Dependencies.php'); 
    4849require_once('classes/Network.php'); 
    4950require_once('classes/Node.php'); 
     
    178179        $this->_smarty->assign('nodes', array()); 
    179180        $this->_smarty->assign('num_deployed_nodes', 0); 
     181        $this->_smarty->assign('PdfSupported', false); 
    180182 
    181183        /* 
     
    196198            $this->_smarty->assign('GMapsEnabled', true); 
    197199        } 
     200 
     201        if (Dependencies::check("FPDF")) { 
     202            $this->_smarty->assign('PdfSupported', true); 
     203        } 
     204 
    198205        // Set section of Smarty template 
    199206        $this->_smarty->assign('sectionTOOLCONTENT', true); 
  • trunk/wifidog-auth/wifidog/templates/sites/hotspot_status.tpl

    r1072 r1082  
    5656                <li><a href="{$base_non_ssl_path}hotspots_map.php">{"Deployed HotSpots map"|_}</a></li> 
    5757            {/if} 
     58            {if $PdfSupported} 
     59                <li><a href="?format=PDF">{"Get this list as a PDF file"|_}</a></li> 
     60            {/if} 
     61            <li><a href="?format=RSS">{"Get this list as a RSS feed"|_}</a></li> 
     62            <li><a href="?format=KML">{"Get this list for Google Earth"|_}</a></li> 
    5863            <li><a href="{$base_non_ssl_path}node_list.php">{"Full node technical status (includes non-deployed nodes)"|_}</a></li> 
    5964        </ul> 
     
    7277            <thead> 
    7378                <tr> 
    74                     <th colspan=6>{"Status of the"|_} {$num_deployed_nodes} {"open"|_} {$hotspot_network_name} {"Hotspots (Get this list as a <a href='?format=RSS'>RSS feed</a>)"|_}</th> 
     79                    <th colspan="6">{"Status of the %d open %s Hotspots"|_|sprintf:$num_deployed_nodes:$hotspot_network_name}</th> 
    7580                </tr> 
    7681                <tr> 
     
    117122                        {/if} 
    118123 
    119                         {"Opened on"|_} {$nodes[node].creation_date} 
     124                        {"Opened on %s"|_|sprintf:$nodes[node].creation_date} 
    120125                    </td> 
    121126