--- flyspray-0.9.8/header.php 2005-10-23 03:11:14.000000000 +0300 +++ /tmp/header.php 2005-12-11 18:38:26.000000000 +0200 @@ -34,7 +34,7 @@ //echo get_include_path(); // Define the path to the config file. Change this line if you move flyspray.conf.php elsewhere -$conf_file = $path . $slash . "flyspray.conf.php"; +$conf_file = '/etc/webapps/flyspray/flyspray.conf'; // Check if config file exists and its not empty. // If it doesn't exist or is empty, take the user to the setup page --- flyspray-0.9.8/setup/index.php 2005-09-18 13:45:46.000000000 +0300 +++ /tmp/index.php 2005-12-11 18:56:30.000000000 +0200 @@ -14,9 +14,9 @@ error_reporting(0); -if (file_exists('../flyspray.conf.php') && (count($config = parse_ini_file('../flyspray.conf.php', true)) > 0) ) +if (file_exists('/etc/webapps/flyspray/flyspray.conf') && (count($config = parse_ini_file('/etc/webapps/flyspray/flyspray.conf', true)) > 0) ) { - die('Flyspray Already Installed. Delete the contents of flyspray.conf.php to run setup.'); + die('Flyspray Already Installed. Delete the contents of /etc/webapps/flyspray/flyspray.conf to run setup.'); } // --------------------------------------------------------------------- @@ -192,7 +192,7 @@ function CheckAdodbLibrary() { // Get the ADOdb library path. If not found it will be FALSE - $this->mAdodbPath = $this->ScanIncludePath('adodb.inc.php', realpath('../adodb')); + $this->mAdodbPath = $this->ScanIncludePath('adodb.inc.php', '/usr/share/pear/adodb'); // Update the status of the library $this->mAdodbStatus = ($this->mAdodbPath) ? TRUE : FALSE; @@ -209,7 +209,7 @@ function CheckConfigFile() { // Get the full path to the file - $file = realpath('../flyspray.conf.php'); + $file = '/etc/webapps/flyspray/flyspray.conf'; // Update the status of the Config file $this->mConfigFileStatus = $this->IsWriteable($file); @@ -1211,6 +1211,7 @@ $config_intro = "; + ; vim: syn=dosini ; This is the Flysplay configuration file. It contains the basic settings ; needed for Flyspray to operate. All other preferences are stored in the @@ -1265,7 +1266,7 @@ $config_text = $config_intro . implode( "\n", $config ); - if (is_writable('../flyspray.conf.php') && ($fp = fopen('../flyspray.conf.php', "w"))) + if (is_writable('/etc/webapps/flyspray/flyspray.conf') && ($fp = fopen('/etc/webapps/flyspray/flyspray.conf', "w"))) { fputs($fp, $config_text, strlen($config_text)); fclose($fp); diff -u ../../../flyspray-0.9.8/setup/templates/./complete_install.tpl.php /tmp/complete_install.tpl.php --- flyspray-0.9.8/setup/templates/./complete_install.tpl.php 2005-08-27 05:49:56.000000000 +0300 +++ /tmp/complete_install.tpl.php 2005-12-11 19:00:06.000000000 +0200 @@ -33,8 +33,8 @@
- To complete setup, copy and paste the contents of the textarea box into flyspray.conf.php - This file resides in the base of your installation. + To complete setup, copy and paste the contents of the textarea box into flyspray.conf + This file resides in the webapps directory of your installation (/etc/webapps/flyspray).
../flyspray.conf.php | +../flyspray.conf |