diff --git a/data/%%45^45E^45E480CD%%index.tpl.php b/data/%%45^45E^45E480CD%%index.tpl.php index f50e19d..c9b6145 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 05d75a9..bcea6eb 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/%%D2^D26^D26D8BFE%%xml.tpl.php b/data/%%D2^D26^D26D8BFE%%xml.tpl.php index abf4e59..8b2aa51 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^F75^F752BDC0%%getinvolved.tpl.php b/data/%%F7^F75^F752BDC0%%getinvolved.tpl.php index 6e5d785..d530b8c 100644 --- a/data/%%F7^F75^F752BDC0%%getinvolved.tpl.php +++ b/data/%%F7^F75^F752BDC0%%getinvolved.tpl.php @@ -1,4 +1,4 @@ - _tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array())); @@ -19,9 +19,7 @@ unset($_smarty_tpl_vars);

Other than that it's up to you. It can be in any language. You can host them yourself or we can host it for you.

-

You can grab the code for this site and view some developent tickets here and join our developer mailing list here. +

You can grab the code for this site and view some developent tickets here and join our developer mailing list here.

I work for a local authority and would like to make our data available

diff --git a/data/%%F7^F7F^F7F34188%%header.tpl.php b/data/%%F7^F7F^F7F34188%%header.tpl.php index 4ad90a8..23b17d5 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/confirmed.php b/docs/confirmed.php index b92a613..777457c 100644 --- a/docs/confirmed.php +++ b/docs/confirmed.php @@ -19,7 +19,7 @@ class confirmed_page { //Setup function setup (){ - + //Grab the user if(isset($_GET['cid'])){ $confirm_id = $_GET['cid']; diff --git a/docs/include/stats.php b/docs/include/stats.php index 467457f..05452dc 100644 --- a/docs/include/stats.php +++ b/docs/include/stats.php @@ -27,7 +27,7 @@ } //Count of authorities - $authority_sql = "select count(authority_id) from authority"; + $authority_sql = "select count(authority_id) from authority where disabled = 0 or disabled is null"; $results = $db->getAll($authority_sql); if(sizeof($results) >0){ $authority_count = $results[0][0]; diff --git a/docs/scrapers/islington.php b/docs/scrapers/islington.php index cbeaaff..935dd35 100644 --- a/docs/scrapers/islington.php +++ b/docs/scrapers/islington.php @@ -32,15 +32,8 @@ if (isset($_GET['year'])){ //grab urls $applications = scrape_applications_islington($search_url, $info_url_base, $comment_url_base); - - //comment and info urls - $info_url_base = "http://www.blaby.gov.uk/publicaccess/dc/DcApplication/application_detailview.aspx?caseno="; - $comment_url_base = "http://www.blaby.gov.uk/publicaccess/dc/DcApplication/application_comments_entryform.aspx?caseno="; - -print_r($applications); - //Display applications -// display_applications($applications, "Balby District Council", "Balby"); + display_applications($applications, "London Borough of Islington", "Islington"); ?> diff --git a/docs/templates/about.tpl b/docs/templates/about.tpl index 948388e..61f1bed 100644 --- a/docs/templates/about.tpl +++ b/docs/templates/about.tpl @@ -2,7 +2,7 @@

You'd probably know if your next door neighbour was going to knock their house down (you'd get a letter through the door telling you they had applied for planning permission and asking you what you thought about it). But you probably never find out if the old cinema or pub 5 streets away is going to be converted into luxury flats until the bulldozers turned up.

- PlanningAlerts.com is a free service built by Richard Pope, Mikel Maron, Sam Smith and Duncan Parkes. The site is kindly hosted by mySociety.org. It searches as many local authority planning websites as it can find and emails you details of applications near you. The aim of this to enable shared scrutiny of what is being built (and knocked down) in peoples communities. + PlanningAlerts.com is a free service built by Richard Pope, Mikel Maron, Sam Smith, Duncan Parkes and Tom Hughes. The site is kindly hosted by mySociety.org. It searches as many local authority planning websites as it can find and emails you details of applications near you. The aim of this to enable shared scrutiny of what is being built (and knocked down) in peoples communities.

Planning authorities currently covered by the service

@@ -23,4 +23,4 @@ You can get in touch at team@planningalerts.com

-{include file="footer.tpl"} \ No newline at end of file +{include file="footer.tpl"} diff --git a/docs/test.php b/docs/test.php index 09d09e7..fb2f619 100644 --- a/docs/test.php +++ b/docs/test.php @@ -2,6 +2,19 @@ require_once ("config.php"); - print "testy test"; + $xml = safe_scrape_page('http://www.wansbeck.gov.uk/planning.cfm?day=17&month=7&year=2007'); + +$parsed_applications = simplexml_load_string($xml); + +//Loop through the applications, add tinyurl / google maps etc and add to array +if(sizeof($parsed_applications) >0){ + foreach($parsed_applications->applications->application as $parsed_application){ + +} + +} + +print "ddd"; + ?> \ No newline at end of file