Changeset 704
- Timestamp:
- 08/31/05 22:27:20 (3 years ago)
- Files:
-
- trunk/wifidog-auth/ChangeLog (modified) (1 diff)
- trunk/wifidog-auth/wifidog/classes/Node.php (modified) (3 diffs)
- trunk/wifidog-auth/wifidog/js/gmaps_hotspots_status_map.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wifidog-auth/ChangeLog
r702 r704 1 2005-08-31 Francois Proulx <francois.proulx@gmail.com> 2 * Fixed new node creation bug 3 1 4 2005-08-29 Philippe April <philippe@ilesansfil.org> 2 5 * js/gmaps_hotspots_status_map.js: Fixed small bug in that makes prevents trunk/wifidog-auth/wifidog/classes/Node.php
r697 r704 170 170 * @return the newly created Node object, or null if there was an error 171 171 */ 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") 173 173 { 174 174 global $db; … … 179 179 $description = $db->EscapeString($description); 180 180 $map_url = $db->EscapeString($map_url); 181 $street_ address = $db->EscapeString($street_address);181 $street_name = $db->EscapeString($street_name); 182 182 $public_phone_number = $db->EscapeString($public_phone_number); 183 183 $public_email = $db->EscapeString($public_email); … … 188 188 throw new Exception(_('This node already exists.')); 189 189 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')"; 191 191 192 192 if (!$db->ExecSqlUpdate($sql, false)) trunk/wifidog-auth/wifidog/js/gmaps_hotspots_status_map.js
r702 r704 148 148 if(name.length == 1) 149 149 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/>";*/155 150 156 151 var civicNumber = hotspot_element.getElementsByTagName("civicNumber");
