Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b1d7aae8a66dc1144d41f483234fc86f > files > 3

RackTables-0.20.4-1.fc18.src.rpm

diff -ru RackTables-0.20.3.orig/wwwroot/inc/pre-init.php RackTables-0.20.3/wwwroot/inc/pre-init.php
--- RackTables-0.20.3.orig/wwwroot/inc/pre-init.php	2012-12-20 00:30:47.000000000 +0800
+++ RackTables-0.20.3/wwwroot/inc/pre-init.php	2012-12-27 20:03:43.609459873 +0800
@@ -25,11 +25,11 @@
 # code, multiple instances" deploy, in which case the paths could be changed
 # in the custom entry point wrapper (like own index.php)
 if (! isset ($racktables_staticdir)) // the directory containing 'pix', 'js', 'css' dirs
-	$racktables_staticdir = $racktables_rootdir;
+	$racktables_staticdir = '/usr/share/RackTables/static';
 if (! isset ($racktables_gwdir)) // the directory containing the 'telnet' and 'ssh' scripts
 	$racktables_gwdir = realpath ($racktables_rootdir . '/../gateways');
 if (! isset ($racktables_confdir)) // the directory containing secret.php (default is wwwroot/inc)
-	$racktables_confdir = dirname (__FILE__);
+	$racktables_confdir = '/etc/RackTables';
 if (! isset ($path_to_secret_php)) // you can overrride the path to secret.php separately from $racktables_confdir (legacy feature)
 	$path_to_secret_php = $racktables_confdir . '/secret.php';
 if (! isset ($racktables_plugins_dir)) // the directory where RT will load additional *.php files (like local.php) from