From a41ffe5fc3839a76348b8d7cf6facf1893e5dab7 Mon Sep 17 00:00:00 2001 From: memespring Date: Sat, 7 Apr 2007 16:33:27 +0000 Subject: [PATCH] move CGI to cgi-bin so its teh same as the live server --- {CGI => cgi-bin}/Angus.cgi | 0 {CGI => cgi-bin}/Aylesbury Vale.cgi | 0 {CGI => cgi-bin}/Basildon.cgi | 0 {CGI => cgi-bin}/Bath.cgi | 0 {CGI => cgi-bin}/Bexley.cgi | 0 {CGI => cgi-bin}/Blaby.cgi | 2 +- {CGI => cgi-bin}/Bristol.cgi | 0 {CGI => cgi-bin}/Buckinghamshire.cgi | 0 {CGI => cgi-bin}/Chelmsford.cgi | 0 {CGI => cgi-bin}/Cherwell.cgi | 0 {CGI => cgi-bin}/City of London.cgi | 0 {CGI => cgi-bin}/Cornwall.cgi | 0 {CGI => cgi-bin}/Doncaster.cgi | 0 {CGI => cgi-bin}/Dundee.cgi | 0 {CGI => cgi-bin}/East Devon.cgi | 0 {CGI => cgi-bin}/Edinburgh.cgi | 0 {CGI => cgi-bin}/Epsom and Ewell.cgi | 0 {CGI => cgi-bin}/Fenland.cgi | 0 {CGI => cgi-bin}/Gedling.cgi | 0 {CGI => cgi-bin}/Hammersmith and Fulham.cgi | 0 {CGI => cgi-bin}/Harrogate.cgi | 0 {CGI => cgi-bin}/Hart.cgi | 0 {CGI => cgi-bin}/Huntingdonshire.cgi | 0 {CGI => cgi-bin}/Kerrier.cgi | 0 {CGI => cgi-bin}/Knowsley.cgi | 0 {CGI => cgi-bin}/Lancaster.cgi | 0 {CGI => cgi-bin}/Luton.cgi | 0 {CGI => cgi-bin}/Malvern Hills.cgi | 0 {CGI => cgi-bin}/Mid Devon.cgi | 0 {CGI => cgi-bin}/Milton Keynes.cgi | 0 {CGI => cgi-bin}/North Tyneside.cgi | 0 {CGI => cgi-bin}/Northumberland.cgi | 0 {CGI => cgi-bin}/Oadby and Wigston.cgi | 0 {CGI => cgi-bin}/Oswestry.cgi | 0 {CGI => cgi-bin}/Peterborough.cgi | 0 {CGI => cgi-bin}/PlanningUtils.py | 0 {CGI => cgi-bin}/Portsmouth.cgi | 0 {CGI => cgi-bin}/PublicAccess.py | 0 {CGI => cgi-bin}/README | 0 {CGI => cgi-bin}/Rushmoor.cgi | 0 {CGI => cgi-bin}/Scarborough.cgi | 0 {CGI => cgi-bin}/Sevenoaks.cgi | 0 {CGI => cgi-bin}/South Bucks.cgi | 0 {CGI => cgi-bin}/South Ribble.cgi | 0 {CGI => cgi-bin}/South Staffordshire.cgi | 0 {CGI => cgi-bin}/SouthOxfordshire.cgi | 0 {CGI => cgi-bin}/SouthOxfordshireParser.py | 0 {CGI => cgi-bin}/Southampton.cgi | 0 {CGI => cgi-bin}/Spelthorne.cgi | 0 {CGI => cgi-bin}/Stevenage.cgi | 0 {CGI => cgi-bin}/Stockton-On-Tees.cgi | 0 {CGI => cgi-bin}/Sunderland.cgi | 0 {CGI => cgi-bin}/Test Valley.cgi | 0 {CGI => cgi-bin}/Tonbridge.cgi | 0 {CGI => cgi-bin}/Torbay.cgi | 0 {CGI => cgi-bin}/Waveney.cgi | 0 {CGI => cgi-bin}/West Lancashire.cgi | 0 {CGI => cgi-bin}/West Norfolk.cgi | 0 {CGI => cgi-bin}/Woking.cgi | 0 {CGI => cgi-bin}/York.cgi | 0 data/%%45^45E^45E480CD%%index.tpl.php | 2 +- data/%%6D^6DB^6DB28CFA%%about.tpl.php | 2 +- data/%%AD^AD7^AD71B708%%rss.tpl.php | 26 ++++++++++----------- data/%%D2^D26^D26D8BFE%%xml.tpl.php | 2 +- data/%%F7^F7F^F7F34188%%header.tpl.php | 2 +- docs/templates/alert_email_text.tpl | 2 ++ docs/templates/getinvolved.tpl | 4 ++-- tools/application_mailer.php | 5 ++-- 68 files changed, 24 insertions(+), 23 deletions(-) rename {CGI => cgi-bin}/Angus.cgi (100%) rename {CGI => cgi-bin}/Aylesbury Vale.cgi (100%) rename {CGI => cgi-bin}/Basildon.cgi (100%) rename {CGI => cgi-bin}/Bath.cgi (100%) rename {CGI => cgi-bin}/Bexley.cgi (100%) rename {CGI => cgi-bin}/Blaby.cgi (96%) rename {CGI => cgi-bin}/Bristol.cgi (100%) rename {CGI => cgi-bin}/Buckinghamshire.cgi (100%) rename {CGI => cgi-bin}/Chelmsford.cgi (100%) rename {CGI => cgi-bin}/Cherwell.cgi (100%) rename {CGI => cgi-bin}/City of London.cgi (100%) rename {CGI => cgi-bin}/Cornwall.cgi (100%) rename {CGI => cgi-bin}/Doncaster.cgi (100%) rename {CGI => cgi-bin}/Dundee.cgi (100%) rename {CGI => cgi-bin}/East Devon.cgi (100%) rename {CGI => cgi-bin}/Edinburgh.cgi (100%) rename {CGI => cgi-bin}/Epsom and Ewell.cgi (100%) rename {CGI => cgi-bin}/Fenland.cgi (100%) rename {CGI => cgi-bin}/Gedling.cgi (100%) rename {CGI => cgi-bin}/Hammersmith and Fulham.cgi (100%) rename {CGI => cgi-bin}/Harrogate.cgi (100%) rename {CGI => cgi-bin}/Hart.cgi (100%) rename {CGI => cgi-bin}/Huntingdonshire.cgi (100%) rename {CGI => cgi-bin}/Kerrier.cgi (100%) rename {CGI => cgi-bin}/Knowsley.cgi (100%) rename {CGI => cgi-bin}/Lancaster.cgi (100%) rename {CGI => cgi-bin}/Luton.cgi (100%) rename {CGI => cgi-bin}/Malvern Hills.cgi (100%) rename {CGI => cgi-bin}/Mid Devon.cgi (100%) rename {CGI => cgi-bin}/Milton Keynes.cgi (100%) rename {CGI => cgi-bin}/North Tyneside.cgi (100%) rename {CGI => cgi-bin}/Northumberland.cgi (100%) rename {CGI => cgi-bin}/Oadby and Wigston.cgi (100%) rename {CGI => cgi-bin}/Oswestry.cgi (100%) rename {CGI => cgi-bin}/Peterborough.cgi (100%) rename {CGI => cgi-bin}/PlanningUtils.py (100%) rename {CGI => cgi-bin}/Portsmouth.cgi (100%) rename {CGI => cgi-bin}/PublicAccess.py (100%) rename {CGI => cgi-bin}/README (100%) rename {CGI => cgi-bin}/Rushmoor.cgi (100%) rename {CGI => cgi-bin}/Scarborough.cgi (100%) rename {CGI => cgi-bin}/Sevenoaks.cgi (100%) rename {CGI => cgi-bin}/South Bucks.cgi (100%) rename {CGI => cgi-bin}/South Ribble.cgi (100%) rename {CGI => cgi-bin}/South Staffordshire.cgi (100%) rename {CGI => cgi-bin}/SouthOxfordshire.cgi (100%) rename {CGI => cgi-bin}/SouthOxfordshireParser.py (100%) rename {CGI => cgi-bin}/Southampton.cgi (100%) rename {CGI => cgi-bin}/Spelthorne.cgi (100%) rename {CGI => cgi-bin}/Stevenage.cgi (100%) rename {CGI => cgi-bin}/Stockton-On-Tees.cgi (100%) rename {CGI => cgi-bin}/Sunderland.cgi (100%) rename {CGI => cgi-bin}/Test Valley.cgi (100%) rename {CGI => cgi-bin}/Tonbridge.cgi (100%) rename {CGI => cgi-bin}/Torbay.cgi (100%) rename {CGI => cgi-bin}/Waveney.cgi (100%) rename {CGI => cgi-bin}/West Lancashire.cgi (100%) rename {CGI => cgi-bin}/West Norfolk.cgi (100%) rename {CGI => cgi-bin}/Woking.cgi (100%) rename {CGI => cgi-bin}/York.cgi (100%) diff --git a/CGI/Angus.cgi b/cgi-bin/Angus.cgi similarity index 100% rename from CGI/Angus.cgi rename to cgi-bin/Angus.cgi diff --git a/CGI/Aylesbury Vale.cgi b/cgi-bin/Aylesbury Vale.cgi similarity index 100% rename from CGI/Aylesbury Vale.cgi rename to cgi-bin/Aylesbury Vale.cgi diff --git a/CGI/Basildon.cgi b/cgi-bin/Basildon.cgi similarity index 100% rename from CGI/Basildon.cgi rename to cgi-bin/Basildon.cgi diff --git a/CGI/Bath.cgi b/cgi-bin/Bath.cgi similarity index 100% rename from CGI/Bath.cgi rename to cgi-bin/Bath.cgi diff --git a/CGI/Bexley.cgi b/cgi-bin/Bexley.cgi similarity index 100% rename from CGI/Bexley.cgi rename to cgi-bin/Bexley.cgi diff --git a/CGI/Blaby.cgi b/cgi-bin/Blaby.cgi similarity index 96% rename from CGI/Blaby.cgi rename to cgi-bin/Blaby.cgi index ceb955e..e6d8e7f 100755 --- a/CGI/Blaby.cgi +++ b/cgi-bin/Blaby.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/opt/local/bin/python # This is the parser for Blaby District Council. # it is generated from the file CGITemplate diff --git a/CGI/Bristol.cgi b/cgi-bin/Bristol.cgi similarity index 100% rename from CGI/Bristol.cgi rename to cgi-bin/Bristol.cgi diff --git a/CGI/Buckinghamshire.cgi b/cgi-bin/Buckinghamshire.cgi similarity index 100% rename from CGI/Buckinghamshire.cgi rename to cgi-bin/Buckinghamshire.cgi diff --git a/CGI/Chelmsford.cgi b/cgi-bin/Chelmsford.cgi similarity index 100% rename from CGI/Chelmsford.cgi rename to cgi-bin/Chelmsford.cgi diff --git a/CGI/Cherwell.cgi b/cgi-bin/Cherwell.cgi similarity index 100% rename from CGI/Cherwell.cgi rename to cgi-bin/Cherwell.cgi diff --git a/CGI/City of London.cgi b/cgi-bin/City of London.cgi similarity index 100% rename from CGI/City of London.cgi rename to cgi-bin/City of London.cgi diff --git a/CGI/Cornwall.cgi b/cgi-bin/Cornwall.cgi similarity index 100% rename from CGI/Cornwall.cgi rename to cgi-bin/Cornwall.cgi diff --git a/CGI/Doncaster.cgi b/cgi-bin/Doncaster.cgi similarity index 100% rename from CGI/Doncaster.cgi rename to cgi-bin/Doncaster.cgi diff --git a/CGI/Dundee.cgi b/cgi-bin/Dundee.cgi similarity index 100% rename from CGI/Dundee.cgi rename to cgi-bin/Dundee.cgi diff --git a/CGI/East Devon.cgi b/cgi-bin/East Devon.cgi similarity index 100% rename from CGI/East Devon.cgi rename to cgi-bin/East Devon.cgi diff --git a/CGI/Edinburgh.cgi b/cgi-bin/Edinburgh.cgi similarity index 100% rename from CGI/Edinburgh.cgi rename to cgi-bin/Edinburgh.cgi diff --git a/CGI/Epsom and Ewell.cgi b/cgi-bin/Epsom and Ewell.cgi similarity index 100% rename from CGI/Epsom and Ewell.cgi rename to cgi-bin/Epsom and Ewell.cgi diff --git a/CGI/Fenland.cgi b/cgi-bin/Fenland.cgi similarity index 100% rename from CGI/Fenland.cgi rename to cgi-bin/Fenland.cgi diff --git a/CGI/Gedling.cgi b/cgi-bin/Gedling.cgi similarity index 100% rename from CGI/Gedling.cgi rename to cgi-bin/Gedling.cgi diff --git a/CGI/Hammersmith and Fulham.cgi b/cgi-bin/Hammersmith and Fulham.cgi similarity index 100% rename from CGI/Hammersmith and Fulham.cgi rename to cgi-bin/Hammersmith and Fulham.cgi diff --git a/CGI/Harrogate.cgi b/cgi-bin/Harrogate.cgi similarity index 100% rename from CGI/Harrogate.cgi rename to cgi-bin/Harrogate.cgi diff --git a/CGI/Hart.cgi b/cgi-bin/Hart.cgi similarity index 100% rename from CGI/Hart.cgi rename to cgi-bin/Hart.cgi diff --git a/CGI/Huntingdonshire.cgi b/cgi-bin/Huntingdonshire.cgi similarity index 100% rename from CGI/Huntingdonshire.cgi rename to cgi-bin/Huntingdonshire.cgi diff --git a/CGI/Kerrier.cgi b/cgi-bin/Kerrier.cgi similarity index 100% rename from CGI/Kerrier.cgi rename to cgi-bin/Kerrier.cgi diff --git a/CGI/Knowsley.cgi b/cgi-bin/Knowsley.cgi similarity index 100% rename from CGI/Knowsley.cgi rename to cgi-bin/Knowsley.cgi diff --git a/CGI/Lancaster.cgi b/cgi-bin/Lancaster.cgi similarity index 100% rename from CGI/Lancaster.cgi rename to cgi-bin/Lancaster.cgi diff --git a/CGI/Luton.cgi b/cgi-bin/Luton.cgi similarity index 100% rename from CGI/Luton.cgi rename to cgi-bin/Luton.cgi diff --git a/CGI/Malvern Hills.cgi b/cgi-bin/Malvern Hills.cgi similarity index 100% rename from CGI/Malvern Hills.cgi rename to cgi-bin/Malvern Hills.cgi diff --git a/CGI/Mid Devon.cgi b/cgi-bin/Mid Devon.cgi similarity index 100% rename from CGI/Mid Devon.cgi rename to cgi-bin/Mid Devon.cgi diff --git a/CGI/Milton Keynes.cgi b/cgi-bin/Milton Keynes.cgi similarity index 100% rename from CGI/Milton Keynes.cgi rename to cgi-bin/Milton Keynes.cgi diff --git a/CGI/North Tyneside.cgi b/cgi-bin/North Tyneside.cgi similarity index 100% rename from CGI/North Tyneside.cgi rename to cgi-bin/North Tyneside.cgi diff --git a/CGI/Northumberland.cgi b/cgi-bin/Northumberland.cgi similarity index 100% rename from CGI/Northumberland.cgi rename to cgi-bin/Northumberland.cgi diff --git a/CGI/Oadby and Wigston.cgi b/cgi-bin/Oadby and Wigston.cgi similarity index 100% rename from CGI/Oadby and Wigston.cgi rename to cgi-bin/Oadby and Wigston.cgi diff --git a/CGI/Oswestry.cgi b/cgi-bin/Oswestry.cgi similarity index 100% rename from CGI/Oswestry.cgi rename to cgi-bin/Oswestry.cgi diff --git a/CGI/Peterborough.cgi b/cgi-bin/Peterborough.cgi similarity index 100% rename from CGI/Peterborough.cgi rename to cgi-bin/Peterborough.cgi diff --git a/CGI/PlanningUtils.py b/cgi-bin/PlanningUtils.py similarity index 100% rename from CGI/PlanningUtils.py rename to cgi-bin/PlanningUtils.py diff --git a/CGI/Portsmouth.cgi b/cgi-bin/Portsmouth.cgi similarity index 100% rename from CGI/Portsmouth.cgi rename to cgi-bin/Portsmouth.cgi diff --git a/CGI/PublicAccess.py b/cgi-bin/PublicAccess.py similarity index 100% rename from CGI/PublicAccess.py rename to cgi-bin/PublicAccess.py diff --git a/CGI/README b/cgi-bin/README similarity index 100% rename from CGI/README rename to cgi-bin/README diff --git a/CGI/Rushmoor.cgi b/cgi-bin/Rushmoor.cgi similarity index 100% rename from CGI/Rushmoor.cgi rename to cgi-bin/Rushmoor.cgi diff --git a/CGI/Scarborough.cgi b/cgi-bin/Scarborough.cgi similarity index 100% rename from CGI/Scarborough.cgi rename to cgi-bin/Scarborough.cgi diff --git a/CGI/Sevenoaks.cgi b/cgi-bin/Sevenoaks.cgi similarity index 100% rename from CGI/Sevenoaks.cgi rename to cgi-bin/Sevenoaks.cgi diff --git a/CGI/South Bucks.cgi b/cgi-bin/South Bucks.cgi similarity index 100% rename from CGI/South Bucks.cgi rename to cgi-bin/South Bucks.cgi diff --git a/CGI/South Ribble.cgi b/cgi-bin/South Ribble.cgi similarity index 100% rename from CGI/South Ribble.cgi rename to cgi-bin/South Ribble.cgi diff --git a/CGI/South Staffordshire.cgi b/cgi-bin/South Staffordshire.cgi similarity index 100% rename from CGI/South Staffordshire.cgi rename to cgi-bin/South Staffordshire.cgi diff --git a/CGI/SouthOxfordshire.cgi b/cgi-bin/SouthOxfordshire.cgi similarity index 100% rename from CGI/SouthOxfordshire.cgi rename to cgi-bin/SouthOxfordshire.cgi diff --git a/CGI/SouthOxfordshireParser.py b/cgi-bin/SouthOxfordshireParser.py similarity index 100% rename from CGI/SouthOxfordshireParser.py rename to cgi-bin/SouthOxfordshireParser.py diff --git a/CGI/Southampton.cgi b/cgi-bin/Southampton.cgi similarity index 100% rename from CGI/Southampton.cgi rename to cgi-bin/Southampton.cgi diff --git a/CGI/Spelthorne.cgi b/cgi-bin/Spelthorne.cgi similarity index 100% rename from CGI/Spelthorne.cgi rename to cgi-bin/Spelthorne.cgi diff --git a/CGI/Stevenage.cgi b/cgi-bin/Stevenage.cgi similarity index 100% rename from CGI/Stevenage.cgi rename to cgi-bin/Stevenage.cgi diff --git a/CGI/Stockton-On-Tees.cgi b/cgi-bin/Stockton-On-Tees.cgi similarity index 100% rename from CGI/Stockton-On-Tees.cgi rename to cgi-bin/Stockton-On-Tees.cgi diff --git a/CGI/Sunderland.cgi b/cgi-bin/Sunderland.cgi similarity index 100% rename from CGI/Sunderland.cgi rename to cgi-bin/Sunderland.cgi diff --git a/CGI/Test Valley.cgi b/cgi-bin/Test Valley.cgi similarity index 100% rename from CGI/Test Valley.cgi rename to cgi-bin/Test Valley.cgi diff --git a/CGI/Tonbridge.cgi b/cgi-bin/Tonbridge.cgi similarity index 100% rename from CGI/Tonbridge.cgi rename to cgi-bin/Tonbridge.cgi diff --git a/CGI/Torbay.cgi b/cgi-bin/Torbay.cgi similarity index 100% rename from CGI/Torbay.cgi rename to cgi-bin/Torbay.cgi diff --git a/CGI/Waveney.cgi b/cgi-bin/Waveney.cgi similarity index 100% rename from CGI/Waveney.cgi rename to cgi-bin/Waveney.cgi diff --git a/CGI/West Lancashire.cgi b/cgi-bin/West Lancashire.cgi similarity index 100% rename from CGI/West Lancashire.cgi rename to cgi-bin/West Lancashire.cgi diff --git a/CGI/West Norfolk.cgi b/cgi-bin/West Norfolk.cgi similarity index 100% rename from CGI/West Norfolk.cgi rename to cgi-bin/West Norfolk.cgi diff --git a/CGI/Woking.cgi b/cgi-bin/Woking.cgi similarity index 100% rename from CGI/Woking.cgi rename to cgi-bin/Woking.cgi diff --git a/CGI/York.cgi b/cgi-bin/York.cgi similarity index 100% rename from CGI/York.cgi rename to cgi-bin/York.cgi diff --git a/data/%%45^45E^45E480CD%%index.tpl.php b/data/%%45^45E^45E480CD%%index.tpl.php index f16568c..d5481d1 100644 --- a/data/%%45^45E^45E480CD%%index.tpl.php +++ b/data/%%45^45E^45E480CD%%index.tpl.php @@ -1,4 +1,4 @@ - _tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array())); diff --git a/data/%%6D^6DB^6DB28CFA%%about.tpl.php b/data/%%6D^6DB^6DB28CFA%%about.tpl.php index 4737436..df493cd 100644 --- a/data/%%6D^6DB^6DB28CFA%%about.tpl.php +++ b/data/%%6D^6DB^6DB28CFA%%about.tpl.php @@ -1,4 +1,4 @@ - _tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array())); diff --git a/data/%%AD^AD7^AD71B708%%rss.tpl.php b/data/%%AD^AD7^AD71B708%%rss.tpl.php index 01d84f9..c128524 100644 --- a/data/%%AD^AD7^AD71B708%%rss.tpl.php +++ b/data/%%AD^AD7^AD71B708%%rss.tpl.php @@ -1,12 +1,12 @@ - version="1.0" encoding="UTF-8"'; ?> - + - Search Results - + PlanningAlerts.com + http://www.planningalerts.com/ _tpl_vars['applications']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['applications'] = array('total' => count($_from), 'iteration' => 0); if ($this->_foreach['applications']['total'] > 0): @@ -14,21 +14,21 @@ if ($this->_foreach['applications']['total'] > 0): $this->_foreach['applications']['iteration']++; ?> - _tpl_vars['application']->council_reference; ?> + <?php echo $this->_tpl_vars['application']->address; ?> + + _tpl_vars['application']->council_reference; ?> _tpl_vars['application']->address; ?> _tpl_vars['application']->lat; ?> _tpl_vars['application']->lon; ?> - _tpl_vars['application']->description; ?> - - _tpl_vars['application']->info_url; ?> - - _tpl_vars['application']->comment_url; ?> - - _tpl_vars['application']->date_received; ?> - + _tpl_vars['application']->description; ?> +]]> + _tpl_vars['application']->info_url; ?> +]]> + _tpl_vars['application']->comment_url; ?> +]]> diff --git a/data/%%D2^D26^D26D8BFE%%xml.tpl.php b/data/%%D2^D26^D26D8BFE%%xml.tpl.php index fa44c27..2cb3fb9 100644 --- a/data/%%D2^D26^D26D8BFE%%xml.tpl.php +++ b/data/%%D2^D26^D26D8BFE%%xml.tpl.php @@ -1,4 +1,4 @@ - array(array('modifier', 'escape', 'xml.tpl', 6, false),)), $this); ?> diff --git a/data/%%F7^F7F^F7F34188%%header.tpl.php b/data/%%F7^F7F^F7F34188%%header.tpl.php index 9486d17..2e4f87e 100644 --- a/data/%%F7^F7F^F7F34188%%header.tpl.php +++ b/data/%%F7^F7F^F7F34188%%header.tpl.php @@ -1,4 +1,4 @@ - diff --git a/docs/templates/alert_email_text.tpl b/docs/templates/alert_email_text.tpl index 3e5c9ab..017183e 100644 --- a/docs/templates/alert_email_text.tpl +++ b/docs/templates/alert_email_text.tpl @@ -18,7 +18,9 @@ -------------------------------------- + PlanningAlerts.com is a free service run by volunteers + To stop receiving these emails click here: {$base_url}/unsubscribe.php?cid={$confirm_id} {/textformat} \ No newline at end of file diff --git a/docs/templates/getinvolved.tpl b/docs/templates/getinvolved.tpl index 3b30ba0..4d31a9c 100644 --- a/docs/templates/getinvolved.tpl +++ b/docs/templates/getinvolved.tpl @@ -4,7 +4,7 @@

I am a programmer and want to add my local authority

- You can help by writing a screen scraper for your local authority that was can import into plannignalerts.com. There are only 2 criteria for the screen scraper: + You can help by writing a screen scraper for your local authority that was can import into planningalerts.com. There are only 2 criteria for the screen scraper:

  1. That it can output data in the following format: http://www.planningalerts.com/lambeth.xml
  2. @@ -23,4 +23,4 @@

    -{include file="footer.tpl"} \ No newline at end of file +{include file="footer.tpl"} diff --git a/tools/application_mailer.php b/tools/application_mailer.php index f18b0d1..4af24e7 100644 --- a/tools/application_mailer.php +++ b/tools/application_mailer.php @@ -45,8 +45,7 @@ inner join authority on application.authority_id = authority.authority_id where date_scraped > " . $db->quote(mysql_date(time() - (24 * 60 * 60))) . " and (application.x > " . $user_results[$i][3] . " and application.x < " . $user_results[$i][5] . ") - and (application.y > " . $user_results[$i][4] . " and application.y < " . $user_results[$i][6] . - and (application.y <> 0 and application.y <> 0 ")"; + and (application.y > " . $user_results[$i][4] . " and application.y < " . $user_results[$i][6] . ") and (application.y <> 0 and application.y <> 0 )"; $application_results = $db->getAll($sql); @@ -58,7 +57,7 @@ //Setup applications array (bit pikey this) $applications = array(); for ($ii=0; $ii < sizeof($application_results); $ii++){ - +print_r($application_results); $application = new application(); $application->council_reference = $application_results[$ii][0]; $application->address = $application_results[$ii][1];