| Server IP : 216.238.66.20 / Your IP : 216.73.216.249 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/22222/htdocs/db/anemometer/ |
Upload File : |
<?php
/**
* 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 <gavin@box.com>, Geoffrey Anderson <ganderson@box.com>
* @created 2012-01-01
* @license Apache 2.0 license. See LICENSE document for more info
**/
// Ensure we're on php 5.3 or newer
if (strnatcmp(phpversion(), '5.3') < 0) {
print "Anemometer requires PHP 5.3 or newer. You have ".phpversion();
die();
}
if (!function_exists('bcadd')) {
print "Anemometer requires the BCMath extension";
die();
}
set_include_path( get_include_path() . PATH_SEPARATOR . "./lib");
require "Helpers.php";
require "Anemometer.php";
error_reporting(E_ALL);
$action = isset($_GET['action']) ? $_GET['action'] : 'index';
$conf = array();
@include "conf/config.inc.php";
if (empty($conf))
{
$action = 'noconfig';
}
$controller = new Anemometer($conf);
if (is_callable(array($controller, $action )))
{
$controller->$action();
}
else
{
print "Invalid action ($action)";
}
?>