aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-12 17:09:35 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-12 17:09:35 +0100
commitf2bcdeb7d90a81b3498a5eb4c322d1634a43fc3e (patch)
tree4413d4ed231ea641039ab1c11f7c27a42de96880
parent5865134cb78e1c1b8d77e94e4ff35020345066f5 (diff)
comment out implemented code
-rwxr-xr-xweb/alert.cgi54
1 files changed, 27 insertions, 27 deletions
diff --git a/web/alert.cgi b/web/alert.cgi
index c9569a03f..28a90be35 100755
--- a/web/alert.cgi
+++ b/web/alert.cgi
@@ -33,37 +33,37 @@ sub main {
my $title = _('Confirmation');
if ($q->param('signed_email')) {
$out = alert_signed_input($q);
- } elsif (my $token = $q->param('token')) {
- my $data = mySociety::AuthToken::retrieve('alert', $token);
- if ($data->{id}) {
- $out = alert_token($q, $data);
- } else {
- my $contact_url = Cobrand::url(Page::get_cobrand($q), '/contact', $q);
- $out = $q->p(sprintf(_(<<EOF), $contact_url));
-Thank you for trying to confirm your alert. We seem to have an error ourselves
-though, so <a href="%s">please let us know what went on</a> and we'll look into it.
-EOF
- my %vars = (error => $out);
- my $cobrand_page = Page::template_include('error', $q, Page::template_root($q), %vars);
- $out = $cobrand_page if $cobrand_page;
+# } elsif (my $token = $q->param('token')) {
+# my $data = mySociety::AuthToken::retrieve('alert', $token);
+# if ($data->{id}) {
+# $out = alert_token($q, $data);
+# } else {
+# my $contact_url = Cobrand::url(Page::get_cobrand($q), '/contact', $q);
+# $out = $q->p(sprintf(_(<<EOF), $contact_url));
+# Thank you for trying to confirm your alert. We seem to have an error ourselves
+# though, so <a href="%s">please let us know what went on</a> and we'll look into it.
+# EOF
+# my %vars = (error => $out);
+# my $cobrand_page = Page::template_include('error', $q, Page::template_root($q), %vars);
+# $out = $cobrand_page if $cobrand_page;
- }
- } elsif ($q->param('rss')) {
- $out = alert_rss($q);
- return unless $out;
- } elsif ($q->param('rznvy')) {
- $out = alert_do_subscribe($q, $q->param('rznvy'));
- } elsif ($q->param('id')) {
- $out = alert_updates_form($q);
+# }
+# } elsif ($q->param('rss')) {
+# $out = alert_rss($q);
+# return unless $out;
+# } elsif ($q->param('rznvy')) {
+# $out = alert_do_subscribe($q, $q->param('rznvy'));
+# } elsif ($q->param('id')) {
+# $out = alert_updates_form($q);
} elsif ($q->param('type') && $q->param('feed')) {
$title = _('Local RSS feeds and email alerts');
$out = alert_local_form($q);
- } elsif ($q->param('pc') || ($q->param('lat') || $q->param('lon'))) {
- $title = _('Local RSS feeds and email alerts');
- $out = alert_list($q);
- } else {
- $title = _('Local RSS feeds and email alerts');
- $out = alert_front_page($q);
+ # } elsif ($q->param('pc') || ($q->param('lat') || $q->param('lon'))) {
+ # $title = _('Local RSS feeds and email alerts');
+ # $out = alert_list($q);
+ # } else {
+ # $title = _('Local RSS feeds and email alerts');
+ # $out = alert_front_page($q);
}
print Page::header($q, title => $title, robots => 'noindex,nofollow');