Changeset 4718 for lang/perl/Moxy
- Timestamp:
- 01/16/08 23:32:37 (5 years ago)
- Location:
- lang/perl/Moxy/trunk
- Files:
-
- 2 modified
-
config.yaml (modified) (2 diffs)
-
lib/Moxy/Plugin/GPS.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Moxy/trunk/config.yaml
r3982 r4718 10 10 server: 11 11 module: HTTPProxy 12 port: 999912 port: 10000 13 13 host: "localhost" 14 14 max_clients: 80 … … 39 39 - module: FlashUseImgTag 40 40 - module: DisableTableTag 41 - module: UserID 41 42 - module: ShowHTTPHeaders 42 43 - module: QRCode 43 - module: CookieCutter44 44 45 45 -
lang/perl/Moxy/trunk/lib/Moxy/Plugin/GPS.pm
r4702 r4718 87 87 } 88 88 89 my $output = $class->render_template( 90 $context, 91 'iarea.tt' => { 92 errstr => $errstr, 93 queries => \%queries, 94 } 95 ); 89 my $redirect_to = $queries{nl} . "?"; 90 my $coordinates = "LAT=%2B35.39.55.197&LON=%2B139.43.54.653&GEO=wgs84&XACC=1"; 91 my $area = "AREACODE=06000"; 92 if (!$queries{posinfo}) { 93 $redirect_to .= $area; 94 } elsif ($queries{posinfo} == 1) { 95 $redirect_to .= "$area&$coordinates"; 96 } elsif ($queries{posinfo} == 2) { 97 $redirect_to .= $coordinates; 98 } 96 99 97 my $response = HTTP::Response->new( 200, 'Moxy(GPS iarea)' );98 $response-> content($output);100 my $response = HTTP::Response->new( 302, 'Redirect by Moxy(GPS willcom)' ); 101 $response->header(Location => $redirect_to); 99 102 return $args->{filter}->proxy->response($response); 100 103 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)