Changeset 70


Ignore:
Timestamp:
Oct 17, 2006, 5:20:52 PM (13 years ago)
Author:
Dominic Hargreaves
Message:

remove use of Date::Format (fixes #15)

Location:
trunk/npemap.org.uk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/cgi/submit.fcgi

    r47 r70  
    77use CGI::Fast qw/:standard -debug/;
    88use Geo::Postcode;
    9 use Date::Format;
    109
    1110use vars qw($dbname $dbhost $dbuser $dbpass);
     
    120119    }
    121120
    122     $sth = $dbh->prepare('INSERT INTO postcodes (outward, inward, raw_postcode, easting, northing, ip, created_at, source) VALUES (?, ?, ?, ?, ?, ?, ?, 0)');
    123     if ($sth->execute($outward, $inward, $raw_postcode, $easting, $northing, $ENV{'REMOTE_ADDR'}, time2str('%Y-%m-%d %H:%M:%S', time))) {
     121    $sth = $dbh->prepare('INSERT INTO postcodes (outward, inward, raw_postcode, easting, northing, ip, source) VALUES (?, ?, ?, ?, ?, ?, 0)');
     122    if ($sth->execute($outward, $inward, $raw_postcode, $easting, $northing, $ENV{'REMOTE_ADDR'})) {
    124123        print "Content-type: text/html\n\n";
    125124        print "<html><head><title>Thank you</title></head>\n";
  • trunk/npemap.org.uk/documents/deployment.txt

    r67 r70  
    33Assuming apache2 installed:
    44
    5 # apt-get install libgeo-postcode-perl libdbd-pg-perl libcgi-fast-perl libapache2-mod-fastcgi libtimedate-perl
     5# apt-get install libgeo-postcode-perl libdbd-pg-perl libcgi-fast-perl libapache2-mod-fastcgi
    66Copy submit.fcgi to a location that the web server will use as CGI (eg /usr/lib/cgi-bin)
    77# a2enmod fastcgi
Note: See TracChangeset for help on using the changeset viewer.