Changeset 729
- Timestamp:
- Feb 11, 2010, 11:08:50 PM (10 years ago)
- Location:
- freethepostcode.org/html/ruby
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
freethepostcode.org/html/ruby/dao.rb
r726 r729 1 1 require 'mysql' 2 2 require 'secrets' 3 3 4 4 module OSM … … 8 8 MYSQL_SERVER = '127.0.0.1' 9 9 MYSQL_USER = 'postcode' 10 MYSQL_PASS = 'kc8dFusmw'10 MYSQL_PASS = get_password 11 11 MYSQL_DATABASE = 'postcode' 12 12 -
freethepostcode.org/html/ruby/submit.rhtml
r728 r729 18 18 %> 19 19 20 Got this data: <%=email%> says that <%=postcode1%> <%=postcode2%> is at <%=lat%>, <%=lon%><br>20 Got this data: '<%=email%>' says that '<%=postcode1%>' '<%=postcode2%>' is at '<%=lat%>', '<%=lon%>'<br> 21 21 22 22 %errs = sanity_check(postcode1 << " " << postcode2, lat.to_f, lon.to_f) 23 23 %unless errs.empty? 24 24 Sorry, the postcode you entered does not validate, or we think the 25 latitude/longitude are not correct for the postcode zone. 25 latitude/longitude are not correct for the postcode zone:<br> 26 <%=errs%> 26 27 %exit 27 28 %end
Note: See TracChangeset
for help on using the changeset viewer.