Changeset 1311

Show
Ignore:
Timestamp:
12/04/07 19:15:05 (1 year ago)
Author:
benoitg
Message:
  • Small documentation update on setting up GIS data in Network config.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog-auth/wifidog/classes/Network.php

    r1308 r1311  
    963963    public function setGisLocation($pt) 
    964964    { 
    965  
     965            $retval=false; 
    966966        $db = AbstractDb::getObject(); 
    967967 
     
    973973            if (!empty ($lat) && !empty ($long) && !empty ($alt)) { 
    974974                $db->execSqlUpdate("UPDATE networks SET gmaps_initial_latitude = $lat, gmaps_initial_longitude = $long, gmaps_initial_zoom_level = $alt WHERE network_id = '{$this->getId()}'"); 
     975            $retval=true; 
    975976            } 
    976977            else { 
    977978                $db->execSqlUpdate("UPDATE networks SET gmaps_initial_latitude = NULL, gmaps_initial_longitude = NULL, gmaps_initial_zoom_level = NULL WHERE network_id = '{$this->getId()}'"); 
    978979            } 
    979  
    980980            $this->refresh(); 
    981981        } 
     982        return $retval; 
    982983    } 
    983984 
     
    16441645            $gis_alt_value = htmlspecialchars($gis_point->getAltitude(), ENT_QUOTES); 
    16451646 
     1647            $html_network_gis_data[] = '<p>'._("Note that to be valid, all 3 values must be present.")."</p>\n"; 
    16461648            $title = _("Latitude"); 
    1647             $help = _("Center latitude for your the area of your wireless network"); 
     1649            $help = _("Center latitude for the area covered by your wireless network"); 
    16481650            $data = InterfaceElements::generateInputText($gis_lat_name, $gis_lat_value, "network_gis_latitude_input"); 
    16491651            $html_network_gis_data[] = InterfaceElements::generateAdminSectionContainer("network_gis_latitude", $title, $data, $help); 
    16501652 
    16511653            $title = _("Longitude"); 
    1652             $help = _("Center longitude for your the area of your wireless network"); 
     1654            $help = _("Center longitude for the area covered by your wireless network"); 
    16531655            $data = InterfaceElements::generateInputText($gis_long_name, $gis_long_value, "network_gis_longitude_input"); 
    16541656            $html_network_gis_data[] = InterfaceElements::generateAdminSectionContainer("network_gis_longitude", $title, $data, $help); 
    16551657 
    16561658            $title = _("Zoomlevel"); 
    1657             $help = _("Zoomlevel of the Google Map for your the area of your wireless network"); 
     1659            $help = _("Zoomlevel of the Google Map.  12 is a typical value."); 
    16581660            $data = InterfaceElements::generateInputText($gis_alt_name, $gis_alt_value, "network_gis_altitude_input"); 
    16591661            $html_network_gis_data[] = InterfaceElements::generateAdminSectionContainer("network_gis_altitude", $title, $data, $help);