Changeset 704

Show
Ignore:
Timestamp:
08/31/05 22:27:20 (3 years ago)
Author:
fproulx
Message:

2005-08-31 Francois Proulx <francois.proulx@gmail.com>

  • Fixed new node creation bug
Files:

Legend:

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

    r702 r704  
     12005-08-31 Francois Proulx <francois.proulx@gmail.com> 
     2        * Fixed new node creation bug 
     3         
    142005-08-29 Philippe April <philippe@ilesansfil.org> 
    25        * js/gmaps_hotspots_status_map.js: Fixed small bug in that makes prevents 
  • trunk/wifidog-auth/wifidog/classes/Node.php

    r697 r704  
    170170         * @return the newly created Node object, or null if there was an error 
    171171         */ 
    172         static function createNode($node_id, $name, $home_page_url = "", $description = "", $map_url = "", $street_address = "", $public_phone_number = "", $public_email = "", $mass_transit_info = "", $node_deployment_status = "IN_PLANNING") 
     172        static function createNode($node_id, $name, $home_page_url = "", $description = "", $map_url = "", $street_name = "", $public_phone_number = "", $public_email = "", $mass_transit_info = "", $node_deployment_status = "IN_PLANNING") 
    173173        { 
    174174                global $db; 
     
    179179                $description = $db->EscapeString($description); 
    180180                $map_url = $db->EscapeString($map_url); 
    181                 $street_address = $db->EscapeString($street_address); 
     181                $street_name = $db->EscapeString($street_name); 
    182182                $public_phone_number = $db->EscapeString($public_phone_number); 
    183183                $public_email = $db->EscapeString($public_email); 
     
    188188                        throw new Exception(_('This node already exists.')); 
    189189 
    190                 $sql = "INSERT INTO nodes (node_id, name, creation_date, home_page_url, description, map_url, street_address, public_phone_number, public_email, mass_transit_info, node_deployment_status) VALUES ('$node_id','$name', NOW(),'$home_page_url','$description','$map_url','$street_address','$public_phone_number','$public_email','$mass_transit_info','$node_deployment_status')"; 
     190                $sql = "INSERT INTO nodes (node_id, name, creation_date, home_page_url, description, map_url, street_name, public_phone_number, public_email, mass_transit_info, node_deployment_status) VALUES ('$node_id','$name', NOW(),'$home_page_url','$description','$map_url','$street_name','$public_phone_number','$public_email','$mass_transit_info','$node_deployment_status')"; 
    191191 
    192192                if (!$db->ExecSqlUpdate($sql, false)) 
  • trunk/wifidog-auth/wifidog/js/gmaps_hotspots_status_map.js

    r702 r704  
    148148        if(name.length == 1) 
    149149                html += "<b>" + name[0].firstChild.nodeValue + "</b><br/>"; 
    150                  
    151         /* Too long ... ?! 
    152         var desc = hotspot_element.getElementsByTagName("description"); 
    153         if(desc.length == 1) 
    154                 html += "<i>" + desc[0].firstChild.nodeValue + "</i><br/>";*/ 
    155150         
    156151        var civicNumber = hotspot_element.getElementsByTagName("civicNumber");