]> git.pld-linux.org Git - packages/cacti.git/blame - cacti-webroot.patch
make logrotate compatible with ac
[packages/cacti.git] / cacti-webroot.patch
CommitLineData
30aaaddb
ER
1--- /poller.php~ 2008-10-05 16:54:15.000000000 +0300
2+++ /poller.php 2008-10-05 16:57:05.946911539 +0300
3@@ -181,7 +181,9 @@
4 $last_host = 0;
5
6 /* update web paths for the poller */
55cf0435 7- db_execute("REPLACE INTO settings (name,value) VALUES ('path_webroot','" . addslashes(($config["cacti_server_os"] == "win32") ? strtr(strtolower(substr(dirname(__FILE__), 0, 1)) . substr(dirname(__FILE__), 1),"\\", "/") : dirname(__FILE__)) . "')");
30aaaddb
ER
8+// $path_webroot = ($config["cacti_server_os"] == "win32") ? strtr(strtolower(substr(dirname(__FILE__), 0, 1)) . substr(dirname(__FILE__), 1),"\\", "/") : dirname(__FILE__);
9+ $path_webroot = $config['base_path'];
55cf0435 10+ db_execute("REPLACE INTO settings (name,value) VALUES ('path_webroot','" . addslashes($path_webroot) . "')");
30aaaddb
ER
11
12 /* obtain some defaults from the database */
13 $poller = read_config_option("poller_type");
This page took 0.035267 seconds and 4 git commands to generate.