1 | 3 | simandl | <?php |
2 | | | |
3 | | | // CHANGE: Uncomment one of the lines below and change it to point to the base directory |
4 | | | // of your cacti install to enable cacti support in the editor |
5 | | | // $cacti_base = 'C:/XAMPP/xampp/htdocs/cacti'; |
6 | | | // $cacti_base = "/var/www/html/cacti"; |
7 | | | |
8 | | | if(is_dir($cacti_base)) |
9 | | | { |
10 | | | // include the cacti-config, so we know about the database |
11 | | | include_once($cacti_base."/include/config.php"); |
12 | | | |
13 | | | // CHANGE: this to be the URL of the base of your Cacti install |
14 | | | // it MUST end with a / character! |
15 | | | $config['base_url']='http://support.company.net/cacti/'; |
16 | | | } |
17 | | | |
18 | | | // where to look for config files. The directory must be readable |
19 | | | // AND writable by whatever user your webserver runs as. |
20 | | | // this name is correct if you are using the Cacti plugin |
21 | | | // |
22 | | | // NOTE: You MIGHT need to use the full path to the configs folder here, |
23 | | | // (it seems to depend on the PHP or OS version) |
24 | | | // $mapdir= $cacti_base.'/plugins/weathermap/configs'; |
25 | | | $mapdir='configs'; |
26 | | | |
27 | | | |
28 | | | // vim:ts=4:sw=4: |
29 | | | ?> |