Im trying to keep my config.inc.php file out of my Document Root. Im following the directions listed here http://www.infopop.com/support/ubbthreads/UBBthreads_security.html

Now I moved it to a dir outside my document root and changed my main.inc.php file to look like this:

<?

$thispath = "/home/http/ubb/ubbthreads";
$configdir = "/home/http/ubbconfig/";
include("$thispath/ubbt.inc.php");

?>

Now when I go to the board, I get the following.

Warning: Failed opening '/home/http/ubb/ubbthreads/config.inc.php' for inclusion (include_path='.:/usr/share/pear') in /home/http/ubb/ubbthreads/ubbt.inc.php on line 23

Warning: Failed opening '/home/http/ubb/ubbthreads/languages//generic.php' for inclusion (include_path='.:/usr/share/pear') in /home/http/ubb/ubbthreads/ubbt.inc.php on line 98

Warning: Failed opening '/home/http/ubb/ubbthreads/config.inc.php' for inclusion (include_path='.:/usr/share/pear') in /home/http/ubb/ubbthreads/ubbt.inc.php on line 23

Fatal error: Cannot redeclare class sql in /home/http/ubb/ubbthreads/mysql.inc.php on line 24

Taking a look at the ubbt.inc.php file, I see no where that makes a reference to $configdir. Everything is trying to look for the config.inc.php file in the directory specified in $thispath. Whats the easy way to correct this? I want to make sure everything works the way we want it before we purchase the software this week. We are using ubb.threads.