diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2008-03-16 20:46:26 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2008-03-16 20:46:26 +0000 |
| commit | d8b19e35de4788796831cc6328eec10b1ed24975 (patch) | |
| tree | ff5f1ec90e55e0e741bd0fbcdcd93bfb8a8b216d /config.php-dist | |
| parent | 6d0fbeb0a7fde0cc8bae6c9944ea6b017d96968a (diff) | |
Changed lib paths
Diffstat (limited to 'config.php-dist')
| -rw-r--r-- | config.php-dist | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/config.php-dist b/config.php-dist index f1ecd93..b2aca4b 100644 --- a/config.php-dist +++ b/config.php-dist @@ -18,17 +18,18 @@ error_reporting(E_ALL); # show all errors # site constants that don't need to be interpolated in strings and/or # are more sensitive will be setup as constants define("DBHOST", "localhost"); # database host -define("DBNAME", "nutridb"); # database name +define("DBNAME", "nutridb_sr19"); # database name define("DBUSER", "nutridb"); # database user define("DBPASS", ""); # database password -define("ADODBDIR", "/usr/share/php/adodb"); # adodb db abastractions libs - adodb.sourceforge.net -define("SMARTYDIR", "/usr/share/php/smarty/libs"); # Smarty templates dir - smarty.php.net +define("ADODBDIR", "lib/adodb"); # adodb db abastractions libs - adodb.sourceforge.net +define("SMARTYDIR", "lib/smarty"); # Smarty templates dir - smarty.php.net +define("XAJAXDIR", "lib/xajax"); # XAJAX libs - xajaxproject.org # if true then any db error will cause the error to be printed # and the script will be halted. this should probably only be # set to true while in development -#define("DBDEBUG", "true"); +define("DBDEBUG", "false"); # generic empty class for some config variables class siteConfig {}; @@ -36,8 +37,8 @@ $config = new siteConfig; # variables that need to be interpolated inside strings and HEREDOCs # will go in the siteConfig object -$config->_rootDir = "/var/www/nutridb.org"; # root directory -$config->_rootUri = "http://nutridb.org"; # root uri +$config->_rootDir = "/var/www/nutridb"; # root directory +$config->_rootUri = "http://localhost/nutridb"; # root uri $config->_imgUri = "{$config->_rootUri}/images"; # where images live $config->_cssUri = "{$config->_rootUri}/css"; # where css files live $config->_jsUri = "{$config->_rootUri}/js"; # where javascript files live @@ -59,8 +60,8 @@ if ( isset($_SERVER['HTTP_REFERER']) ) { require("lib/site.lib.php"); # functions specific to this site require("lib/standard.lib.php"); # standard functions useful for any site require("lib/database.class.php"); # database class -require("lib/xajax_0.2.4/xajax.inc.php"); # Ajax class - xajaxproject.org require(SMARTYDIR . "/Smarty.class.php"); # Smarty templates +require(XAJAXDIR . "/xajax.inc.php"); # Ajax class - xajaxproject.org # start a session. we may not need it but start it anyway session_start(); |
