mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 05:26:50 +09:00
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@21 860744bd-22fc-0310-8c96-e9fe5004b5ca
91 lines
3.5 KiB
Plaintext
91 lines
3.5 KiB
Plaintext
<?/*
|
|
+-------------------------------------------------------------------------+
|
|
| Copyright (C) 2002 Ian Berry |
|
|
| |
|
|
| This program is free software; you can redistribute it and/or |
|
|
| modify it under the terms of the GNU General Public License |
|
|
| as published by the Free Software Foundation; either version 2 |
|
|
| of the License, or (at your option) any later version. |
|
|
| |
|
|
| This program is distributed in the hope that it will be useful, |
|
|
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
| GNU General Public License for more details. |
|
|
+-------------------------------------------------------------------------+
|
|
| cacti: the rrdtool frontend [php-auth, php-tree, php-form] |
|
|
+-------------------------------------------------------------------------+
|
|
| This code is currently maintained and debugged by Ian Berry, any |
|
|
| questions or comments regarding this code should be directed to: |
|
|
| - iberry@raxnet.net |
|
|
+-------------------------------------------------------------------------+
|
|
| - raXnet - http://www.raxnet.net/ |
|
|
+-------------------------------------------------------------------------+
|
|
*/?>
|
|
<?
|
|
/* whether or not we pull from a db, we need re-initilize */
|
|
global $config;
|
|
|
|
//$conf_cookiename = "cactilogin";
|
|
|
|
/* make sure these values refect your acual database/host/user/password */
|
|
$database_default = "dev_cacti_2";
|
|
$database_hostname = "";
|
|
$database_username = "cactiuser";
|
|
$database_password = "cactiuser";
|
|
|
|
#$database[default] = "cacti";
|
|
#$database[hostname] = "localhost";
|
|
#$database[username] = "cactiuser";
|
|
#$database[password] = "cactiuser";
|
|
|
|
include_once("database.php");
|
|
if ($do_not_read_config != true) {
|
|
if (isset($config) == false) {
|
|
/* make a connection to the database */
|
|
$config_res = db_fetch_assoc("select * from settings");
|
|
$rows_config_only = sizeof($config_res);
|
|
|
|
if ($rows_config_only > 0) {
|
|
foreach ($config_res as $row) {
|
|
$name_config_only = $row[Name];
|
|
$config[$name_config_only][value] = $row[Value];
|
|
$config[$name_config_only][friendlyname] = $row[FriendlyName];
|
|
$config[$name_config_only][description] = $row[Description];
|
|
}
|
|
}
|
|
|
|
/* built-in snmp support */
|
|
$config["php_snmp_support"] = function_exists("snmpget");
|
|
}
|
|
}
|
|
|
|
/* make sure this variable reflects your operating system type: 'unix' or 'win32' */
|
|
$config[cacti_server_os] = "unix";
|
|
|
|
/* reset this variable */
|
|
$do_not_read_config = false;
|
|
|
|
/* -- you probably will not need to change anything below this line! -- */
|
|
|
|
/* colors */
|
|
$colors[dark_outline] = "454E53";
|
|
$colors[dark_bar] = "AEB4B7";
|
|
$colors[panel] = "E5E5E5";
|
|
$colors[panel_text] = "000000";
|
|
$colors[panel_link] = "000000";
|
|
$colors[light] = "F5F5F5";
|
|
$colors[alternate] = "E7E9F2";
|
|
$colors[panel_dark] = "C5C5C5";
|
|
|
|
$colors[form_alternate1] = "E5E5E5";
|
|
$colors[form_alternate2] = "F5F5F5";
|
|
|
|
$paths[cacti] = $config["path_webroot"]["value"] . $config["path_webcacti"]["value"];
|
|
$paths[images] = "$paths[cacti]/graphs";
|
|
$paths[rra] = "$paths[cacti]/rra";
|
|
$paths[log] = "$paths[cacti]/log/rrd.log";
|
|
|
|
$config[cacti_version] = "0.6.8";
|
|
|
|
?>
|