瀏覽代碼

move CGI to cgi-bin so its teh same as the live server

master
memespring 17 年之前
父節點
當前提交
a41ffe5fc3
共有 68 個文件被更改,包括 24 次插入23 次删除
  1. +0
    -0
      cgi-bin/Angus.cgi
  2. +0
    -0
      cgi-bin/Aylesbury Vale.cgi
  3. +0
    -0
      cgi-bin/Basildon.cgi
  4. +0
    -0
      cgi-bin/Bath.cgi
  5. +0
    -0
      cgi-bin/Bexley.cgi
  6. +1
    -1
      cgi-bin/Blaby.cgi
  7. +0
    -0
      cgi-bin/Bristol.cgi
  8. +0
    -0
      cgi-bin/Buckinghamshire.cgi
  9. +0
    -0
      cgi-bin/Chelmsford.cgi
  10. +0
    -0
      cgi-bin/Cherwell.cgi
  11. +0
    -0
      cgi-bin/City of London.cgi
  12. +0
    -0
      cgi-bin/Cornwall.cgi
  13. +0
    -0
      cgi-bin/Doncaster.cgi
  14. +0
    -0
      cgi-bin/Dundee.cgi
  15. +0
    -0
      cgi-bin/East Devon.cgi
  16. +0
    -0
      cgi-bin/Edinburgh.cgi
  17. +0
    -0
      cgi-bin/Epsom and Ewell.cgi
  18. +0
    -0
      cgi-bin/Fenland.cgi
  19. +0
    -0
      cgi-bin/Gedling.cgi
  20. +0
    -0
      cgi-bin/Hammersmith and Fulham.cgi
  21. +0
    -0
      cgi-bin/Harrogate.cgi
  22. +0
    -0
      cgi-bin/Hart.cgi
  23. +0
    -0
      cgi-bin/Huntingdonshire.cgi
  24. +0
    -0
      cgi-bin/Kerrier.cgi
  25. +0
    -0
      cgi-bin/Knowsley.cgi
  26. +0
    -0
      cgi-bin/Lancaster.cgi
  27. +0
    -0
      cgi-bin/Luton.cgi
  28. +0
    -0
      cgi-bin/Malvern Hills.cgi
  29. +0
    -0
      cgi-bin/Mid Devon.cgi
  30. +0
    -0
      cgi-bin/Milton Keynes.cgi
  31. +0
    -0
      cgi-bin/North Tyneside.cgi
  32. +0
    -0
      cgi-bin/Northumberland.cgi
  33. +0
    -0
      cgi-bin/Oadby and Wigston.cgi
  34. +0
    -0
      cgi-bin/Oswestry.cgi
  35. +0
    -0
      cgi-bin/Peterborough.cgi
  36. +0
    -0
      cgi-bin/PlanningUtils.py
  37. +0
    -0
      cgi-bin/Portsmouth.cgi
  38. +0
    -0
      cgi-bin/PublicAccess.py
  39. +0
    -0
      cgi-bin/README
  40. +0
    -0
      cgi-bin/Rushmoor.cgi
  41. +0
    -0
      cgi-bin/Scarborough.cgi
  42. +0
    -0
      cgi-bin/Sevenoaks.cgi
  43. +0
    -0
      cgi-bin/South Bucks.cgi
  44. +0
    -0
      cgi-bin/South Ribble.cgi
  45. +0
    -0
      cgi-bin/South Staffordshire.cgi
  46. +0
    -0
      cgi-bin/SouthOxfordshire.cgi
  47. +0
    -0
      cgi-bin/SouthOxfordshireParser.py
  48. +0
    -0
      cgi-bin/Southampton.cgi
  49. +0
    -0
      cgi-bin/Spelthorne.cgi
  50. +0
    -0
      cgi-bin/Stevenage.cgi
  51. +0
    -0
      cgi-bin/Stockton-On-Tees.cgi
  52. +0
    -0
      cgi-bin/Sunderland.cgi
  53. +0
    -0
      cgi-bin/Test Valley.cgi
  54. +0
    -0
      cgi-bin/Tonbridge.cgi
  55. +0
    -0
      cgi-bin/Torbay.cgi
  56. +0
    -0
      cgi-bin/Waveney.cgi
  57. +0
    -0
      cgi-bin/West Lancashire.cgi
  58. +0
    -0
      cgi-bin/West Norfolk.cgi
  59. +0
    -0
      cgi-bin/Woking.cgi
  60. +0
    -0
      cgi-bin/York.cgi
  61. +1
    -1
      data/%%45^45E^45E480CD%%index.tpl.php
  62. +1
    -1
      data/%%6D^6DB^6DB28CFA%%about.tpl.php
  63. +13
    -13
      data/%%AD^AD7^AD71B708%%rss.tpl.php
  64. +1
    -1
      data/%%D2^D26^D26D8BFE%%xml.tpl.php
  65. +1
    -1
      data/%%F7^F7F^F7F34188%%header.tpl.php
  66. +2
    -0
      docs/templates/alert_email_text.tpl
  67. +2
    -2
      docs/templates/getinvolved.tpl
  68. +2
    -3
      tools/application_mailer.php

CGI/Angus.cgi → cgi-bin/Angus.cgi 查看文件


CGI/Aylesbury Vale.cgi → cgi-bin/Aylesbury Vale.cgi 查看文件


CGI/Basildon.cgi → cgi-bin/Basildon.cgi 查看文件


CGI/Bath.cgi → cgi-bin/Bath.cgi 查看文件


CGI/Bexley.cgi → cgi-bin/Bexley.cgi 查看文件


CGI/Blaby.cgi → 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

CGI/Bristol.cgi → cgi-bin/Bristol.cgi 查看文件


CGI/Buckinghamshire.cgi → cgi-bin/Buckinghamshire.cgi 查看文件


CGI/Chelmsford.cgi → cgi-bin/Chelmsford.cgi 查看文件


CGI/Cherwell.cgi → cgi-bin/Cherwell.cgi 查看文件


CGI/City of London.cgi → cgi-bin/City of London.cgi 查看文件


CGI/Cornwall.cgi → cgi-bin/Cornwall.cgi 查看文件


CGI/Doncaster.cgi → cgi-bin/Doncaster.cgi 查看文件


CGI/Dundee.cgi → cgi-bin/Dundee.cgi 查看文件


CGI/East Devon.cgi → cgi-bin/East Devon.cgi 查看文件


CGI/Edinburgh.cgi → cgi-bin/Edinburgh.cgi 查看文件


CGI/Epsom and Ewell.cgi → cgi-bin/Epsom and Ewell.cgi 查看文件


CGI/Fenland.cgi → cgi-bin/Fenland.cgi 查看文件


CGI/Gedling.cgi → cgi-bin/Gedling.cgi 查看文件


CGI/Hammersmith and Fulham.cgi → cgi-bin/Hammersmith and Fulham.cgi 查看文件


CGI/Harrogate.cgi → cgi-bin/Harrogate.cgi 查看文件


CGI/Hart.cgi → cgi-bin/Hart.cgi 查看文件


CGI/Huntingdonshire.cgi → cgi-bin/Huntingdonshire.cgi 查看文件


CGI/Kerrier.cgi → cgi-bin/Kerrier.cgi 查看文件


CGI/Knowsley.cgi → cgi-bin/Knowsley.cgi 查看文件


CGI/Lancaster.cgi → cgi-bin/Lancaster.cgi 查看文件


CGI/Luton.cgi → cgi-bin/Luton.cgi 查看文件


CGI/Malvern Hills.cgi → cgi-bin/Malvern Hills.cgi 查看文件


CGI/Mid Devon.cgi → cgi-bin/Mid Devon.cgi 查看文件


CGI/Milton Keynes.cgi → cgi-bin/Milton Keynes.cgi 查看文件


CGI/North Tyneside.cgi → cgi-bin/North Tyneside.cgi 查看文件


CGI/Northumberland.cgi → cgi-bin/Northumberland.cgi 查看文件


CGI/Oadby and Wigston.cgi → cgi-bin/Oadby and Wigston.cgi 查看文件


CGI/Oswestry.cgi → cgi-bin/Oswestry.cgi 查看文件


CGI/Peterborough.cgi → cgi-bin/Peterborough.cgi 查看文件


CGI/PlanningUtils.py → cgi-bin/PlanningUtils.py 查看文件


CGI/Portsmouth.cgi → cgi-bin/Portsmouth.cgi 查看文件


CGI/PublicAccess.py → cgi-bin/PublicAccess.py 查看文件


CGI/README → cgi-bin/README 查看文件


CGI/Rushmoor.cgi → cgi-bin/Rushmoor.cgi 查看文件


CGI/Scarborough.cgi → cgi-bin/Scarborough.cgi 查看文件


CGI/Sevenoaks.cgi → cgi-bin/Sevenoaks.cgi 查看文件


CGI/South Bucks.cgi → cgi-bin/South Bucks.cgi 查看文件


CGI/South Ribble.cgi → cgi-bin/South Ribble.cgi 查看文件


CGI/South Staffordshire.cgi → cgi-bin/South Staffordshire.cgi 查看文件


CGI/SouthOxfordshire.cgi → cgi-bin/SouthOxfordshire.cgi 查看文件


CGI/SouthOxfordshireParser.py → cgi-bin/SouthOxfordshireParser.py 查看文件


CGI/Southampton.cgi → cgi-bin/Southampton.cgi 查看文件


CGI/Spelthorne.cgi → cgi-bin/Spelthorne.cgi 查看文件


CGI/Stevenage.cgi → cgi-bin/Stevenage.cgi 查看文件


CGI/Stockton-On-Tees.cgi → cgi-bin/Stockton-On-Tees.cgi 查看文件


CGI/Sunderland.cgi → cgi-bin/Sunderland.cgi 查看文件


CGI/Test Valley.cgi → cgi-bin/Test Valley.cgi 查看文件


CGI/Tonbridge.cgi → cgi-bin/Tonbridge.cgi 查看文件


CGI/Torbay.cgi → cgi-bin/Torbay.cgi 查看文件


CGI/Waveney.cgi → cgi-bin/Waveney.cgi 查看文件


CGI/West Lancashire.cgi → cgi-bin/West Lancashire.cgi 查看文件


CGI/West Norfolk.cgi → cgi-bin/West Norfolk.cgi 查看文件


CGI/Woking.cgi → cgi-bin/Woking.cgi 查看文件


CGI/York.cgi → cgi-bin/York.cgi 查看文件


+ 1
- 1
data/%%45^45E^45E480CD%%index.tpl.php 查看文件

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2007-03-24 11:12:43
<?php /* Smarty version 2.6.16, created on 2007-04-05 19:15:39
compiled from index.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));


+ 1
- 1
data/%%6D^6DB^6DB28CFA%%about.tpl.php 查看文件

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2007-03-24 11:12:32
<?php /* Smarty version 2.6.16, created on 2007-04-05 19:16:12
compiled from about.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));


+ 13
- 13
data/%%AD^AD7^AD71B708%%rss.tpl.php 查看文件

@@ -1,12 +1,12 @@
<?php /* Smarty version 2.6.16, created on 2007-03-23 17:55:19
<?php /* Smarty version 2.6.16, created on 2007-04-07 17:19:50
compiled from rss.tpl */ ?>
<?php echo '<?xml'; ?>
version="1.0" encoding="UTF-8"<?php echo '?>'; ?>

<rss version="2.0" xmlns:georss="http://georss.org/georss">
<rss version="2.0" xmlns:georss="http://www.georss.org/georss">
<channel>
<title>Search Results</title>
<link></link>
<title>PlanningAlerts.com</title>
<link>http://www.planningalerts.com/</link>
<description></description>
<?php $_from = ($this->_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']++;
?>
<item>
<guid><?php echo $this->_tpl_vars['application']->council_reference; ?>
<title><?php echo $this->_tpl_vars['application']->address; ?>
</title>
<guid isPermaLink="false"><?php echo $this->_tpl_vars['application']->council_reference; ?>
</guid>
<georss:featurename><?php echo $this->_tpl_vars['application']->address; ?>
</georss:featurename>
<georss:point><?php echo $this->_tpl_vars['application']->lat; ?>
<?php echo $this->_tpl_vars['application']->lon; ?>
</georss:point>
<description><?php echo $this->_tpl_vars['application']->description; ?>
</description>
<link><?php echo $this->_tpl_vars['application']->info_url; ?>
</link>
<comments><?php echo $this->_tpl_vars['application']->comment_url; ?>
</comments>
<pubDate><?php echo $this->_tpl_vars['application']->date_received; ?>
</pubDate>
<description><![CDATA[<?php echo $this->_tpl_vars['application']->description; ?>
]]></description>
<link><![CDATA[<?php echo $this->_tpl_vars['application']->info_url; ?>
]]></link>
<comments><![CDATA[<?php echo $this->_tpl_vars['application']->comment_url; ?>
]]></comments>
</item>
<?php endforeach; endif; unset($_from); ?>
</channel>

+ 1
- 1
data/%%D2^D26^D26D8BFE%%xml.tpl.php 查看文件

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2007-03-24 10:15:51
<?php /* Smarty version 2.6.16, created on 2007-04-04 21:36:10
compiled from xml.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'xml.tpl', 6, false),)), $this); ?>


+ 1
- 1
data/%%F7^F7F^F7F34188%%header.tpl.php 查看文件

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2007-03-24 11:13:47
<?php /* Smarty version 2.6.16, created on 2007-04-05 19:16:12
compiled from header.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


+ 2
- 0
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}

+ 2
- 2
docs/templates/getinvolved.tpl 查看文件

@@ -4,7 +4,7 @@

<h3>I am a programmer and want to add my local authority</h3>
<p>
You can help by writing a <a href="http://en.wikipedia.org/wiki/Screen_scraping">screen scraper</a> 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 <a href="http://en.wikipedia.org/wiki/Screen_scraping">screen scraper</a> for your local authority that was can import into planningalerts.com. There are only 2 criteria for the screen scraper:
</p>
<ol>
<li>That it can output data in the following format: <a href="http://www.planningalerts.com/lambeth.xml">http://www.planningalerts.com/lambeth.xml</a></li>
@@ -23,4 +23,4 @@
</p>
{include file="footer.tpl"}
{include file="footer.tpl"}

+ 2
- 3
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];


Loading…
取消
儲存