1 | 85 | simandl | <?php |
2 | | | |
3 | | | # |
4 | | | # Change the uncommented line to point to your Cacti installation |
5 | | | # |
6 | | | # $cacti_base = "C:/Program Files/xampp/htdocs/cacti/"; |
7 | | | $cacti_base = "/var/www/html/cacti/"; |
8 | | | $cacti_base = "/Applications/XAMPP/htdocs/cacti/"; |
9 | | | $cacti_base = "/XAMPP/htdocs/cacti-0.8.7e/"; |
10 | | | $cacti_base = "../../"; |
11 | | | |
12 | | | // check if the goalposts have moved |
13 | | | if( is_dir($cacti_base) && file_exists($cacti_base."/include/global.php") ) |
14 | | | { |
15 | | | // include the cacti-config, so we know about the database |
16 | | | require_once($cacti_base."/include/global.php"); |
17 | | | } |
18 | | | elseif( is_dir($cacti_base) && file_exists($cacti_base."/include/config.php") ) |
19 | | | { |
20 | | | // include the cacti-config, so we know about the database |
21 | | | require_once($cacti_base."/include/config.php"); |
22 | | | } |
23 | | | else |
24 | | | { |
25 | | | print "Couldn't find a usable Cacti config"; |
26 | | | } |
27 | | | |
28 | | | require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."setup.php"); |
29 | | | require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."lib".DIRECTORY_SEPARATOR."poller-common.php"); |
30 | | | |
31 | | | weathermap_setup_table(); |
32 | | | |
33 | | | weathermap_run_maps(dirname(__FILE__) ); |
34 | | | |
35 | | | // vim:ts=4:sw=4: |
36 | | | ?> |