// Default configuration file for Tong Tong
// - this comment will be improved later!
define('LOGGER_DEBUG', 100);
define('LOGGER_INFO', 75);
define('LOGGER_NOTICE', 50);
define('LOGGER_WARNING', 25);
define('LOGGER_ERROR', 10);
define('LOGGER_CRITICAL', 5);
global $cfg;
//Default level for Logger
$cfg['loggerlevel'] = LOGGER_INFO;
// Installation paths
$cfg['base_dir'] = "/var/www/sites/shittoavoid";
$cfg['base_url'] = "http://www.shittoavoid.com";
$cfg['live_url'] = "http://www.shittoavoid.com";
// Default database configuration variables
$cfg['db_username'] = 'shittoavoid';
$cfg['db_password'] = 'lotsofshit';
$cfg['db_host'] = 'localhost';
$cfg['db_name'] = 'shittoavoid';
// Default e-mail sending variables
$cfg['mail_smtp'] = 'localhost';
$cfg['mail_charset'] = 'gb2312';
$cfg['mail_fromaddr'] = 'admin@shittoavoid.com';
$cfg['mail_fromname'] = 'ShitToAvoid.com';
// Default language variables
$cfg['lang_def'] = "en";
//Smarty directory
$cfg['smarty_dir'] = "/usr/share/php/smarty/";
//CSS stylesheets, headers and other includes.
$cfg['cssphp_file'] = $cfg[base_dir] . "/stylesheets/css_basic.php"; //cssphp file (uses php to output css with variables to replace css values because css doesn't have its own variables!)
$cfg['php_header_file'] = 'includes/php_header.inc'; //php header that needs to be included on top of each file.
//This is about ratio of photo size.
$cfg['pic_mini_l_max_w'] = 70;
$cfg['pic_mini_l_max_h'] = 50;
$cfg['pic_mini_max_w'] = 50;
$cfg['pic_mini_max_h'] = 70;
$cfg['pic_small_max_w'] = 100;
$cfg['pic_small_max_h'] = 100;
$cfg['pic_medium_max_w'] = 190;
$cfg['pic_medium_max_h'] = 290;
$cfg['pic_large_max_w'] = 600;
$cfg['pic_large_max_h'] = 600;
?>
Notice: Use of undefined constant base_dir - assumed 'base_dir' in /var/www/sites/shittoavoid/index.php on line 24
Notice: Undefined variable: cfg in /var/www/sites/shittoavoid/index.php on line 24
Warning: require_once(/includes/mysql.inc.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/sites/shittoavoid/index.php on line 24
Fatal error: require_once() [function.require]: Failed opening required '/includes/mysql.inc.php' (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/sites/shittoavoid/index.php on line 24