Example #1
0
if (!defined('DATE_MYSQL')) {
    define('DATE_MYSQL', 'Y-m-d H:i:s');
}
if (!defined('GP_TESTS_PATH')) {
    define('GP_TESTS_PATH', GP_PATH . 't/');
}
require_once GP_PATH . GP_INC . 'gp.php';
/*
 * In most cases the default internal encoding is latin1, which is of no use,
 * since we want to use the mb_ functions for UTF-8 strings
 */
if (function_exists('mb_internal_encoding')) {
    mb_internal_encoding('UTF-8');
}
require_once BACKPRESS_PATH . 'class.bp-log.php';
$gp_log = new BP_Log();
if (defined('GP_LOG_LEVEL')) {
    $gp_log->set_level(GP_LOG_LEVEL);
}
if (defined('GP_LOG_TYPE')) {
    $gp_log->set_type(GP_LOG_TYPE);
}
if (defined('GP_LOG_FILENAME')) {
    $gp_log->set_filename(GP_LOG_FILENAME);
}
$gp_log->notice('Logging started');
// Load core BackPress functions
require_once BACKPRESS_PATH . 'functions.core.php';
require_once BACKPRESS_PATH . 'functions.compat.php';
require_once BACKPRESS_PATH . 'functions.formatting.php';
// alleviate the magic_quotes_gpc effects