AWS fixes and js google analytics
AWS fixes and js google analytics

file:a/about.php -> file:b/about.php
<?php <?php
include ('common.inc.php'); include ('common.inc.php');
include_header("About", "about") include_header("About", "about")
?> ?>
<p> <p>
Busness Time - An ACT bus timetable webapp<br /> Busness Time - An ACT bus timetable webapp<br />
Based on the maxious-canberra-transit-feed (<a href="cbrfeed.zip">download</a>, last updated <?php Based on the maxious-canberra-transit-feed (<a
  href="http://s3-ap-southeast-1.amazonaws.com/busresources/cbrfeed.zip">download</a>,
  last updated <?php
echo date("F d Y.", @filemtime('cbrfeed.zip')); ?>)<br /> echo date("F d Y.", @filemtime('cbrfeed.zip')); ?>)<br />
Source code for the transit feed and this site @ <a href="http://maxious.lambdacomplex.org/git">http://maxious.lambdacomplex.org/git</a><br /> Source code for the <a
  href="https://github.com/maxious/ACTBus-data">transit
  feed</a> and <a href="https://github.com/maxious/ACTBus-ui">this
  site</a> available from github.<br />
Uses jQuery Mobile, PHP, Ruby, Python, Google Transit Feed Specification tools, OpenTripPlanner, OpenLayers, OpenStreetMap, Cloudmade Geocoder and Tile Service<br /> Uses jQuery Mobile, PHP, Ruby, Python, Google Transit Feed Specification tools, OpenTripPlanner, OpenLayers, OpenStreetMap, Cloudmade Geocoder and Tile Service<br />
<br /> <br />
Feedback encouraged; contact maxious@lambdacomplex.org<br /> Feedback encouraged; contact maxious@lambdacomplex.org<br />
<br /> <br />
Some icons by Joseph Wain / glyphish.com<br /> Some icons by Joseph Wain / glyphish.com<br />
<br /> <br />
<small>Disclaimer: The content of this website is of a general and informative nature. Please check with printed timetables or those available on http://action.act.gov.au before your trip. <small>Disclaimer: The content of this website is of a general and informative nature. Please check with printed timetables or those available on http://action.act.gov.au before your trip.
Whilst every effort has been made to ensure the high quality and accuracy of the Site, the Author makes no warranty, Whilst every effort has been made to ensure the high quality and accuracy of the Site, the Author makes no warranty,
express or implied concerning the topicality, correctness, completeness or quality of the information, which is provided express or implied concerning the topicality, correctness, completeness or quality of the information, which is provided
"as is". The Author expressly disclaims all warranties, including but not limited to warranties of fitness for a particular purpose and warranties of merchantability. "as is". The Author expressly disclaims all warranties, including but not limited to warranties of fitness for a particular purpose and warranties of merchantability.
All offers are not binding and without obligation. The Author expressly reserves the right, in his discretion, to suspend, All offers are not binding and without obligation. The Author expressly reserves the right, in his discretion, to suspend,
change, modify, add or remove portions of the Site and to restrict or terminate the use and accessibility of the Site change, modify, add or remove portions of the Site and to restrict or terminate the use and accessibility of the Site
without prior notice. </small> without prior notice. </small>
<? <?
include_footer(); include_footer();
?> ?>
   
#!/bin/bash #!/bin/bash
#this script should be run from a fresh git checkout from http://maxious.lambdacomplex.org #this script should be run from a fresh git checkout from http://maxious.lambdacomplex.org
#ami base must have yum install lighttpd-fastcgi, git, tomcat6 #ami base must have yum install lighttpd-fastcgi, git, tomcat6
#screen php-cli php-gd tomcat6-webapps tomcat6-admin-webapps svn maven2 #screen php-cli php-gd tomcat6-webapps tomcat6-admin-webapps svn maven2
#http://www.how2forge.org/installing-lighttpd-with-php5-and-mysql-support-on-fedora-12 #http://www.how2forge.org/installing-lighttpd-with-php5-and-mysql-support-on-fedora-12
   
cp -rfv /tmp/busui/* /var/www  
cp /root/aws.php /tmp/ cp /root/aws.php /tmp/
chcon -h system_u:object_r:httpd_sys_content_t /var/www chcon -h system_u:object_r:httpd_sys_content_t /var/www
chcon -R -h root:object_r:httpd_sys_content_t /var/www/* chcon -R -h root:object_r:httpd_sys_content_t /var/www/*
chcon -R -t httpd_sys_content_rw_t /var/www/staticmaplite/cache chcon -R -t httpd_sys_content_rw_t /var/www/staticmaplite/cache
chmod -R 777 /var/www/staticmaplite/cache chmod -R 777 /var/www/staticmaplite/cache
wget http://s3-ap-southeast-1.amazonaws.com/busresources/cbrfeed.zip \ wget http://s3-ap-southeast-1.amazonaws.com/busresources/cbrfeed.zip \
-O /var/www/cbrfeed.zip -O /var/www/cbrfeed.zip
easy_install transitfeed easy_install transitfeed
easy_install simplejson easy_install simplejson
screen -d -m /var/www/view.sh screen -S viewsh -X quit
  screen -S viewsh -d -m /var/www/view.sh
   
wget http://s3-ap-southeast-1.amazonaws.com/busresources/Graph.obj \ wget http://s3-ap-southeast-1.amazonaws.com/busresources/Graph.obj \
-O /tmp/Graph.obj -O /tmp/Graph.obj
rm -rfv /usr/share/tomcat6/webapps/opentripplanner* rm -rfv /usr/share/tomcat6/webapps/opentripplanner*
wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-webapp.war \ wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-webapp.war \
-O /usr/share/tomcat6/webapps/opentripplanner-webapp.war -O /usr/share/tomcat6/webapps/opentripplanner-webapp.war
wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-api-webapp.war \ wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-api-webapp.war \
-O /usr/share/tomcat6/webapps/opentripplanner-api-webapp.war -O /usr/share/tomcat6/webapps/opentripplanner-api-webapp.war
/etc/init.d/tomcat6 restart /etc/init.d/tomcat6 restart
   
   
file:b/aws/compress.conf (new)
  #######################################################################
  ##
  ## Output Compression
  ## --------------------
  ##
  ## see http://www.lighttpd.net/documentation/compress.html
  ##
  server.modules += ( "mod_compress" )
 
  ##
  ## where should the compressed files be cached?
  ## see the base config for the declaration of the variable.
  ##
  ## This directory should be changed per vhost otherwise you can
  ## run into trouble with overlapping filenames
  ##
  compress.cache-dir = cache_dir + "/compress"
 
  ##
  ## FileTypes to compress.
  ##
  #compress.filetype = ("text/plain", "text/html")
  compress.filetype = ("text/plain", "text/html", "text/javascript", "text/css", "text/xml")
 
  ##
  ## Maximum filesize that will be compressed.
  ## Default is 0, which means unlimited file size.
  ##
  #compress.max-filesize = 0
 
  ##
  #######################################################################
 
file:b/aws/expire.conf (new)
  #######################################################################
  ##
  ## Expire Module
  ## ---------------
  ##
  ## See http://www.lighttpd.net/documentation/expire.html
  ##
  server.modules += ( "mod_expire" )
 
  ##
  ## assignes a expiration to all files below the specified path. The
  ## specification of the time is made up of:
  ##
  ## <access|modification> <number> <years|months|days|hours|minutes|seconds>
  ##
  #expire.url = (
  # "/buggy/" => "access 2 hours",
  # "/images/" => "access plus 1 seconds 2 minutes"
  #)
  etag.use-mtime = "enable"
  etag.use-inode = "disable"
  static-file.etags = "enable"
  $HTTP["url"] =~ "\.(css|js|png|jpg|ico|gif)$" {
  expire.url = ( "" => "access 7 days" )
  }
 
  ##
  #######################################################################
 
####################################################################### #######################################################################
## ##
## Modules to load ## Modules to load
## ----------------- ## -----------------
## ##
## at least mod_access and mod_accesslog should be loaded ## at least mod_access and mod_accesslog should be loaded
## all other module should only be loaded if really neccesary ## all other module should only be loaded if really neccesary
## ##
## - saves some time ## - saves some time
## - saves memory ## - saves memory
## ##
## the default module set contains: ## the default module set contains:
## ##
## "mod_indexfile", "mod_dirlisting", "mod_staticfile" ## "mod_indexfile", "mod_dirlisting", "mod_staticfile"
## ##
## you dont have to include those modules in your list ## you dont have to include those modules in your list
## ##
## Modules, which are pulled in via conf.d/*.conf ## Modules, which are pulled in via conf.d/*.conf
## ##
## NOTE: the order of modules is important. ## NOTE: the order of modules is important.
## ##
## - mod_accesslog -> conf.d/access_log.conf ## - mod_accesslog -> conf.d/access_log.conf
## - mod_compress -> conf.d/compress.conf ## - mod_compress -> conf.d/compress.conf
## - mod_status -> conf.d/status.conf ## - mod_status -> conf.d/status.conf
## - mod_webdav -> conf.d/webdav.conf ## - mod_webdav -> conf.d/webdav.conf
## - mod_cml -> conf.d/cml.conf ## - mod_cml -> conf.d/cml.conf
## - mod_evhost -> conf.d/evhost.conf ## - mod_evhost -> conf.d/evhost.conf
## - mod_simple_vhost -> conf.d/simple_vhost.conf ## - mod_simple_vhost -> conf.d/simple_vhost.conf
## - mod_mysql_vhost -> conf.d/mysql_vhost.conf ## - mod_mysql_vhost -> conf.d/mysql_vhost.conf
## - mod_trigger_b4_dl -> conf.d/trigger_b4_dl.conf ## - mod_trigger_b4_dl -> conf.d/trigger_b4_dl.conf
## - mod_userdir -> conf.d/userdir.conf ## - mod_userdir -> conf.d/userdir.conf
## - mod_rrdtool -> conf.d/rrdtool.conf ## - mod_rrdtool -> conf.d/rrdtool.conf
## - mod_ssi -> conf.d/ssi.conf ## - mod_ssi -> conf.d/ssi.conf
## - mod_cgi -> conf.d/cgi.conf ## - mod_cgi -> conf.d/cgi.conf
## - mod_scgi -> conf.d/scgi.conf ## - mod_scgi -> conf.d/scgi.conf
## - mod_fastcgi -> conf.d/fastcgi.conf ## - mod_fastcgi -> conf.d/fastcgi.conf
## - mod_proxy -> conf.d/proxy.conf ## - mod_proxy -> conf.d/proxy.conf
## - mod_secdownload -> conf.d/secdownload.conf ## - mod_secdownload -> conf.d/secdownload.conf
## - mod_expire -> conf.d/expire.conf ## - mod_expire -> conf.d/expire.conf
## ##
   
server.modules = ( server.modules = (
"mod_access", "mod_access",
# "mod_alias", # "mod_alias",
# "mod_auth", # "mod_auth",
# "mod_evasive", # "mod_evasive",
# "mod_redirect", # "mod_redirect",
# "mod_rewrite", # "mod_rewrite",
# "mod_setenv", # "mod_setenv",
# "mod_usertrack", # "mod_usertrack",
) )
   
## ##
####################################################################### #######################################################################
   
####################################################################### #######################################################################
## ##
## Config for various Modules ## Config for various Modules
## ##
   
## ##
## mod_ssi ## mod_ssi
## ##
#include "conf.d/ssi.conf" #include "conf.d/ssi.conf"
   
## ##
## mod_status ## mod_status
## ##
#include "conf.d/status.conf" #include "conf.d/status.conf"
   
## ##
## mod_webdav ## mod_webdav
## ##
#include "conf.d/webdav.conf" #include "conf.d/webdav.conf"
   
## ##
## mod_compress ## mod_compress
## ##
#include "conf.d/compress.conf" include "conf.d/compress.conf"
   
## ##
## mod_userdir ## mod_userdir
## ##
#include "conf.d/userdir.conf" #include "conf.d/userdir.conf"
   
## ##
## mod_magnet ## mod_magnet
## ##
#include "conf.d/magnet.conf" #include "conf.d/magnet.conf"
   
## ##
## mod_cml ## mod_cml
## ##
#include "conf.d/cml.conf" #include "conf.d/cml.conf"
   
## ##
## mod_rrdtool ## mod_rrdtool
## ##
#include "conf.d/rrdtool.conf" #include "conf.d/rrdtool.conf"
   
## ##
## mod_proxy ## mod_proxy
## ##
#include "conf.d/proxy.conf" #include "conf.d/proxy.conf"
   
## ##
## mod_expire ## mod_expire
## ##
#include "conf.d/expire.conf" include "conf.d/expire.conf"
   
## ##
## mod_secdownload ## mod_secdownload
## ##
#include "conf.d/secdownload.conf" #include "conf.d/secdownload.conf"
   
## ##
####################################################################### #######################################################################
   
####################################################################### #######################################################################
## ##
## CGI modules ## CGI modules
## ##
   
## ##
## SCGI (mod_scgi) ## SCGI (mod_scgi)
## ##
#include "conf.d/scgi.conf" #include "conf.d/scgi.conf"
   
## ##
## FastCGI (mod_fastcgi) ## FastCGI (mod_fastcgi)
## ##
include "conf.d/fastcgi.conf" include "conf.d/fastcgi.conf"
   
## ##
## plain old CGI (mod_cgi) ## plain old CGI (mod_cgi)
## ##
#include "conf.d/cgi.conf" #include "conf.d/cgi.conf"
   
## ##
####################################################################### #######################################################################
   
####################################################################### #######################################################################
## ##
## VHost Modules ## VHost Modules
## ##
## Only load ONE of them! ## Only load ONE of them!
## ======================== ## ========================
## ##
   
## ##
## You can use conditionals for vhosts aswell. ## You can use conditionals for vhosts aswell.
## ##
## see http://www.lighttpd.net/documentation/configuration.html ## see http://www.lighttpd.net/documentation/configuration.html
## ##
   
## ##
## mod_evhost ## mod_evhost
## ##
#include "conf.d/evhost.conf" #include "conf.d/evhost.conf"
   
## ##
## mod_simple_vhost ## mod_simple_vhost
## ##
#include "conf.d/simple_vhost.conf" #include "conf.d/simple_vhost.conf"
   
## ##
## mod_mysql_vhost ## mod_mysql_vhost
## ##
#include "conf.d/mysql_vhost.conf" #include "conf.d/mysql_vhost.conf"
   
## ##
####################################################################### #######################################################################
   
[PHP] [PHP]
   
  date.timezone = "Australia/Sydney"
   
;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;
; About php.ini ; ; About php.ini ;
;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for ; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior. ; configuring many of the aspects of PHP's behavior.
   
; PHP attempts to find and load this configuration from a number of locations. ; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: ; The following is a summary of its search order:
; 1. SAPI module specific location. ; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0) ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI) ; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP ; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows) ; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the ; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt) ; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information. ; See the PHP docs for more specific information.
; http://www.php.net/manual/en/configuration.file.php ; http://www.php.net/manual/en/configuration.file.php
   
; The syntax of the file is extremely simple. Whitespace and Lines ; The syntax of the file is extremely simple. Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed). ; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though ; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future. ; they might mean something in the future.
   
; Directives following the section heading [PATH=/www/mysite] only ; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory. Directives ; apply to PHP files in the /www/mysite directory. Directives
; following the section heading [HOST=www.example.com] only apply to ; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com. Directives set in these ; PHP files served from www.example.com. Directives set in these
; special sections cannot be overridden by user-defined INI files or ; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under ; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI. ; CGI/FastCGI.
; http://www.php.net/manual/en/ini.sections.php ; http://www.php.net/manual/en/ini.sections.php
   
; Directives are specified using the following syntax: ; Directives are specified using the following syntax:
; directive = value ; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions. ; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation. If PHP can't find an expected ; There is no name validation. If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used. ; directive because it is not set or is mistyped, a default value will be used.
   
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo}) ; previously set variable or directive (e.g. ${foo})
   
; Expressions in the INI file are limited to bitwise operators and parentheses: ; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR ; | bitwise OR
; ^ bitwise XOR ; ^ bitwise XOR
; & bitwise AND ; & bitwise AND
; ~ bitwise NOT ; ~ bitwise NOT
; ! boolean NOT ; ! boolean NOT
   
; Boolean flags can be turned on using the values 1, On, True or Yes. ; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No. ; They can be turned off using the values 0, Off, False or No.
   
; An empty string can be denoted by simply not writing anything after the equal ; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword: ; sign, or by using the None keyword:
   
; foo = ; sets foo to an empty string ; foo = ; sets foo to an empty string
; foo = None ; sets foo to an empty