Author: glen                         Date: Sun Oct  5 14:03:52 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- webroot (needed for spine) is already config[base_path]

---- Files affected:
SOURCES:
   cacti-webroot.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/cacti-webroot.patch
diff -u /dev/null SOURCES/cacti-webroot.patch:1.1
--- /dev/null   Sun Oct  5 16:03:52 2008
+++ SOURCES/cacti-webroot.patch Sun Oct  5 16:03:46 2008
@@ -0,0 +1,13 @@
+--- /poller.php~       2008-10-05 16:54:15.000000000 +0300
++++ /poller.php        2008-10-05 16:57:05.946911539 +0300
+@@ -181,7 +181,9 @@
+       $last_host           = 0;
+ 
+       /* update web paths for the poller */
+-      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__)) . "')");
++//    $path_webroot = ($config["cacti_server_os"] == "win32") ? 
strtr(strtolower(substr(dirname(__FILE__), 0, 1)) . substr(dirname(__FILE__), 
1),"\\", "/") : dirname(__FILE__);
++      $path_webroot = $config['base_path'];
++      db_execute("replace into settings (name,value) values 
('path_webroot','" .  addslashes($path_webroot) . "')");
+ 
+       /* obtain some defaults from the database */
+       $poller      = read_config_option("poller_type");
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to