- Timestamp:
- 03/16/2006 05:30:30 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 8 edited
-
config-sample/config.php (modified) (2 diffs)
-
globals/language/english.php (modified) (1 diff)
-
globals/language/greek.php (modified) (1 diff)
-
includes/pages/gearth/gearth_download.php (modified) (3 diffs)
-
includes/pages/gmap/gmap_js.php (modified) (1 diff)
-
includes/pages/users/users.php (modified) (1 diff)
-
templates/basic/includes/main_menu.tpl (modified) (1 diff)
-
templates/basic/includes/pages/gmap/gmap_js.tpl (modified) (3 diffs)
-
tools/gmaps (added)
-
tools/gmaps/proxy.php (added)
-
tools/gmaps/server.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/config-sample/config.php
r145 r159 60 60 'smtp' => '', // if not set default used from php.ini file 61 61 'smtp_port' => '25', 62 'from' => 'hostmaster@ wind.cube.gr',62 'from' => 'hostmaster@server.example.org', 63 63 'from_name' => 'WiND Hostmaster' 64 64 ), … … 70 70 'gmap' => array( 71 71 'server' => 'maps.google.com', 72 'maps_available' => array( 73 'satellite' => true, 74 'map' => false, 75 'hybrid' => false, 76 //Sample scripts for custom image map server can be found in the tools subdirectory 77 /*'custom_maps' => array( 78 0 => array( 79 'url' => 'http://server.example.org/maps/index.php?', 80 'name' => 'Custom1', 81 'coordinates_type' => 'map' 82 ), 83 1 => array( 84 'url' => 'http://server.example.org/maps/index.php?', 85 'name' => 'Custom2', 86 'coordinates_type' => 'satellite' 87 ), 88 ),*/ 89 'default' => 'satellite' 90 ), 72 91 'keys' => array( // Domains must be as in $_SERVER['SERVER_NAME'] variable 73 92 'server.example.org/path' => 'example_key' -
trunk/globals/language/english.php
r156 r159 29 29 30 30 'site_title' => "WiND - Wireless Nodes Database", 31 31 'title_small' => "WiND", 32 32 33 'forward_text' => "Click here to go directly to the next page...", 33 34 -
trunk/globals/language/greek.php
r156 r159 30 30 31 31 'site_title' => "WiND - Wireless Nodes Database", 32 'title_small' => "WiND", 32 33 33 34 'forward_text' => "ÎΜ ΎεΜ εÏÎ¹ÎžÏ -
trunk/includes/pages/gearth/gearth_download.php
r157 r159 219 219 $xml .= "<kml xmlns='http://earth.google.com/kml/2.0'>\n"; 220 220 $xml .= "<Folder>\n"; 221 $xml .= "<name> AWMN</name>\n";221 $xml .= "<name>".$lang['title_small']."</name>\n"; 222 222 $xml .= "<open>1</open>\n"; 223 223 $xml .= "<description>".$lang['all_nodes']."</description>\n"; … … 228 228 $xml .= "<range>1600</range>\n"; 229 229 } else { 230 $xml .= "<longitude>23.763247</longitude>\n"; 231 $xml .= "<latitude>37.980869</latitude>\n"; 230 $long = str_replace(",",".",($vars['gmap']['bounds']['max_longitude'] + $vars['gmap']['bounds']['min_longitude'])/2); 231 $lat = str_replace(",",".",($vars['gmap']['bounds']['max_latitude'] + $vars['gmap']['bounds']['min_latitude'])/2); 232 $xml .= "<longitude>".$long."</longitude>\n"; 233 $xml .= "<latitude>".$lat."</latitude>\n"; 232 234 $xml .= "<range>40000</range>\n"; 233 235 } … … 351 353 352 354 header("Expires: 0"); 353 header("Content-Disposition: attachment; filename= awmn.kml");355 header("Content-Disposition: attachment; filename=".$lang['title_small'].".kml"); 354 356 header("Content-type: application/vnd.google-earth.kml; charset=".$lang['charset']); 355 357 echo $xml; -
trunk/includes/pages/gmap/gmap_js.php
r137 r159 72 72 } 73 73 $this->tpl['link_xml_page'] = makelink(array("page" => "gmap", "subpage" => "xml", "node" => get('node')), FALSE, TRUE, FALSE); 74 $this->tpl['maps_available'] = $vars['gmap']['maps_available']; 74 75 75 76 echo template($this->tpl, __FILE__); -
trunk/includes/pages/users/users.php
r151 r159 146 146 $ret = $ret && $form_user->db_set_multi(array('owner' => 'N'), "users_nodes", "user_id", $ins_id); 147 147 $ret = $ret && $db->del('users_nodes', "user_id = '".$ins_id."' AND owner = 'Y'"); 148 foreach( $_POST['node_id_owner'] as $value) {148 foreach((array)$_POST['node_id_owner'] as $value) { 149 149 $ret = $ret && $db->del('users_nodes', "node_id = '".$value."' AND owner = 'Y'"); 150 150 $ret = $ret && $db->add('users_nodes', array("user_id" => $ins_id, "node_id" => $value, 'owner' => 'Y')); -
trunk/templates/basic/includes/main_menu.tpl
r157 r159 84 84 <td> 85 85 <div> 86 <input type="text" id="q" name="q" autocomplete="off" onkeydown=" if(hov!=-1) this.value = origval;" onfocus="hover('',this.value);" onkeyup="hover(event.keyCode,this.value);" onblur="setTimeout('hideSearch()',500); hov=0;" />86 <input type="text" id="q" name="q" autocomplete="off" onkeydown="" onfocus="hover('',this.value);" onkeyup="hover(event.keyCode,this.value);" onblur="setTimeout('hideSearch()',500); hov=0;" /> 87 87 </div> 88 88 <div align="left" id="searchResult" name="searchResult" style="font-family:Arial; font-size:12px; background-color: white; border:#000000 dashed 1px; padding:0px; display: none; position: absolute; width: 150px;"></div> -
trunk/templates/basic/includes/pages/gmap/gmap_js.tpl
r131 r159 128 128 129 129 {literal} 130 131 function copy_obj(o) { 132 var c = new Object(); for (var e in o) { c[e] = o[e]; } return c; 133 } 134 130 135 function gmap_onload() { 131 136 ch_p2p = document.getElementsByName("p2p")[0]; … … 134 139 ch_unlinked = document.getElementsByName("unlinked")[0]; 135 140 if (GBrowserIsCompatible()) { 136 map = new GMap(document.getElementById("map")); 141 {/literal} 142 {foreach from=$maps_available item=map_enabled key=map_name} 143 {if $map_enabled===true} 144 {if $map_types != null} 145 {assign var=map_types value="`$map_types`,"} 146 {/if} 147 {assign var=map_types value="`$map_types` G_`$map_name`_TYPE"} 148 {/if} 149 {/foreach} 150 {foreach from=$maps_available.custom_maps item=custom_type} 151 {if $custom_type.coordinates_type == "map"} 152 G_CUSTOM_{$custom_type.name|upper}_TYPE = copy_obj(G_MAP_TYPE); 153 {elseif $custom_type.coordinates_type == "satellite"} 154 G_CUSTOM_{$custom_type.name|upper}_TYPE = copy_obj(G_SATELLITE_TYPE); 155 {/if} 156 G_CUSTOM_{$custom_type.name|upper}_TYPE.baseUrls = new Array(); 157 G_CUSTOM_{$custom_type.name|upper}_TYPE.baseUrls[0] = "{$custom_type.url}"; 158 G_CUSTOM_{$custom_type.name|upper}_TYPE.lowResBaseUrls = new Array(); 159 G_CUSTOM_{$custom_type.name|upper}_TYPE.lowResBaseUrls[0] = "{$custom_type.url}"; 160 {literal} 161 G_CUSTOM_{/literal}{$custom_type.name|upper}{literal}_TYPE.getLinkText = function() { return '{/literal}{$custom_type.name}{literal}'; } 162 {/literal} 163 {if $map_types != null} 164 {assign var=map_types value="`$map_types`,"} 165 {/if} 166 {assign var=map_types value="`$map_types` G_CUSTOM_`$custom_type.name`_TYPE"} 167 {/foreach} 168 {literal} 169 var map_types = [{/literal}{$map_types|upper}{literal}]; 170 map = new GMap(document.getElementById("map"), map_types); 171 172 if(map_types.length > 1) 173 map.addControl(new GMapTypeControl()); 174 175 map.setMapType(G_CUSTOM_{/literal}{$maps_available.default|upper}{literal}_TYPE); 176 137 177 var center = new GPoint({/literal}{$center_longitude}{literal}, 138 178 {/literal}{$center_latitude}{literal}); … … 148 188 map.centerAndZoom(center, zoom); 149 189 map.addControl(new GLargeMapControl()); 150 map.setMapType(G_SATELLITE_TYPE);151 190 GEvent.addListener(map, "moveend", gmap_reload); 152 191 GEvent.addListener(map, "zoom",
Note: See TracChangeset
for help on using the changeset viewer.
