Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d0a58270cc
Fetching contributors…

Cannot retrieve contributors at this time

executable file 36 lines (30 sloc) 0.844 kb
* This is the main loader and controller init script for the Anemometer project
* It just loads the config, creates a controller and invokes it. See
* lib/Anemometer.php for the main project code.
* @author Gavin Towey <>, Geoffrey Anderson <>
* @created 2012-01-01
* @license Apache 2.0 license. See LICENSE document for more info
set_include_path( get_include_path() . PATH_SEPARATOR . "./lib");
require "Helpers.php";
require "Anemometer.php";
$action = isset($_GET['action']) ? $_GET['action'] : 'index';
$conf = array();
include "conf/";
if (empty($conf))
$action = 'noconfig';
$controller = new Anemometer($conf);
if (is_callable(array($controller, $action )))
print "Invalid action ($action)";
Jump to Line
Something went wrong with that request. Please try again.