weathermap |
Subversion Repositories: |
Rev 1 | Rev 85 | |
---|---|---|
Line 1... | Line 1... | |
<?php |
<?php | |
global $config; |
||
global $weathermap_debugging, $WEATHERMAP_VERSION; |
||
|
| |
$cacti_base = "C:/Program Files/xampp/htdocs/cacti/"; |
# | |
# Change the uncommented line to point to your Cacti installation | ||
# | ||
# $cacti_base = "C:/Program Files/xampp/htdocs/cacti/"; | ||
$cacti_base = "/var/www/html/cacti/"; | ||
$cacti_base = "/Applications/XAMPP/htdocs/cacti/"; | ||
$cacti_base = "/XAMPP/htdocs/cacti-0.8.7e/"; | ||
$cacti_base = "../../"; | ||
|
| |
include_once($cacti_base."/include/config.php"); |
// check if the goalposts have moved | |
if( is_dir($cacti_base) && file_exists($cacti_base."/include/global.php") ) | ||
{ | ||
// include the cacti-config, so we know about the database | ||
require_once($cacti_base."/include/global.php"); | ||
} | ||
elseif( is_dir($cacti_base) && file_exists($cacti_base."/include/config.php") ) | ||
{ | ||
// include the cacti-config, so we know about the database | ||
require_once($cacti_base."/include/config.php"); | ||
} | ||
else | ||
{ | ||
print "Couldn't find a usable Cacti config"; | ||
} | ||
|
| |
include_once($config["library_path"] . DIRECTORY_SEPARATOR."database.php"); |
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."setup.php"); | |
include_once(dirname(__FILE__).DIRECTORY_SEPARATOR."setup.php"); |
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."lib".DIRECTORY_SEPARATOR."poller-common.php"); | |
include_once(dirname(__FILE__).DIRECTORY_SEPARATOR."lib".DIRECTORY_SEPARATOR."poller-common.php"); |
||
|
| |
weathermap_setup_table(); |
weathermap_setup_table(); | |
|
| |
weathermap_run_maps(dirname(__FILE__) ); |
weathermap_run_maps(dirname(__FILE__) ); | |
|
||
|
| |
// vim:ts=4:sw=4: |
// vim:ts=4:sw=4: | |
?> |
?> | |
|
|