]> git.pld-linux.org Git - packages/cacti.git/commitdiff
*** empty log message ***
authorGrzegorz Sterniczuk <grzegorz@sterniczuk.eu>
Thu, 14 Feb 2008 12:37:40 +0000 (12:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-url_path.patch -> 1.1

cacti-url_path.patch [new file with mode: 0644]

diff --git a/cacti-url_path.patch b/cacti-url_path.patch
new file mode 100644 (file)
index 0000000..0998931
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN cacti-0.8.7b.orig/include/plugins.php cacti-0.8.7b/include/plugins.php
+--- cacti-0.8.7b.orig/include/plugins.php      2008-02-14 13:30:31.000000000 +0100
++++ cacti-0.8.7b/include/plugins.php   2008-02-14 13:30:58.000000000 +0100
+@@ -33,7 +33,7 @@
+ }
+ if (isset($_SERVER['DOCUMENT_ROOT']) && isset($_SERVER['REMOTE_ADDR'])) {
+-      $config['url_path'] = substr(__FILE__, strlen($_SERVER['DOCUMENT_ROOT']), strlen(__FILE__) - strlen($_SERVER['DOCUMENT_ROOT']) - strlen('include/plugins.php'));
++//    $config['url_path'] = substr(__FILE__, strlen($_SERVER['DOCUMENT_ROOT']), strlen(__FILE__) - strlen($_SERVER['DOCUMENT_ROOT']) - strlen('include/plugins.php'));
+       db_execute("REPLACE INTO settings (name, value) VALUES ('url_path', '" . $config['url_path'] . "')");
+ } else {
+       $config['url_path'] = db_fetch_cell("SELECT value FROM settings WHERE name = 'url_path'");
This page took 0.043265 seconds and 4 git commands to generate.