FilesSubmittedBranchesLabelsClientsUsersJobsHelp
Tree viewShow/hide recent activityInformation
Recent activity in //depot/...
2412005/11/08ksimpsonprocmail: pharma spam that sneaks past greylistd. v1agra, c1alis, 'replica watches'.
2342005/11/02zz9fast: print solve time. 0.004s. ken's main branch: 0.31s. just saying.
2272005/10/30nullbytestrip <script> out of page bodies. someone (zz9) had an XSS in FrontPage within
2192005/10/20ksimpsoniTunes 4.9 does podcasts natively now, so podgrab is officially obsolete.
2082005/09/17nullbytegreylistd 0.4: point people at a page explaining the 450 instead of just being rude
Change 131

Change 131 by packetrat@packetrat-thinkpad on 2005/03/19 20:05:51

green pin = open, red pin = WEP. there are a LOT of green pins in kitsilano. (no I did not connect to any of them, officer)
Affected files ...
//depot/projects/wardrive-map/kismet2xml.pl#2 editxtext
//depot/projects/wardrive-map/map.html#3 edittext
Differences ...

==== //depot/projects/wardrive-map/kismet2xml.pl#2 (xtext) ====

@@ -23,6 +23,7 @@
2323 lat => $lat,
2424 lon => $lon,
2525 chan => $n->{channel},
26 wep => ($n->{wep} && $n->{wep} eq 'true') ? 1 : 0,
2627 };
2728 }
2829}
@@ -34,7 +35,7 @@
3435 $ssid =~ s/&/&amp;/g;
3536 $ssid =~ s/</&lt;/g;
3637 $ssid =~ s/"/&quot;/g;
37 printf qq{ <net bssid="%s" ssid="%s" lat="%.6f" lng="%.6f" chan="%s"/>\n},
38 $b, $ssid, $n->{lat}, $n->{lon}, $n->{chan};
38 printf qq{ <net bssid="%s" ssid="%s" lat="%.6f" lng="%.6f" chan="%s" wep="%d"/>\n},
39 $b, $ssid, $n->{lat}, $n->{lon}, $n->{chan}, $n->{wep};
3940}
4041print "</nets>\n";

==== //depot/projects/wardrive-map/map.html#3 (text) ====

@@ -25,8 +25,18 @@
2525 return new ActiveXObject("Microsoft.XMLHTTP");
2626 }
2727
28 function makeMarker(p, html) {
29 var m = new GMarker(p);
28 function pin(color) {
29 var icon = new GIcon();
30 icon.image = "icons/" + color + ".png";
31 icon.iconSize = new GSize(12, 20);
32 icon.iconAnchor = new GPoint(6, 20);
33 icon.infoWindowAnchor = new GPoint(5, 1);
34 return icon;
35 }
36 var openPin = pin("green"), wepPin = pin("red");
37
38 function makeMarker(p, icon, html) {
39 var m = new GMarker(p, icon);
3040 GEvent.addListener(m, "click", function() { m.openInfoWindowHtml(html); });
3141 return m;
3242 }
@@ -41,7 +51,8 @@
4151 parseFloat(nets[i].getAttribute("lat")));
4252 var html = "<b>" + nets[i].getAttribute("ssid") + "</b><br/>ch " +
4353 nets[i].getAttribute("chan");
44 map.addOverlay(makeMarker(p, html));
54 var icon = nets[i].getAttribute("wep") == "1" ? wepPin : openPin;
55 map.addOverlay(makeMarker(p, icon, html));
4556 }
4657 document.getElementById("status").innerHTML = nets.length + " networks";
4758 };

P4Web/LINUX26X86/2005.1/82295 · Copyright © 1995-2005 Perforce Software · ttul.org