aboutsummaryrefslogtreecommitdiffstats
path: root/web/faq.cgi
blob: 2046f69557c5b15932f90cdd397bd07f2a3628c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/perl -w -I../perllib

# faq.cgi:
# FAQ page for FixMyStreet
#
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
# $Id: faq.cgi,v 1.42 2009-07-10 16:10:22 matthew Exp $

use strict;
use Standard -db;
use mySociety::Locale;

my $lastmodified = (stat $0)[9];
sub main {
    my $q = shift;
    print Page::header($q, title=>_('Frequently Asked Questions'));
    if ($q->{site} eq 'emptyhomes') {
        my $lang = $mySociety::Locale::lang;
        if ($lang eq 'cy') {
            print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq-eha.cy.html");
        } else {
            print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq-eha.html");
        }
    } else {
        print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq.html");
    }
    print Page::footer($q);
}
Page::do_fastcgi(\&main, $lastmodified);