aboutsummaryrefslogtreecommitdiffstats
path: root/web/ajax.cgi
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-01 17:29:16 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-01 17:29:16 +0100
commitb3746b6d37d7214c016cf9f39bcec8847b379721 (patch)
tree57daf0e0580fed8afc9befe6a82cea6f23a872eb /web/ajax.cgi
parenta2d9fe2659a1723824c58d7e3d663d1725bcab56 (diff)
parent2e4241ef11e600dcdf898ca1542f865c0972e4bc (diff)
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'web/ajax.cgi')
-rwxr-xr-xweb/ajax.cgi107
1 files changed, 0 insertions, 107 deletions
diff --git a/web/ajax.cgi b/web/ajax.cgi
deleted file mode 100755
index a25269070..000000000
--- a/web/ajax.cgi
+++ /dev/null
@@ -1,107 +0,0 @@
-# #!/usr/bin/perl -w -I../perllib
-#
-# # ajax.cgi:
-# # Updating the pins as you drag the map
-# #
-# # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
-# # Email: matthew@mysociety.org. WWW: http://www.mysociety.org
-# #
-# # $Id: ajax.cgi,v 1.19 2009-12-15 17:53:52 louise Exp $
-#
-# use strict;
-# use Standard;
-# use mySociety::Web qw(ent NewURL);
-#
-# sub main {
-# my $q = shift;
-#
-# my @vars = qw(x y sx sy all_pins);
-# my %input = map { $_ => $q->param($_) || '' } @vars;
-# my %input_h = map { $_ => $q->param($_) ? ent($q->param($_)) : '' } @vars;
-#
-# # Our current X/Y middle of visible map
-# my $x = $input{x};
-# my $y = $input{y};
-# $x ||= 0; $x += 0;
-# $y ||= 0; $y += 0;
-#
-# # Where we started as that's the (0,0) we have to work to
-# my $sx = $input{sx};
-# my $sy = $input{sy};
-# $sx ||= 0; $sx += 0;
-# $sy ||= 0; $sy += 0;
-#
-# my $interval;
-# unless ($input{all_pins}) {
-# $interval = '6 months';
-# }
-# my ($pins, $on_map, $around_map, $dist) = FixMyStreet::Map::map_pins($q, $x, $y, $sx, $sy, $interval);
-# my $cobrand = Page::get_cobrand($q);
-# my $list = '';
-# my $link = '';
-# foreach (@$on_map) {
-# $link = Cobrand::url($cobrand, NewURL($q, -retain => 1,
-# -url => '/report/' . $_->{id},
-# pc => undef,
-# x => undef,
-# y => undef,
-# sx => undef,
-# sy => undef,
-# all_pins => undef,
-# no_pins => undef), $q);
-# $list .= '<li><a href="' . $link . '">';
-# $list .= ent($_->{title}) . '</a> <small>(';
-# $list .= Page::prettify_epoch($q, $_->{time}, 1) . ')</small>';
-# $list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed';
-# $list .= '</li>';
-# }
-# my $om_list = $list;
-#
-# $list = '';
-# foreach (@$around_map) {
-# my $dist = int($_->{distance}*10+.5)/10;
-# $link = Cobrand::url($cobrand, NewURL($q, -retain => 1,
-# -url => '/report/' . $_->{id},
-# pc => undef,
-# x => undef,
-# y => undef,
-# sx => undef,
-# sy => undef,
-# all_pins => undef,
-# no_pins => undef), $q);
-# $list .= '<li><a href="' . $link . '">';
-# $list .= ent($_->{title}) . '</a> <small>(';
-# $list .= Page::prettify_epoch($q, $_->{time}, 1) . ', ';
-# $list .= $dist . 'km)</small>';
-# $list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed';
-# $list .= '</li>';
-# }
-# my $am_list = $list;
-#
-# #$list = '';
-# #foreach (@$fixed) {
-# # $list .= '<li><a href="/report/' . $_->{id} . '">';
-# # $list .= $_->{title} . ' <small>(' . int($_->{distance}*10+.5)/10 . 'km)</small>';
-# # $list .= '</a></li>';
-# #}
-# #my $f_list = $list;
-#
-# # For now, assume this is not cacheable - may need to be more fine-grained later
-# print $q->header(-charset => 'utf-8', -content_type => 'text/javascript', -Cache_Control => 'max-age=0');
-#
-#
-# $pins =~ s/'/\\'/g;
-# $om_list =~ s/'/\\'/g;
-# $am_list =~ s/'/\\'/g;
-# #$f_list =~ s/'/\\'/g;
-# print <<EOF;
-# ({
-# 'pins': '$pins',
-# 'current': '$om_list',
-# 'current_near': '$am_list'
-# })
-# EOF
-# }
-#
-# Page::do_fastcgi(\&main);
-#